+ s390-bug-in-setup_rt_frame.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     s390: bug in setup_rt_frame

has been added to the -mm tree.  Its filename is

     s390-bug-in-setup_rt_frame.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

Consider return value of __put_user() when setting up a signal frame
instead of ignoring it.

Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/s390/kernel/signal.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -puN arch/s390/kernel/signal.c~s390-bug-in-setup_rt_frame arch/s390/kernel/signal.c
--- devel/arch/s390/kernel/signal.c~s390-bug-in-setup_rt_frame	2006-04-29 01:46:59.000000000 -0700
+++ devel-akpm/arch/s390/kernel/signal.c	2006-04-29 01:46:59.000000000 -0700
@@ -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_rt_sigreturn,
+			       (u16 __user *)(frame->retcode)))
+			goto give_sigsegv;
 	}
 
 	/* Set up backchain. */
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

origin.patch
s390-make-qeth-buildable.patch
s390-fix-ipd-handling.patch
s390-bug-in-setup_rt_frame.patch
rcu-introduce-rcu_needs_cpu-interface.patch
rcu-introduce-rcu_needs_cpu-interface-fix.patch
s390-exploit-rcu_needs_cpu-interface.patch
ipv4-inet_init-fs_initcall.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux