+ 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.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@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
--- 25/arch/s390/kernel/signal.c~s390-bug-in-setup_rt_frame	Mon Apr 24 16:45:52 2006
+++ 25-akpm/arch/s390/kernel/signal.c	Mon Apr 24 16:45:52 2006
@@ -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. */
_

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

s390-make-qeth-buildable.patch
ipv4-inet_init-fs_initcall.patch
s390-bug-in-setup_rt_frame.patch
s390-instruction-processing-damage-handling.patch
rcu-introduce-rcu_soon_pending-interface.patch
s390-exploit-rcu_soon_pending-interface.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