]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal32: Fix sigset_t conversion when copying to user
authorWill Deacon <will.deacon@arm.com>
Tue, 8 Nov 2011 04:51:19 +0000 (04:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 17 Nov 2011 05:41:10 +0000 (16:41 +1100)
commit2b5dac1a4c87d66077cd7220987e5bdbad4912b0
tree47407c308ae32035d0d46c07269a7e047236fffa
parentd79b9b394b021314ef8d0880c732551580d30e1d
powerpc/signal32: Fix sigset_t conversion when copying to user

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>
arch/powerpc/kernel/signal_32.c