+ ipc-fix-compat-msgrcv-with-negative-msgtyp.patch added to -mm tree
Subject: + ipc-fix-compat-msgrcv-with-negative-msgtyp.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
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 <[email protected]>
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.
---
ipc/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/compat.c renamed from ipc/compat.c~ipc-fix-compat-msgrcv-with-negative-msgtyp +1 -1
@@ -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 [email protected] are
ipc-fix-compat-msgrcv-with-negative-msgtyp.patch
linux-next.patch