Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755170AbbKQVVt (ORCPT ); Tue, 17 Nov 2015 16:21:49 -0500 Received: from mail-by2on0057.outbound.protection.outlook.com ([207.46.100.57]:65007 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755158AbbKQVVr (ORCPT ); Tue, 17 Nov 2015 16:21:47 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , , , Yury Norov Subject: [PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl Date: Wed, 18 Nov 2015 00:16:55 +0300 Message-ID: <1447795019-30176-16-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> References: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: AM3PR01CA058.eurprd01.prod.exchangelabs.com (10.141.191.48) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;2:B6pV6gqosbCq74w4v9X5e/4T9Po4r5KYh//3MFIwVG1V0Y7WvuLikV2BYuxIpGqhTX3fnuLR2EgDhnEG+I9j3uFUIU/8wabvDOiC8+/ZUN+Giy0mgMRcchpyKVUTWhevr32gZ0mFJgZbnlJUKYaKLR6TgYLVy/b82qOpALT+kdw=;3:ub/VgqF+JybFcYPEg9pMJ/3D2OWZLF6gffavzZ1F/VERxK22sFbx3iWhwrtqdfblz/xPARadpTX6oggsAWEA0Cepn/7ToZMvv09zNXji4ermkXlkNjSAN+s8Qqd4Wbwsvcpu1OjvNJMKOGjZmaVGVQ==;25:yNnjsZCt8+NlCSuHnkaXCAwxlyQNjIPxjUOF+lnyA3ueuK/lHr/2HXWowM9eCbx95V9NitCn2X8SoHSqT2k9I3kSeoSxCCmIe1/hVzYWpreHIzHic0NLckbdrNzk17MIPwfr71s+pLfNFdTMOFKx3k0iULGvlthSfkP3Ti8tDaWyCoLzmBOdLAF9YrPDFsaBNuJyMEZS7Ab+3UPuqMhCkhsEbQcS6Kpco6n6tHNOkS/gIYaqyxFEvgiHyf0ay+dCkpgP7MWsqjLG8LkNZWw4PA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;20:IzUwmse2zctYnyI78sMqN5mEhhO7e2+QbwFcqD1tct0zcg8fkiS5fY8LsV2d1EpYHbxKv1pGLpbmPxTmEYGSSrYfFvoLzCmQvIouslwexoNBBVlJJIvKQGBZNVIuI73PEtn4HXSFtNzVTun0vHh4jmoyR8aTBzRSFLXBTstH2fnXuT3SKX8taHnN+Oi2I2VCgScKlvR0y7C3sjKfFYP435B+soIba30OEmO7ZBkQ+c16X8Qttsoy4o27EeJR/Vv3joHFd1NMeMW3CTw5FdIQTw14c0A0e6C3digP3Sm5e50lCsESfbokW9qrmmP4JcsvlDQSbEUyeRfY015J+gBCCwtsBGnIikrumCeq1qprRWrkCGaOgnDka9/oaKcqR2XgzNE0fP1fHHaOJKVAi2M6gpE8qP7SfHUqEE6E0MBxKZ8dx3nmqnuly4IS5JnA73luhq9g1jieHMSztn8zkmEEg0JH2RaGhHXy/mHJtO+5BhBfAt72CBH0HhSedvT2N4MThUc4/l+/Rj0QSA1ey80oyaPRxYUsUk7RhJFKs1iF0/U5s2Pn5VX7NLP5RRvvyJccZ3t9DmB+5bkUmRuDDUIDtJkslHaufDVbKG2/UCv37xU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001);SRVR:DM2PR07MB624;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;4:ZYFKc41tZ5oxnQuo3VWM2wsQncG++C4u0fsRik7A5Eniv5FP2FQZ7je9LMTHPLFlaz8Kz3C2F018PVql97TAUa18RG7jdACx+FWtCK8TMCwMZABk5r8KEOW15RKVrMxoTtBArKnA9o3kZ8PedydR+2wvPFapkReiINJNJ2kctNuMJnXqkRACnh9Mnqji2ClT0uSo8lQJ6Y8OdtY4Y77630+3V66/kJ/BhkVwSMFwzkvwREmySFEvYjY3i9libNDPSlDKKgp2qhRuIpR0DrLfbnWLQ44kwt08f3bEBy9/TWk1yl4jUG1oK7d31BMrjQqp2zGTfQv34QNua3tg7X1dEkPkznqudfcD206+INgRGpU2MGiTTb147G9zOjSA1vBR X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(199003)(2201001)(50466002)(229853001)(5007970100001)(5001770100001)(33646002)(106356001)(92566002)(36756003)(19580405001)(19580395003)(586003)(77096005)(4001430100002)(105586002)(47776003)(50226001)(2950100001)(76176999)(101416001)(5008740100001)(50986999)(5003940100001)(48376002)(66066001)(107886002)(189998001)(5004730100002)(42186005)(81156007)(87976001)(5001960100002)(40100003)(97736004)(122386002)(76506005)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB624;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR07MB624;23:9TPPlUpjk6F87UnQFvXqOUh8xLAT/UIoF5fzGGYJOa?= =?us-ascii?Q?Rs2PIe5/gSjBor9hzgGuFfP+u47zTtcKvyeERBuMHnA5RzyC2M9LVTkHhh9B?= =?us-ascii?Q?DKDU+MHjulFjmocjKIoIlVr1yKOLqkowtvaJl5+RQpzaT3CwENku3XZkPC9r?= =?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3fHucw0R6EEvQ9XiK8ln?= =?us-ascii?Q?cpA62I3zWUxmswV7gVXmlKegelPM6hmQtQe5cYJbJvoFEWdUETeQRq6iV5w6?= =?us-ascii?Q?h7RczPOhY=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;5:pNi86VapL0fu4JQgR+sBnY1XVQHd8uAYPSNsQLl/d2+Th4U2Zya8kAkIZraoAJWvIoidp9j03SjfRZ2UcHOR3k0eTyfr55d/INm1pBneU+ta3R5nBCKoX/lxk8HqTAnVUuurX3z79wh3TIvgCIghKA==;24:6DOfgHmgCwSqILp80Vzw4Si56OCh7knzcbtLTVjjLyrTMt4GspdWVaqGvGueeCmhM1ow5oo7yh3DojYKsNaEmFRObOwzbAeZraJVFJdCaVQ=;20:zdCp7zNkgxcgGk35R2Gpt4bKyQRsixJMK1crYKnDQEKl0yCiZsFFOD0V3qhnou81RVZOJjUvbLcBEU3Yw6auCg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2015 21:21:44.8643 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1499 Lines: 48 From: Jan Dakinevich Reviewed-by: David Daney Signed-off-by: Yury Norov Signed-off-by: Jan Dakinevich --- 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 #undef __SYSCALL -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/