+ ipc-fix-compat-msgrcv-with-negative-msgtyp.patch added to -mm tree

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

 



Subject: + ipc-fix-compat-msgrcv-with-negative-msgtyp.patch added to -mm tree
To: mguzik@xxxxxxxxxx,davidlohr@xxxxxx,gsc@xxxxxxxxx,manfred@xxxxxxxxxxxxxxxx,viro@xxxxxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Tue, 21 Jan 2014 11:24:00 -0800


The patch titled
     Subject: ipc: fix compat msgrcv with negative msgtyp
has been added to the -mm tree.  Its filename is
     ipc-fix-compat-msgrcv-with-negative-msgtyp.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/ipc-fix-compat-msgrcv-with-negative-msgtyp.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/ipc-fix-compat-msgrcv-with-negative-msgtyp.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mateusz Guzik <mguzik@xxxxxxxxxx>
Subject: ipc: fix compat msgrcv with negative msgtyp

Compat function takes msgtyp argument as u32 and passes it down to
do_msgrcv which results in casting to long, thus the sign is lost and we
get a big positive number instead.

Cast the argument to signed type before passing it down.

Signed-off-by: Mateusz Guzik <mguzik@xxxxxxxxxx>
Reported-by: Gabriellla Schmidt <gsc@xxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Davidlohr Bueso <davidlohr@xxxxxx>
Cc: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 ipc/compat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN ipc/compat.c~ipc-fix-compat-msgrcv-with-negative-msgtyp ipc/compat.c
--- a/ipc/compat.c~ipc-fix-compat-msgrcv-with-negative-msgtyp
+++ a/ipc/compat.c
@@ -381,7 +381,7 @@ COMPAT_SYSCALL_DEFINE6(ipc, u32, call, i
 			uptr = compat_ptr(ipck.msgp);
 			fifth = ipck.msgtyp;
 		}
-		return do_msgrcv(first, uptr, second, fifth, third,
+		return do_msgrcv(first, uptr, second, (s32)fifth, third,
 				 compat_do_msg_fill);
 	}
 	case MSGGET:
_

Patches currently in -mm which might be from mguzik@xxxxxxxxxx are

ipc-fix-compat-msgrcv-with-negative-msgtyp.patch
linux-next.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