[PATCH v2] linux: Enforce zero fill of siginfo_t
Florian Weimer
fweimer@redhat.com
Tue Jan 20 13:29:38 GMT 2026
* Andreas Schwab:
> On Jan 20 2026, Adhemerval Zanella wrote:
>
>> + siginfo_t info;
>> + /* The glibc siginfo struct is larger than the kABI one, and the kernel
>> + enforces that for an unknown si_code, all the extra bytes should be 0. */
>
> Why does the kernel even look at anything beyond the struct size? That
> looks like a kernel bug.
I think it looks beyond the part that is initialized by the struct
aggregate. This sub-struct is apparently smaller than the entire kernel
structure.
Thanks,
Florian
More information about the Libc-alpha
mailing list