提交 9090e001 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] ppc user annotations: sigcontext

sigcontext.regs is a userland pointer
Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 cf025109
...@@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, ...@@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler) if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler)
|| __put_user(oldset->sig[0], &sc->oldmask) || __put_user(oldset->sig[0], &sc->oldmask)
|| __put_user(oldset->sig[1], &sc->_unused[3]) || __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)) || __put_user(sig, &sc->signal))
goto badframe; goto badframe;
......
...@@ -9,7 +9,7 @@ struct sigcontext { ...@@ -9,7 +9,7 @@ struct sigcontext {
int signal; int signal;
unsigned long handler; unsigned long handler;
unsigned long oldmask; unsigned long oldmask;
struct pt_regs *regs; struct pt_regs __user *regs;
}; };
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册