Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ppc user annotations: sigcontext

sigcontext.regs is a userland pointer

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Al Viro and committed by
Linus Torvalds
9090e001 cf025109

+2 -2
+1 -1
arch/ppc/kernel/signal.c
··· 632 632 if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler) 633 633 || __put_user(oldset->sig[0], &sc->oldmask) 634 634 || __put_user(oldset->sig[1], &sc->_unused[3]) 635 - || __put_user((struct pt_regs *)frame, &sc->regs) 635 + || __put_user((struct pt_regs __user *)frame, &sc->regs) 636 636 || __put_user(sig, &sc->signal)) 637 637 goto badframe; 638 638
+1 -1
include/asm-ppc/sigcontext.h
··· 9 9 int signal; 10 10 unsigned long handler; 11 11 unsigned long oldmask; 12 - struct pt_regs *regs; 12 + struct pt_regs __user *regs; 13 13 }; 14 14 15 15 #endif