[PATCH] sigaction: don't sign-extend sa_flags

Florian Weimer fweimer@redhat.com
Mon Jun 2 14:39:35 GMT 2025


* Andreas Schwab:

> On Jun 02 2025, Adhemerval Zanella Netto wrote:
>
>> So I think it should be fixed on strace as well
>
> strace just shows what is passed to the kernel, I don't see anything
> wrong with that.

It's a borderline case.  In many cases, strace masks out values that are
ignored by the kernel, such as the third argument to open, or upper
halves of 64-bit registers if the system call definition uses an
unsigned int type.

Thanks,
Florian



More information about the Libc-alpha mailing list