aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-09-08 15:25:39 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-10-13 03:46:10 +0100
commit9bf6bf61ff1ff2de8525880e31a82a5be8859db2 (patch)
treed0ff3c7563dcb3cb4df141981f6a9c9a626ff967 /arch/x86/kvm/x86.c
parent1329f22dd13b2976203c54699f5a9f16425efa00 (diff)
downloadkernel_samsung_smdk4412-9bf6bf61ff1ff2de8525880e31a82a5be8859db2.zip
kernel_samsung_smdk4412-9bf6bf61ff1ff2de8525880e31a82a5be8859db2.tar.gz
kernel_samsung_smdk4412-9bf6bf61ff1ff2de8525880e31a82a5be8859db2.tar.bz2
s390/compat: correct uc_sigmask of the compat signal frame
commit 8d4bd0ed0439dfc780aab801a085961925ed6838 upstream. 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. Reported-by: Stefan Liebler <stli@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> [bwh: Backported to 3.2: - Introduce local compat_sigset_t in setup_frame32() - Adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions