* [patch 3/13] s390: bug in setup_rt_frame.
@ 2006-04-24 15:03 Martin Schwidefsky
0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2006-04-24 15:03 UTC (permalink / raw)
To: linux-kernel, akpm, heiko.carstens
From: Heiko Carstens <heiko.carstens@de.ibm.com>
[patch 3/13] s390: bug in setup_rt_frame.
Consider return value of __put_user() when setting up a signal
frame instead of ignoring it.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
arch/s390/kernel/signal.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -urpN linux-2.6/arch/s390/kernel/signal.c linux-2.6-patched/arch/s390/kernel/signal.c
--- linux-2.6/arch/s390/kernel/signal.c 2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6-patched/arch/s390/kernel/signal.c 2006-04-24 16:47:20.000000000 +0200
@@ -358,8 +358,9 @@ static int setup_rt_frame(int sig, struc
} else {
regs->gprs[14] = (unsigned long)
frame->retcode | PSW_ADDR_AMODE;
- err |= __put_user(S390_SYSCALL_OPCODE | __NR_rt_sigreturn,
- (u16 __user *)(frame->retcode));
+ if (__put_user(S390_SYSCALL_OPCODE | __NR_sigreturn,
+ (u16 __user *)(frame->retcode)))
+ goto give_sigsegv;
}
/* Set up backchain. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-24 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 15:03 [patch 3/13] s390: bug in setup_rt_frame Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox