Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbdFDMAu (ORCPT ); Sun, 4 Jun 2017 08:00:50 -0400 Received: from mail-cys01nam02on0075.outbound.protection.outlook.com ([104.47.37.75]:51452 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751139AbdFDMAn (ORCPT ); Sun, 4 Jun 2017 08:00:43 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov To: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann Cc: Yury Norov , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com Subject: [PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants Date: Sun, 4 Jun 2017 14:59:50 +0300 Message-Id: <20170604120009.342-2-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170604120009.342-1-ynorov@caviumnetworks.com> References: <20170604120009.342-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [176.59.55.28] X-ClientProxiedBy: HE1PR09CA0078.eurprd09.prod.outlook.com (10.174.50.150) To BY1PR0701MB1271.namprd07.prod.outlook.com (10.160.108.17) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1271: X-MS-Office365-Filtering-Correlation-Id: 06caf9dc-3ebc-4fbc-3cab-08d4ab415138 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1271; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;3:/sBD2FhMU601+RKCgJwZmPE6aeLxORfWlKNgeqp2YCdBrdOLi5QVDJLjV5WCTzYZKpac3vpcCz8DTlLT7ROgdGg6Xn8ryNRGjOhOfuX+WkRdBs3j0AG9QtTpYGfRLBZzkbHH5cpsHhXVRF6cjgNGL+sgrps9pUDp9sWDFMBYiKyoEBGZjpLTso8n3GhNUY7LbMpwkTlq2hm6rsdhTogzEzjsZzc1xHE1VZynJzZ5Dd972Bmmdp9BI0EZr7E5XaPuaYN8gYhUX384bOhKOACm8Pq/mSmKcyJF+0hJowP6FAYRvavltVkitlDSGbQEho0gMpTgjZ9xHSaA0uClGyfZMw==;25:O/1Tvcw+9+qKlGioWJgwsehqBLPE9md3avpe5VMvQv/DC33BoE9vJIRYQtzYzrfWsZN18Pf8yVR3wyUl/I71YQVO/9bzJD6gF/6d5QE7wZYfb2xBjVoD6wTV/gS1blAorQ7HgJLVWSbyvFKZJHx6I0Wt27k+ultaJoitpxXCjcJ/FZk/4ANdLMlaH/PlgJcxYm3pEampoAxFwPXADu2mSNVb8gZS4ae7zviDBnYD8ZbyzAuDx8NvDHnoKYCdDeR3AzJUFZM49/0kU/OR1NA6B/P2UjlmrH5uAPNQ6//e12tRBKkTWrJgPUgH1Z7Je7REl0yMWs8xQFRa4Pp9OoBgXHfueAfhRPE8t+sfwvuqCG3H9OHf20TQcL4JeAS078qIlgKlz6f9s0Vouko1HiOSGDLp8KhjvZ5B65SWHqBR32fCSR3m2kmknbl0aQJ/nykklFyPXCwUYedVhj2aYlHFspxvyJIPv4PJYATZANojwtY= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;31:i7BUfNawuQYvzo1+kJv+JGejMSAiM9nDu+R+kk+/emeK3hZJ6GqeBBQki8eczRcgMaCyFezavnZaHuTejjShoCGqzVJegc4uYBBXcoaacIZfidouVycRIVQet3APS7GjEjnqsMdX5xdwEZ5O1S9DdaUL9ymE/jfAVq31Mk9YQd6B1lG3tyoh+7iHV+BU+R6Ys2j9z2YO8tavNrAVrxddgwp8pNFhdE+7jJ6m8SQnKwY=;20:7DmBZyIghVPQ0+Q/i7Lw1ST3cZC+BlpIAAUpOjZwixrXWNnqNnwc1yscIoTAOZHvqTkiJk/InSsh8pSM+pBQqJi6JhvK0Gzhu6RNbbuZUy6bqizT5oRz2DsNCjB03ph9SCoKB8i5aqYqjN8ZAxVCPiZHHRmdOIj06Q99FTMbnX6GfHjd0kiMyuuqm3W50a4InR6toL6QtGwAwEP9KohBx7W1O+kkkeTNtZ9D0peS9W2J9cYa+HlYryO/ZxHgaKjgOE4wjR0Zt4Ny67KPE2hf3BqUpZHID6tnIWTapsAvQq70lrQ2OHfEzfopUPDt8TretJiQg/6hG7uSzQ/VCbEp9IrnkXe0Im0uGRb3jaMvS6x79ckf/QF+MfzW+rrnAtVTsmG4Z52xW4azaIy22ktljVMaFqQJFLVuLRidEahvHNnI8lvIomuj9voZbQFUpT4zm/pWf8IXCb6SV3tSq8eL/qX2MviSw2J9Sn5ePJ/JVZ9fILONSCLl9YrkyB1DH0oqlp4au4/q4ZETMOE+Bn6nCAg6v2i8D97ViPecDNfhrfeq4j3w5RScImmXaiXkaAiMo4PRbq0bDPguhpAirThFnnvbqbUBs/NswQu4YQ7a+UI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR0701MB1271;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR0701MB1271; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1271;4:uJe7T8M1+NJaX1FJUGUYhvzkf36eSW/HRZDyRyJw?= =?us-ascii?Q?RRxl4/nBeNdmug6qIfdVE3eadXalg5M+JTri3ay4lT9lOfi2hPpaOE/I6wwm?= =?us-ascii?Q?Szo6HsaHhNUetDp1HWOUWafj3ZzBwGXb+dKnwv384i4Qgb38fiTJIhPGLUHk?= =?us-ascii?Q?W7iHlx3gpQvrEd20l29APeTPla3xGswSE0pIgPGibYjkvNtgLr4H1RI7O9m2?= =?us-ascii?Q?IAJ0JgcmuYGo4/0Iagu9/+BRkjxEBGcNZImWwvSrB64TjMWJrJl1K+tSCXaH?= =?us-ascii?Q?PpPLuAqUt8tIBe241J84LHx/z62qMHfQE+m9SH7eYkd3IjOL9hsQ4HXWiv5Z?= =?us-ascii?Q?OiOjhfBj/aDwXHAGwc9mQtbIwb2wgzW1JvCVqBqJ30hcsZtemW1MeVfJsA8l?= =?us-ascii?Q?hMBQr3X5N+jy02k/UFng2cR5JWo6SxkOtiImKtKLbIxIqyG/TAX921fM+bmm?= =?us-ascii?Q?nf0DJbnyW7JbvIw8W3wph+h6Iar2Vbt0cS2FW2pNUPaL5+BRMMKwwV+k1+tk?= =?us-ascii?Q?JWly7epuFr4sDvNtKuhrdReysESACYIUQxXwhOvpD06C3rksNAhBT6Xw+ggA?= =?us-ascii?Q?SOVKB258Aydv8t6k/rToZ74YtuGKCGgDyN3sUtfAY9Pr6V0ELvof7dmbhE31?= =?us-ascii?Q?i4Y7DKduOHuOAbPe/clKI4PnD1fomWllpOHB818fTSpWiueQuQaZmok0ninC?= =?us-ascii?Q?vZWMdPbr1KhBjmgb0WyIqWc2HG0KxzQty20HrKk5Gw/o3uImto0c3XKD2UxO?= =?us-ascii?Q?hniFMjM6qa1qPHd6CeOsFMtUgm/0ZDDxhFEw0doGILmCGW2LEhozo9SCk/pd?= =?us-ascii?Q?Ni21Vhd+Pa7gv00iH0dFa40mbBiQ7O9crXZUuX1GEl+/GcgycUm31ZjeZS/X?= =?us-ascii?Q?EYAzXM1sxCjcHxXu/qNwA8WMaBTOzM/g+9f/556zWYFV7H53ZWpXPEnXlKKJ?= =?us-ascii?Q?/gp2npbueeA5YHXqQKqh8cwsbI4ui2OyKiZ8Guz4m5YL2+2iqyYJOBNL/o4k?= =?us-ascii?Q?JHoJxNt1sT/dhfjbRODCtZtyCB6jCar2spRnTbjhZHSsDto6tDqJaw+QGISg?= =?us-ascii?Q?MEC3bJsHssh1YW48UKJqIP8a2OG51pKAimcQfIEHR3Ub0ubg2aOfgIxMi3pE?= =?us-ascii?Q?6jUx1lZdv5k=3D?= X-Forefront-PRVS: 03283976A6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(39410400002)(39400400002)(39850400002)(81166006)(8676002)(76176999)(50226002)(42882006)(2950100002)(48376002)(50466002)(6666003)(50986999)(33646002)(47776003)(5660300001)(189998001)(305945005)(53936002)(7416002)(36756003)(76506005)(66066001)(42186005)(54906002)(5003940100001)(25786009)(2906002)(1076002)(6116002)(3846002)(6496005)(72206003)(6486002)(38730400002)(478600001)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1271;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1271;23:xnpxI6nrOQ7MyD9CLEam8SHYqj1pevoJ5qQqVa1?= =?us-ascii?Q?ojkla8d93JK7ftRnKHcNfbRKjUdrUDmI28xL/aRTBi5U/MaZo1QW/daR4I+9?= =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k9T536P+f/3qj4Qo0Kkpyzz4ulSU0IkCfSKppnteuYXrvAIhlf8myg0lkSr2eJxYIISSLmCORlgSDXmMKdl4R8NMz2q+9O3A2fGU0X/SYkprbGKLEfE4;24:+VwbZpxYcukmsy3ulgVVCZUoXlGqsoVpxzqFcZtrXIuSOgVzUImDC8JdeEh+MRyDlS5UKYGJdCHs3OKi0tiLcr6f1kBNZ4ry4FtzzHBvVY4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1271;7:Cxfqw0/oe1Hbk5NiMaERL5ud0KUTk4S+TjdnhcqkKOCRzYNGfLRP7+MhZUSMkjkwsH1WKu6Qrb/dbM5nAoSBAtVRs5/Pr/RWmjNMEXYCZzDPfGZRLCOlbkMrv4dB0eqT+ROj+R0viKJs7Iqd56MHko5DKk3uZMM5ch7QjWfQ3SfjEQKgELZ1CJlrwjNdWrlx8PT7whKv8jJewuHuIaONRWr58Bokd/lBUj6XAPGuc1CbpUZ7/tZkyGCcW2dJYFkzd7HU1dUJI+Zl99J9T08pXF325qgqYtJsV61kNGC2Bzk4nodOiOFz+M7NYolbemi+GEgWpJhQlJ7IMLRqYbxzlQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2017 12:00:38.0727 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1271 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2162 Lines: 52 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 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 061185a5eb51..429dd335def6 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 @@ -675,8 +675,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 -- 2.11.0