Bug 153531
Summary: | Missing size check in sigaltstack | ||
---|---|---|---|
Product: | Process Management | Reporter: | Florian Weimer (fweimer) |
Component: | Other | Assignee: | process_other |
Status: | NEW --- | ||
Severity: | normal | CC: | hjl.tools |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://sourceware.org/bugzilla/show_bug.cgi?id=20305 | ||
Kernel Version: | 3.10 (with backports) | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
tst-minsigstksz.c
A new testcase |
Description
Florian Weimer
2016-08-22 15:02:03 UTC
Created attachment 292663 [details]
A new testcase
On Ice Lake laptop under x86-64 5.8.11 kernel, different MINSIGSTKSZs are
needed for -m32 and -m64:
[hjl@gnu-icl-1 tmp]$ gcc tst-minsigstksz-2.c -DMY_MINSIGSTKSZ=3453
[hjl@gnu-icl-1 tmp]$ ./a.out
a.out: changed byte 50 bytes below configured stack
[hjl@gnu-icl-1 tmp]$ gcc tst-minsigstksz-2.c -DMY_MINSIGSTKSZ=3454
[hjl@gnu-icl-1 tmp]$ ./a.out
[hjl@gnu-icl-1 tmp]$ gcc tst-minsigstksz-2.c -DMY_MINSIGSTKSZ=3837 -m32
[hjl@gnu-icl-1 tmp]$ ./a.out
a.out: changed byte 42 bytes below configured stack
[hjl@gnu-icl-1 tmp]$ gcc tst-minsigstksz-2.c -DMY_MINSIGSTKSZ=3838 -m32
[hjl@gnu-icl-1 tmp]$ ./a.out
[hjl@gnu-icl-1 tmp]$
|