Bug 24948 - i386-linux getcontext() uses wrong sigprocmask syscall
Summary: i386-linux getcontext() uses wrong sigprocmask syscall
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-29 02:24 UTC by Rich Felker
Modified: 2019-08-29 02:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Felker 2019-08-29 02:24:53 UTC
The i386-linux getcontext.S uses the old, non-"rt" sigprocmask syscall, only filling in the first 32 signal bits and leaving uninitialized junk in the rest of the saved signal mask. This also breaks under seccomp rules that don't allow the obsolete (extremely ancient) version of the syscall, as discovered by @taviso and discussed on Twitter: https://twitter.com/taviso/status/1166763213339287553 In particular it breaks under the default Docker policy.