Subject: + s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch added to -mm tree To: heiko.carstens@xxxxxxxxxx,brueckner@xxxxxxxxxxxxxxxxxx,hpa@xxxxxxxxx,mingo@xxxxxxxxxx,schwidefsky@xxxxxxxxxx,viro@xxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 27 Jan 2014 14:49:51 -0800 The patch titled Subject: s390/compat: change parameter types from unsigned long to compat_ulong_t has been added to the -mm tree. Its filename is s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.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: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Subject: s390/compat: change parameter types from unsigned long to compat_ulong_t Change parameter types of s390's compat ipc syscall from unsigned long to compat_ulong_t to enforce zero extension of these parameters. This is not really a bug, since s390_ipc compat syscall is only a wrapper to the generic compat_sys_ipc() syscall, which performs correct zero and sign extension. This was introduced with 56e41d3c5aa84 "merge compat sys_ipc instances". Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Hendrik Brueckner <brueckner@xxxxxxxxxxxxxxxxxx> Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/s390/kernel/compat_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN arch/s390/kernel/compat_linux.c~s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t arch/s390/kernel/compat_linux.c --- a/arch/s390/kernel/compat_linux.c~s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t +++ a/arch/s390/kernel/compat_linux.c @@ -286,8 +286,8 @@ asmlinkage long sys32_getegid16(void) } #ifdef CONFIG_SYSVIPC -COMPAT_SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, unsigned long, second, - unsigned long, third, compat_uptr_t, ptr) +COMPAT_SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, compat_ulong_t, second, + compat_ulong_t, third, compat_uptr_t, ptr) { if (call >> 16) /* hack for backward compatibility */ return -EINVAL; _ Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are origin.patch fs-compat-fix-parameter-handling-for-compat-readv-writev-syscalls.patch fs-compat-fix-lookup_dcookie-parameter-handling.patch s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch linux-next.patch compat-fix-sys_fanotify_mark.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