Skip to content

Commit 49382d9

Browse files
heicarsttorvalds
authored andcommitted
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 commit 56e41d3 ("merge compat sys_ipc instances"). Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Ingo Molnar <mingo@kernel.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d8d14bd commit 49382d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/s390/kernel/compat_linux.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ asmlinkage long sys32_getegid16(void)
286286
}
287287

288288
#ifdef CONFIG_SYSVIPC
289-
COMPAT_SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, unsigned long, second,
290-
unsigned long, third, compat_uptr_t, ptr)
289+
COMPAT_SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, compat_ulong_t, second,
290+
compat_ulong_t, third, compat_uptr_t, ptr)
291291
{
292292
if (call >> 16) /* hack for backward compatibility */
293293
return -EINVAL;

0 commit comments

Comments
 (0)