musl/arch/or1k/bits
Rich Felker 269d193820 fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64
we wrongly defined a dummy SA_RESTORER flag on these archs, despite
the kernel interface not actually having such a feature. on archs
which lack SA_RESTORER, the kernel sigaction structure also lacks the
restorer function pointer member, which means the signal mask appears
at a different offset. the kernel was thereby interpreting the bits of
the code address as part of the signal set to be masked while handling
the signal.

this patch removes the erroneous SA_RESTORER definitions from archs
which do not have it, makes access to the member conditional on
whether SA_RESTORER is defined for the arch, and removes the
now-unused asm for the affected archs.

because there are reportedly versions of qemu-user which also use the
wrong ABI here, the old ksigaction struct size is preserved with an
unused member at the end. this is harmless and mitigates the risk of
such a bug turning into a buffer overflow onto the sigaction
function's stack.
2023-02-09 12:33:35 -05:00
..
alltypes.h.in move time_t and suseconds_t definitions to common alltypes.h.in 2019-11-02 18:30:56 -04:00
float.h fix FLT_ROUNDS to reflect the current rounding mode 2015-03-07 12:05:28 -05:00
ipcstat.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
limits.h define LONG_MAX via arch alltypes.h, strip down bits/limits.h 2019-10-17 19:23:39 -04:00
msg.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
posix.h
reg.h
sem.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
setjmp.h
shm.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
signal.h fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64 2023-02-09 12:33:35 -05:00
stat.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
stdint.h
syscall.h.in bits/syscall.h: add landlock syscalls from linux v5.13 2022-03-08 17:21:14 -05:00
user.h