From patchwork Wed May 16 08:18:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 10403009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47F03601F9 for ; Wed, 16 May 2018 08:23:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36C792465D for ; Wed, 16 May 2018 08:23:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B5F728764; Wed, 16 May 2018 08:23:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F9162465D for ; Wed, 16 May 2018 08:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WcJunIyqF6c9n5cMhYEbFd0H7zgPGTKasn99Ij0/fD8=; b=knu5LNJR9b2sgA QeRvFWgbaH9ZiN7xImxllIWsyA7SHyc3TLcYWUmnhzu9b6bA9LMdX2RlQK2W1nUdCoDnYd1R/A9mb vwFt0JV6QPCo5XpT2zXmvd85HXgzdiz6wgQE2JMQ3nk8hSM1CeJqXTbmG63eDmSihzILs6klz0i+y NM7bSMV5qCP8bmvwwkdcDu3Va2Pfu1Mb0AaMTRfTm+2hujyrMkGt+/Ruvhtwmeek6VUwFRPOxEwu+ ZKmwfMfaLJN2QouWPMGJftUKnj1tQOkFiw90ab4gR+t7lG+iE/CERQzuAcDcJ9d05rgD5o1tvSGHo 7arl5ecr8/yJ3dOlUzSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIrim-0005T8-1w; Wed, 16 May 2018 08:23:40 +0000 Received: from mail-sn1nam02on0607.outbound.protection.outlook.com ([2a01:111:f400:fe44::607] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIrfU-0002iD-ES for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2018 08:20:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nZ26KlTEVnRaHlwrtiIoLZd1sA+N7KePRgLmgyuQrj4=; b=hvz/x5kGfmzmw4kJxu+njcg2C4wrrMkOkjXI2CWmtsh/1LVyddvpr0x94ZTMBFFF4V6sMi6t2fGrNNap0jI1P907OC+KQnX9YHcx9KERTwWNty6Lg2lLs5SvMC1HVOGhm1+ysG5KFgTwtF5iqwG1Pp+uZxbqMWNEtF8JC1rtz4k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (176.59.36.13) by BYAPR07MB4373.namprd07.prod.outlook.com (2603:10b6:a02:c0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Wed, 16 May 2018 08:20:02 +0000 From: Yury Norov To: Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH 03/24] compat ABI: use non-compat openat and open_by_handle_at variants Date: Wed, 16 May 2018 11:18:48 +0300 Message-Id: <20180516081910.10067-4-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516081910.10067-1-ynorov@caviumnetworks.com> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.36.13] X-ClientProxiedBy: VI1PR08CA0124.eurprd08.prod.outlook.com (2603:10a6:800:d4::26) To BYAPR07MB4373.namprd07.prod.outlook.com (2603:10b6:a02:c0::16) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4373; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4373; 3:FvBYHDpxWNr5v3ICvAe0MrhtwnQOaRkpSgNUZgUhfm1NmjRqmchpLgZT8OoAyUEVpF46zYYEK5Okp9gam4NcOc/ZbYHCywh9a1eVvEhcFb73FFofgPoXJBzz1NIDFluuWf5Qx7CK1yHwzO0eED7jo3tOPtzVXPJd6czJ2RJgTISzeEBMpYcUCCkx2MeFfWGXa+/npfWThbvVAZ6yvVvIRx4KApDeC8PU/j/MEwEpBm6jkN++2nn/zuOeHfYRS83H; 25:jL4K8ZLmY+EhjFRkYYeMppalzd0ozM03HVFp0b8sG9iEelwoVWdCgAqqh8hRT8YIA/UK/SbSklbX3+70tLYLsDZXWxd38ihOpez5n/h/oTljc2os4YsM31oCy25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Y2pqpcx+eDmVqeowTx6XmbGE3F3UpMo17Fd12G5YRIXjE/JD65zQ0lAH1wvgvcaPntdNkNMY=; 4:wF0A1db8Yy1fpQp1J00ivfgJ0kDtBy53YIhUPe4vUk41dZVpvMeKaR3HzBCmNMgCeiwf68zmwzt/2UmluDIXXVrpF/c3femoAojjfqmGuFlKTf80mEN+IFP/qos8dMzdQNGshS0sldDiN/edvBrSLi5WxCn0HGGZ/U1EFLBjfIy7aE7PB2wWgfXTKJt9FRKO4Xkxz9bNh5GtdW9DTIgGMuvlyPjTDRWOlAqpGVeahII4o2vKGJgVal7dygvObmPilf17fREYxOhTXlUxdP78MA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:BYAPR07MB4373; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4373; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(39380400002)(396003)(346002)(39860400002)(366004)(189003)(199004)(2906002)(305945005)(39060400002)(7736002)(42882007)(7416002)(7406005)(446003)(11346002)(956004)(476003)(2616005)(53936002)(106356001)(68736007)(6666003)(36756003)(47776003)(4326008)(5660300001)(3846002)(6116002)(25786009)(50466002)(72206003)(386003)(76176011)(76506005)(54906003)(110136005)(26005)(6496006)(66066001)(105586002)(1076002)(48376002)(8936002)(50226002)(6486002)(8676002)(486006)(81166006)(81156014)(478600001)(52116002)(186003)(59450400001)(16586007)(97736004)(16526019)(316002)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4373; H:localhost; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4373; 23:jJF3EtXbQgt8055cR3uDqgUo63ROMUPWXUbIUl/FA?= =?us-ascii?Q?6itRxLByk6UDbIKpMEgcBS3hfSQMkH2h2oYkBa6PcKlR3tzlWbzpYbdahFuP?= =?us-ascii?Q?b3MOQ+XBNDtD1MTriXDrHb7vNmkczbigvfat8ylU194zIdAKISOdEreqrRk9?= =?us-ascii?Q?lKyOE0almhPJVWP/tzBLeCMJJwhLlBiy997/12V/OFV9d84WiwH/B05FN9oG?= =?us-ascii?Q?2Hvv0ux65QvylgElkLcq4pb2Lyk4r3w2YKVWrfEpirI9QZCGIzO4D4o+b6d1?= =?us-ascii?Q?izyLO4ttVa0r2xIxys9/kS95gPPP7s0hv7q65a9OqYx+PJK7NOO9I560UZmi?= =?us-ascii?Q?HGENtpAMqy0oFUZr5AmTvc2o1os9wMOVp+xd+aVDzHE5bVQo5TqNs8NO4W7o?= =?us-ascii?Q?eKCUNU9rT651BW3zpR2wQynbBVoxqueyTHNkkhZ5N09jE3APoCOEY8JyNzm/?= =?us-ascii?Q?cWOJt+hvYoojMVl2Wy2ZnEvWYA1PJHt2OWH9Dc+5oB68SlYboxQTW3CjrviS?= =?us-ascii?Q?Eu5t6s4NfUZVhwVh/+FoVygI9rggJ7OMTjfHjiqDYV0egaiGIUiVArWiT7vj?= =?us-ascii?Q?HISWRMdr6RfhQvQErqc0QgLTqDw4H57t5nyujA1mcs4qzlcY8+DJlSJXkIay?= =?us-ascii?Q?5CB5Ym5xNN4ZO7seFxwRi2U6t+3mSdh6BUkK2AnpJUlWR7JE6lPxsVS2belE?= =?us-ascii?Q?R5s0FJY/rsu30iaddHXtZ58fCqj14wDilyUms6P9IDazWLPozD8+DNK/f2NL?= =?us-ascii?Q?Czsr2IhMBmGk4mSnTk4ZGTW1dOvuj6S7yAFw8GX+CdaiN2fzNzu9ft3wdCQY?= =?us-ascii?Q?Bjf1phNHWX2fsB7vo2cT3FUuyvNcA0vS06kcCePr67hWo2N/+x/scjuysvQ8?= =?us-ascii?Q?BSN81pdfmioReSMGlY1tUSh82HnYcKB2ENGZWnc7RXQVwXOx2oM/u8YG56+7?= =?us-ascii?Q?n1/3dnjb1+0lqKGIbWQGWiZrULTPi/buNmiyR4lMVBwPsXmsNcLNcHWGrHdc?= =?us-ascii?Q?sm1FhB8tGR4Mv2WRqKt1aDnlJm1/fCP0G+2vo+GSX0Q1B2lL4e/dW68MagBS?= =?us-ascii?Q?eUjMXYSUbv3WrbgIMTeLZBJiC5kqXv5z5TRhMXb6fDqGOHaF5+xl5Q7fnjQq?= =?us-ascii?Q?LnIbnFn6s1/cxD/90L75m4xyIZ/ebFO8i77YsvlOa28tdytNTDV5sgbjrBPW?= =?us-ascii?Q?azn3pwWN+jzQZ28XPwpXudwd2t0dEAkn7UCbEFZ4RMO8aEK3+pxHRv1BUof4?= =?us-ascii?Q?uLQdG76H12RhqpgnDD9IWZYloWZk4nuiK1m75OVHjsMwftStbt1lkBPyIRPS?= =?us-ascii?Q?19CyZiEFU1Y/4M7oBVsoW7Qq13kxbc+xsaVmVaCm1BW3mDPrQV415zdmeom9?= =?us-ascii?Q?pR4fw=3D=3D?= X-Microsoft-Antispam-Message-Info: WPV12xSC8XUVwnloA7KOibRFnnRPYH97f4eug6KQCAA96fFaxqMQWE2CTChU3TEZCtmijFT8VwSL1t616HhPYb5N/jNEQcV5e2nXAH+X/ijZ7g8aCTKDja3eAe1/ZBfEKrLK4/qcz41a3wg1XP//GqXMyz0WK2saYX5WDg4QUvBmIN58NqhVyCbALPZKHJ/i X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4373; 6:3X/uqSAROwnJrg9Lcpl3PutHfN0D0KOfnyA6yHSQsqqHeu6LEslvSDqjxwc2Ef/J8mrW1pyyvidpUkgLZIGwNkPhrty9j5kCqgMBRr0OXuqVmbBgX/HSSCx9HYe0i2yyGuaOr+0crqNpIqZvv4f1p2kiBWARnLMq1plqxicEFAvPlePX94ZzT9dHfWul88AJ4gyFQfhcjU/4zhRg6yAAG9uqRPwfJmmDE5F279b28J4GogT7unCEwVT6oWQfL/7dj8YYlZ9DG5xjmFKKNr4WfwK7i2FYTFnWWterVRt4qY+BeCzHq18M5gDHq0Clcy4wgmoQgfqRkK8plIKlOcfY6YgWGjSy5tQXiUUL6wemZwo7iYcVkz3FR9vw1SnsQ1O5hZExIPuxTXEJxJo14EzoAgJPLKvxVk8fpIAvH1Ff56/mbHyxEZWnNxat8TAcUK2b7BoIDLqIhJC94y5dF0rq9w==; 5:pe/P13NELynVPk52eKPifme/TBojtxPgxdVUHzqSk0Pbb2siU8/mJEv7Xg4nK4t9nhINtLBdbG0vReDHZ+djgspNZ70V8oxa2SSkEnYY7Mv7FO9QidUyFcBc+dnc84UbWSetxSl98fk2C94iFgd49wzTDeVMNxmnz4KKAQXbf3U=; 24:LS577eft9tcqtoOW0nipH+qHqoacsKfXW6cVo1w9aoUiR2BKS2yLFFEfy5QiqhnAD2KgmRqHdlbWDOYBx/Bbxr/8iNglhu5L2EmMzG+b/dI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4373; 7:7phcWE6TFejJMkdSZEXQEZnVuMG+zb9AmwDS5ZzyzQ7MVqce2tiYxLc+VSmtaCBoolM+SDdkf13unipVetTHUAHz/zqzjDz9MclM4SNEZGu141MKnrYMm5mfpZUK7Cp5Sl32AFhMrQVlPKtLbhOb5h6keutm3E7VwNrALIYX7eMMCx901vhO++0w6RvzrrWfgYcdCkgXR/We2YFC75SdulH2WOqAVZKEKVjH2ivP+ZA1yU6IfEeDhRAtoLVx4nVs X-MS-Office365-Filtering-Correlation-Id: c6592bf8-6008-4951-5f88-08d5bb05d329 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 08:20:02.8477 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c6592bf8-6008-4951-5f88-08d5bb05d329 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4373 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180516_012016_606463_94DAB688 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Szabolcs Nagy , Heiko Carstens , Yury Norov , Philipp Tomsich , Joseph Myers , Steve Ellcey , Prasun Kapoor , Andreas Schwab , Alexander Graf , Bamvor Zhangjian , Geert Uytterhoeven , Dave Martin , Adam Borowski , Manuel Montezelo , James Hogan , Chris Metcalf , Andrew Pinski , Lin Yongting , Alexey Klimov , Mark Brown , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch , James Morse , Ramana Radhakrishnan , Martin Schwidefsky , "David S . Miller" , Christoph Muellner Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The only difference between native and compat openat and open_by_handle_at is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we are going to drop the support of 32-bit userspace off_t. The exception is tile32 that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked-by: Chris Metcalf [for tile] --- arch/tile/kernel/compat.c | 3 +++ include/uapi/asm-generic/unistd.h | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index bdaf71d31a4a..3b7853c59395 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c @@ -103,6 +103,9 @@ COMPAT_SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned int, offset_high, #define compat_sys_readahead sys32_readahead #define sys_llseek compat_sys_llseek +#define sys_openat compat_sys_openat +#define sys_open_by_handle_at compat_sys_open_by_handle_at + /* Call the assembly trampolines where necessary. */ #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn #define sys_clone _sys_clone diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 8b87de067bc7..426a1a496d9d 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -179,7 +179,7 @@ __SYSCALL(__NR_fchownat, sys_fchownat) #define __NR_fchown 55 __SYSCALL(__NR_fchown, sys_fchown) #define __NR_openat 56 -__SC_COMP(__NR_openat, sys_openat, compat_sys_openat) +__SYSCALL(__NR_openat, sys_openat) #define __NR_close 57 __SYSCALL(__NR_close, sys_close) #define __NR_vhangup 58 @@ -676,8 +676,7 @@ __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark) #define __NR_name_to_handle_at 264 __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) #define __NR_open_by_handle_at 265 -__SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \ - compat_sys_open_by_handle_at) +__SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at) #define __NR_clock_adjtime 266 __SC_COMP(__NR_clock_adjtime, sys_clock_adjtime, compat_sys_clock_adjtime) #define __NR_syncfs 267