[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1447795019-30176-16-git-send-email-ynorov@caviumnetworks.com>
Date: Wed, 18 Nov 2015 00:16:55 +0300
From: Yury Norov <ynorov@...iumnetworks.com>
To: <arnd@...db.de>, <catalin.marinas@....com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <pinskia@...il.com>, <ddaney.cavm@...il.com>,
<jan.dakinevich@...il.com>, <Prasun.Kapoor@...iumnetworks.com>,
<christoph.muellner@...obroma-systems.com>,
<philipp.tomsich@...obroma-systems.com>, <broonie@...nel.org>,
<andrey.konovalov@...aro.org>, <Nathan_Lynch@...tor.com>,
<agraf@...e.de>, <bamvor.zhangjian@...wei.com>,
<klimov.linux@...il.com>, <joseph@...esourcery.com>,
<schwab@...e.de>, Yury Norov <ynorov@...iumnetworks.com>
Subject: [PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl
From: Jan Dakinevich <jan.dakinevich@...il.com>
Reviewed-by: David Daney <ddaney@...iumnetworks.com>
Signed-off-by: Yury Norov <ynorov@...iumnetworks.com>
Signed-off-by: Jan Dakinevich <jan.dakinevich@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists