From patchwork Wed Mar 1 19:19:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9598995 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 7D35C60429 for ; Wed, 1 Mar 2017 19:20:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67B3E27C2D for ; Wed, 1 Mar 2017 19:20:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BE7028558; Wed, 1 Mar 2017 19:20: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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 771A327C2D for ; Wed, 1 Mar 2017 19:20: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=JLKYFXKNH2/0tnEvDYGSAAvGjR/tPQFwDBeNtYeRIUA=; b=UDZAQjx8OD42em yA3AEBLdFQFLFi5sKW+lJV8Oi8PtCEOA+kW/ELQjyZ+8YY9aN6JcKj7JO2NqLT9d2JSNydO2hdiu9 HmncYMwb9EghBTXPGqBk6NKS8V1lyYm4gBlwFStYeGdotVNh5uzArb5LML61P3cUUXEyK+LWdz/Xq KosZr/5s4QRdMzXs3/LadR0Zx0Ata+6DxjQdUEjsjB9x5QVcwGhr6AEu3F1hzb3RfrBgAp84L+DvS TWeOvNVbB7luVNxwKq900mJpKX8R1q5VcusrXer725YBsgMrVzNuBDNslzgqHPhu5HDUHrIdCuz8p 51d3S9YFFeMmxH49YwVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cj9nv-0000nd-G2; Wed, 01 Mar 2017 19:20:51 +0000 Received: from mail-sn1nam01on0066.outbound.protection.outlook.com ([104.47.32.66] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cj9nF-0007Qt-Jx for linux-arm-kernel@lists.infradead.org; Wed, 01 Mar 2017 19:20:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8ncNOfRGiSCXc6ye/OOEpb8ZYt3RRh55wWX0aNMPtc8=; b=wD7Nsr9619BszSzn6Hnn9tYtmd/Iu3IR43RZa19WL62WPr2Id8NkGJ7eSxvOHzIPQNbqjWd+V0ox7DUkrev31am/yMRT2Q6c+YQQq/8JJvpxbTkyDL8JsRJROwdU+XPlAdkJE9fM91SuuGcEkSWjM3xb6X+2h1s81ocCt03HLyQ= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none; lists.infradead.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (27.97.135.110) by SN1PR07MB2253.namprd07.prod.outlook.com (10.164.47.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Wed, 1 Mar 2017 19:19:54 +0000 From: Yury Norov To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann , Catalin Marinas Subject: [PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants Date: Thu, 2 Mar 2017 00:49:09 +0530 Message-Id: <1488395968-14313-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> References: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [27.97.135.110] X-ClientProxiedBy: VI1PR0901CA0067.eurprd09.prod.outlook.com (10.167.203.163) To SN1PR07MB2253.namprd07.prod.outlook.com (10.164.47.147) X-MS-Office365-Filtering-Correlation-Id: 62c3d185-377b-44b2-b39c-08d460d7f170 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN1PR07MB2253; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2253; 3:h3ReObx2AosyrlFZaiIb9MPwWPFPWS8HJOgz5KvjR5OsjkEnLTNxMSUmnRDuOABQ5QmC9dFlm7p779a58wPX+bmfN8z0ED2/x0RG2Cw+BvF4sc2DatHsmWgri/5wyKSQQBwQJpVzATOlld7w2cGSFzD7B9kYresKGSsgk3hK++ydgRqeHIs9a1ZpQ0FAcgfN+1TzTro4FFpwhJurVpVRuvZQGsI07iUDG4feABNT7+FiX1w0GEskZtS12CKUZocAPlXKckPyc654c69Mo2J5Gw==; 25:f89HtbnXwMjJ3kMlA60vEG1n3fDvGIf06D9oJDCwmDsWpn4b/milyp9qQdfS5tTBwPb5n8bSSczDKSN8tI9xZAS5kU4y6r68s5pUgCnbs1spgmZ9vtrPBp5lTbr7n5yvF8v2Unu740n7vQ4QpGS/KikaDBs8KPVCAQKs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nDAXps5Y7FP8smeEprscPfvtXiMQMJI7GDLm/xa9Hf5ggHzjRwzxm4l6R9fczzS5Ta/fI2RQW+MLbZ6crakfNXF+9e7tIrpl7aCWBUX7BLyJmTieupXkYSQgpj8Meyjz1QZ7u4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(6072148); SRVR:SN1PR07MB2253; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB2253; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2253; 4:Ak/2CLdKv7Jwhi7kgNCLYXduqTUdU8dCJXR+QqLC4Lu6GBGYCdJwJICz7LGM+uvZQfsODYUcARHe3MfIzDUPAyhPt0V09G3BQxsHYFgMH+5BNrzw2zs+QG1lJB0l/2u0RqyWMN6zejssGgy4a8lPLrW/oB6w5cTrJE7HWL58zr35NBL8gGbhhbCpHbeVS57daimQeH2YCfL7ZgAHH/ZxgiDi1dRgE7+k2lCZX2KoEBcXWDH0mGdOG73gh+X+6N1kIWQ+IMZDZ8ND4q/h2AQYlnp/B4Mi0CCsMQgWXUxbovmDRDbk0xcPcv0hljuyLYoV/JTvC/REDOGjYvqyma1DklOKIR6QnJdTQcS2fLvEJ6+WN9wF9vg1ILXMcHqj3gb7W9tFlVGTjMiRAMVzfy5PWR8KbhBmNj4mJk4xSCEE/fGea9GMnttGKlIaCW5z5Z9N0tGEHHEyjq/73EgXGUCGOfGUESdQ6mRh95csY7DU4Yae8vqqk2krzzzPRvA+VR8t1sA6PiFLg1/oSCMAZT2Vmk5lLwT3sbhPjBwULRIwd713bowC3HmkUECTs2Aze3CR1sJ5Sqr0eNDwNpD9vQ3+3KQAnmEogokVZCYTKPQfmBo= X-Forefront-PRVS: 0233768B38 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(2906002)(305945005)(7736002)(76176999)(7416002)(33646002)(50986999)(76506005)(47776003)(3846002)(4326008)(6496005)(6116002)(38730400002)(66066001)(48376002)(81166006)(189998001)(6486002)(42186005)(36756003)(50226002)(92566002)(2950100002)(50466002)(25786008)(8676002)(5009440100003)(5660300001)(6666003)(5003940100001)(53936002)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2253; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR07MB2253; 23:WJCPcm4yvYt6Q1q/IVAvAHHSwUPgFNhnEVVC2oTVh?= =?us-ascii?Q?USPq442/pgXLAAOsvC4+9kaufZ0bswLyb6oGGxmEsi2WvFow0dm+rHiV8YQZ?= =?us-ascii?Q?NEWx1t12A+T3s+SI0xq4L5FQMGo0+tQyVsCDnVzw63Bmp0SuogDre/svLkk2?= =?us-ascii?Q?g+h4A5K2aRzvm9QyVmLz6pFatDZVTpp+UnhGrW7e6Yuonc1CBKhWL/g0Sgn5?= =?us-ascii?Q?ce4XYiBbDblgnXJssR64XL/Z1rrPucjtVHW7ohiOqnSyzBLbIPxvOn10lekD?= =?us-ascii?Q?pCFy7epVftmEZjv9LGKz8d3O4JWqINzIOF1DVqB6vJ3ZNSNgyS2Rmb7CVlPe?= =?us-ascii?Q?+dQL5wMJP4TML94rqMyWTDrr0+e3olx159AlJu0En0nEP+ZHNM//l6HSqx21?= =?us-ascii?Q?51Q9xbbV1SoJL87abd36rJ56asWvqVsA5u2uPr0dJmnDJRmpcIDzVJb/u3U6?= =?us-ascii?Q?ifpiY8cE4TIJgwHAK+ZB0ES13Lr4issU0NZ2wfIXOps61RkE+QNg+pN0Erzf?= =?us-ascii?Q?NoaTP3n9BkubqhYWpKGfrEBUbllkSPUjI54DUTQEMZNGSB7L+r7WZtzjXpb0?= =?us-ascii?Q?3nid2VY/LwXpYWoMV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E1e0+2JfzIFY4mo=; 24:9ugBeVvQOy1s5zA8FVPlgArVKxpAmXa6CK5IFgaIIFF6Zt8G6XTyxFPDtUr1bvm6Z8e4LwYVuNM04krWsV823fc9xYPwfEmEw5nb5IFd2eQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2253; 7:BUgew3GPDE5B5ew0OVYsnkkOEgmDQXATX0ZYrekFn2KFG3BmNJHkocL2+Oz+DUI34LVsDLJKDFR8AURh3bgieEyM4hTXvJuIqKKvE/U11L/EGQ+ODtymvOwmZyGA9zMNxtIdNeyOdjG6we34XYMiQm7wLY1+FZoshV6ba/BZwlxmdGuDHGbXgYNKfybVwmLU1Sq4QrQVN9h7JErZjq3P+FZjWQv3o3qca0LAwCC0ba0bMz2P/QKB4DKpCrzFvT+JcQvMXPGkekS2xbLOPa997HXVZV9BuIXWDrdpzr+HI5RRmsu5XRw/qhgXUflRMEN+G00diYUycxq9tgJxizKSqQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 19:19:54.2887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2253 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170301_112009_788177_FD7FCB4C X-CRM114-Status: UNSURE ( 6.57 ) 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: Andrew Pinski , Heiko Carstens , Chris Metcalf , Yury Norov , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, 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-Virus-Scanned: ClamAV using ClamSMTP The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only 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 bdaf71d..3b7853c 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 9b1462e..a6062be 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -178,7 +178,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