[PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl
From: Yury Norov
Date: Tue Nov 17 2015 - 16:21:52 EST
From: Jan Dakinevich <jan.dakinevich@xxxxxxxxx>
Reviewed-by: David Daney <ddaney@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Yury Norov <ynorov@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Jan Dakinevich <jan.dakinevich@xxxxxxxxx>
---
arch/arm64/kernel/sys_ilp32.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/kernel/sys_ilp32.c b/arch/arm64/kernel/sys_ilp32.c
index c366d92..a2596f4 100644
--- a/arch/arm64/kernel/sys_ilp32.c
+++ b/arch/arm64/kernel/sys_ilp32.c
@@ -98,6 +98,25 @@ asmlinkage long compat_sys_statfs64_wrapper(void);
#define compat_sys_pwritev compat_sys_pwritev64
+/* IPC_64 */
+asmlinkage long ilp32_sys_msgctl(int first, int second, void __user *uptr)
+{
+ return compat_sys_msgctl(first, second | IPC_64, uptr);
+}
+#define compat_sys_msgctl ilp32_sys_msgctl
+
+asmlinkage long ilp32_sys_shmctl(int first, int second, void __user *uptr)
+{
+ return compat_sys_shmctl(first, second | IPC_64, uptr);
+}
+#define compat_sys_shmctl ilp32_sys_shmctl
+
+asmlinkage long ilp32_sys_semctl(int first, int second, int third, int arg)
+{
+ return compat_sys_semctl(first, second, third | IPC_64, arg);
+}
+#define compat_sys_semctl ilp32_sys_semctl
+
#include <asm/syscall.h>
#undef __SYSCALL
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/