aboutsummaryrefslogtreecommitdiff
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMartin Schwidefsky2015-09-08 15:25:39 +0200
committerMartin Schwidefsky2015-09-17 13:43:42 +0200
commit8d4bd0ed0439dfc780aab801a085961925ed6838 (patch)
tree7faf6dc07fc2752cdbc1d5edc9d8faf202d60459 /arch/xtensa
parent9380cf5a884e237fc0e2571d5adf0b43bb4412c8 (diff)
s390/compat: correct uc_sigmask of the compat signal frame
The uc_sigmask in the ucontext structure is an array of words to keep the 64 signal bits (or 1024 if you ask glibc but the kernel sigset_t only has 64 bits). For 64 bit the sigset_t contains a single 8 byte word, but for 31 bit there are two 4 byte words. The compat signal handler code uses a simple copy of the 64 bit sigset_t to the 31 bit compat_sigset_t. As s390 is a big-endian architecture this is incorrect, the two words in the 31 bit sigset_t array need to be swapped. Cc: <stable@vger.kernel.org> Reported-by: Stefan Liebler <stli@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions