mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
[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>
This commit is contained in:
parent
cf025109e8
commit
9090e001f2
@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
|
||||
if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler)
|
||||
|| __put_user(oldset->sig[0], &sc->oldmask)
|
||||
|| __put_user(oldset->sig[1], &sc->_unused[3])
|
||||
|| __put_user((struct pt_regs *)frame, &sc->regs)
|
||||
|| __put_user((struct pt_regs __user *)frame, &sc->regs)
|
||||
|| __put_user(sig, &sc->signal))
|
||||
goto badframe;
|
||||
|
||||
|
@ -9,7 +9,7 @@ struct sigcontext {
|
||||
int signal;
|
||||
unsigned long handler;
|
||||
unsigned long oldmask;
|
||||
struct pt_regs *regs;
|
||||
struct pt_regs __user *regs;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user