linux/arch/openrisc/include/uapi/asm
Stafford Horne dceaafd668 openrisc: Union fpcsr and oldmask in sigcontext to unbreak userspace ABI
With commit 27267655c5 ("openrisc: Support floating point user api") I
added an entry to the struct sigcontext which caused an unwanted change
to the userspace ABI.

To fix this we use the previously unused oldmask field space for the
floating point fpcsr state.  We do this with a union to restore the ABI
back to the pre kernel v6.4 ABI and keep API compatibility.

This does mean if there is some code somewhere that is setting oldmask
in an OpenRISC specific userspace sighandler it would end up setting the
floating point register status, but I think it's unlikely as oldmask was
never functional before.

Fixes: 27267655c5 ("openrisc: Support floating point user api")
Reported-by: Szabolcs Nagy <nsz@port70.net>
Closes: https://lore.kernel.org/openrisc/20230626213840.GA1236108@port70.net/
Signed-off-by: Stafford Horne <shorne@gmail.com>
2023-07-10 22:03:26 +01:00
..
byteorder.h
elf.h openrisc: Support floating point user api 2023-04-26 15:08:06 +01:00
Kbuild treewide: Add SPDX license identifier - Kbuild 2019-05-30 11:32:33 -07:00
param.h
ptrace.h openrisc: Support floating point user api 2023-04-26 15:08:06 +01:00
sigcontext.h openrisc: Union fpcsr and oldmask in sigcontext to unbreak userspace ABI 2023-07-10 22:03:26 +01:00
unistd.h openrisc: Enable the clone3 syscall 2020-03-02 18:10:52 +09:00