]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: fix seccomp with 32-bit userland
authorAndrea Arcangeli <andrea@cpushare.com>
Fri, 24 Jun 2005 05:00:45 +0000 (22:00 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:05:18 +0000 (00:05 -0700)
commit8b63749b80a052b3a764c0e8f5b1772c1baded92
treec816ea0350a0f0c7ac503c6020a6ea5398a59ee4
parent54f16491d16ae55372a59196fba5fe2c340a945e
[PATCH] ppc64: fix seccomp with 32-bit userland

The seccomp check has to happen when entering the syscall and not when
exiting it or regs->gpr[0] contains garabge during signal handling in
ppc64_rt_sigreturn (this actually might be a bug too, but an orthogonal
one, since we really have to run the check before invoking the syscall and
not after it).

Signed-off-by: Andrea Arcangeli <andrea@cpushare.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/ptrace.c