https://github.com/torvalds/linux
Revision a313f4c55d4952f2105fe33a4957ed858e998359 authored by Will Deacon on 08 November 2011, 04:51:19 UTC, committed by Benjamin Herrenschmidt on 17 November 2011, 05:41:10 UTC
On PPC64, put_sigset_t converts a sigset_t to a compat_sigset_t
before copying it to userspace. There is a typo in the case that
we have 4 words to copy, meaning that we corrupt the compat_sigset_t.

It appears that _NSIG_WORDS can't be greater than 2 at the moment
so this code is probably always optimised away anyway.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent b97021f
History
Tip revision: a313f4c55d4952f2105fe33a4957ed858e998359 authored by Will Deacon on 08 November 2011, 04:51:19 UTC
powerpc/signal32: Fix sigset_t conversion when copying to user
Tip revision: a313f4c
File Mode Size
interface
Kbuild -rw-r--r-- 43 bytes
balloon.h -rw-r--r-- 1.1 KB
events.h -rw-r--r-- 3.3 KB
evtchn.h -rw-r--r-- 2.9 KB
features.h -rw-r--r-- 463 bytes
gntalloc.h -rw-r--r-- 2.6 KB
gntdev.h -rw-r--r-- 5.6 KB
grant_table.h -rw-r--r-- 5.4 KB
hvc-console.h -rw-r--r-- 479 bytes
hvm.h -rw-r--r-- 695 bytes
page.h -rw-r--r-- 347 bytes
platform_pci.h -rw-r--r-- 1.6 KB
privcmd.h -rw-r--r-- 2.6 KB
swiotlb-xen.h -rw-r--r-- 2.0 KB
tmem.h -rw-r--r-- 126 bytes
xen-ops.h -rw-r--r-- 852 bytes
xen.h -rw-r--r-- 856 bytes
xenbus.h -rw-r--r-- 8.0 KB
xencomm.h -rw-r--r-- 2.5 KB

back to top