[PATCH 2/2] stdlib: Make abort AS-safe (BZ 26275)

Florian Weimer fweimer@redhat.com
Wed Aug 2 14:44:20 GMT 2023


* Adhemerval Zanella Netto:

>> I also don't quite understand why we need to take the abort lock in
>> posix_spawn.  There isn't any user code that can run in the same address
>> space after the vfork.
>
> My understanding is the potential issues is if caller sets a SIG_IGN
> for SIGABRT, calls abort, and another thread issues posix_spawn just
> after the sigaction returns.  With default options (not setting
> POSIX_SPAWN_SETSIGDEF), the process can still see SIG_DFL for SIGABRT,
> where it should be SIG_IGN.

Right, I missed that.  Maybe add a comment?

Thanks,
Florian



More information about the Libc-alpha mailing list