From patchwork Tue Nov 17 21:16:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7642381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6595DBF90C for ; Tue, 17 Nov 2015 21:25:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EE9B20412 for ; Tue, 17 Nov 2015 21:25:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4A7E203AC for ; Tue, 17 Nov 2015 21:25:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZynjA-0003LY-LQ; Tue, 17 Nov 2015 21:23:48 +0000 Received: from mail-by2on0068.outbound.protection.outlook.com ([207.46.100.68] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZynhX-0001nR-G5 for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 21:22:22 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.120) by DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 21:21:44 +0000 From: Yury Norov To: , , , 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 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; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB624; 23:9TPPlUpjk6F87UnQFvXqOUh8xLAT/UIoF5fzGGYJOa?= =?us-ascii?Q?Rs2PIe5/gSjBor9hzgGuFfP+u47zTtcKvyeERBuMHnA5RzyC2M9LVTkHhh9B?= =?us-ascii?Q?DKDU+MHjulFjmocjKIoIlVr1yKOLqkowtvaJl5+RQpzaT3CwENku3XZkPC9r?= =?us-ascii?Q?v4G1Hv9qIw4PkJ4MLBT2FL4fJtdgI/+eSNmljB/oZnnACrgi3yktSSCJbjxp?= =?us-ascii?Q?Hj2OI/8pbmyuQr2Qsb12Qk+VqLi4VC5E+Za3X3c7h91At5mNfD017hQOnVNW?= =?us-ascii?Q?xxWGR204WGiw5SIR6lAm0H7VITvKcjUgCnwf+YncTwWtZSTZBxNn/LawUTuT?= =?us-ascii?Q?uHcE4PIqhXZA9mCirSpphEUvjrck3wZNMQDiVRTv+k+meL55sRpoheiZ7lxj?= =?us-ascii?Q?lm1cReRNtYF7Iva0Xx4DtOXsolr/TaW3X1NjUVDCvf6y0l0LJPXn0fcYQQAW?= =?us-ascii?Q?SLdOesG7zhjBPwnBzF9I1hvxI04K6+29SXXy98MBKYrMO9BPwugc1JUYByty?= =?us-ascii?Q?hLfeI3zyTaCiZOxcj3fRJ+sSLR5vC7oshm+cCMHBV4SbMMhiYdlxQmt1szc4?= =?us-ascii?Q?buHFm3/6IKUDpSd1syh8KvHqRWqa9VgiIBMnFpARlCBRwAdE0lnmIZlUhDjp?= =?us-ascii?Q?9xUs1HAkzBGzo/X2kPvVpHwIa20Wx2ZNHIHn/ZAiVplEu8zSNKTqlq7xCh2/?= =?us-ascii?Q?JKSxSFIQvArqIebBkb+VFUI2UcC7UKVwjhaiSpoTnZYLaYIgI4m9nohZkvcW?= =?us-ascii?Q?oDYf1L3bbDx27NNto1MWqyM49/eptI81PBmard11AfMc3QjYXV+wXOPnfAD+?= =?us-ascii?Q?lpVKnC3mO6fn4x/bfiM65uUS3kH2Z+0U+8JeQ1sOTwzdlVHsBAnYel6WfYRW?= =?us-ascii?Q?dU8D99YlFotyTJFDo+o5N/mnbUtCpUdpP2eHK+ksS3T9CmGvoTnG7EipfogN?= =?us-ascii?Q?cy4bcEyV7smlhg287Me+YrVPDx98od6ew5M30UruSrfPHp5ppG5bK/Eik5HJ?= =?us-ascii?Q?MCzMMVqzvQrm/n/GbhcMyNXae4cDGkvqKI84CC7r3fHucw0R6EEvQ9XiK8ln?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_132207_893899_DBFFCDCE X-CRM114-Status: UNSURE ( 5.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, broonie@kernel.org, jan.dakinevich@gmail.com, Yury Norov , ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, andrey.konovalov@linaro.org, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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