Re: [RFC][PATCH] unwind: Add stacktrace_setup system call

From: Jens Remus

Date: Thu Apr 30 2026 - 12:27:51 EST


On 4/29/2026 10:03 PM, Steven Rostedt wrote:
> On Wed, 29 Apr 2026 14:58:15 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
>>> If the main executable doesn't have a sframe section, I don't see why this
>>> shouldn't be allowed to add one.
>>
>> The address is added via mtree_insert_range() which states it will return
>> -EEXISTS if the range is occupied.
>
> I confirmed this. I changed the test program to load its own sframe section
> again, and it errors out with -EEXISTS.

Should an executable be allowed to remove its main executable sframe
section? Currently the kernel takes care of registering/unregistering
that.

Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
jremus@xxxxxxxxxx / jremus@xxxxxxxxxxxxx

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/