Skip to contentSkip to conversation

s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 30, 2014 s390

lore
Share & tools
lore
#0 lore raw

Subject: [merged] s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 30 Jan 2014 12:05:14 -0800

The patch titled
Subject: s390/compat: change parameter types from unsigned long to compat_ulong_t
has been removed from the -mm tree. Its filename was
s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Heiko Carstens <[email protected]>
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".

Cc Al Viro <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Hendrik Brueckner <[email protected]>
Cc Martin Schwidefsky <[email protected]>

---

 arch/s390/kernel/compat_linux.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/s390/kernel/compat_linux.c renamed from arch/s390/kernel/compat_linux.c~s390-compat-change-parameter-types-from-unsigned-long-to-compat_ulong_t +2 -2
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
@@ -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 [email protected] are

origin.patch
linux-next.patch