Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966351AbdIYVBH (ORCPT ); Mon, 25 Sep 2017 17:01:07 -0400 Received: from mail-bn3nam01on0087.outbound.protection.outlook.com ([104.47.33.87]:57472 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964935AbdIYVBE (ORCPT ); Mon, 25 Sep 2017 17:01:04 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; From: Yury Norov To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Catalin Marinas , Arnd Bergmann Subject: [PATCH 1/3] compat ABI: use non-compat openat and open_by_handle_at variants Date: Tue, 26 Sep 2017 00:00:33 +0300 Message-Id: <20170925210035.31514-2-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170925210035.31514-1-ynorov@caviumnetworks.com> References: <20170925210035.31514-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [176.59.116.181] X-ClientProxiedBy: DB6PR0801CA0052.eurprd08.prod.outlook.com (2603:10a6:4:2b::20) To DM5PR0701MB3832.namprd07.prod.outlook.com (2603:10b6:4:7f::30) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e948ff27-462a-4501-e31a-08d5045887b3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:DM5PR0701MB3832; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0701MB3832;3:tWvPjZf+ECmWwkIokRMUAZKSlTmx4Rz1PH65oCHqI6K0/eZckSiP3wzly6LIbxpZ15nxntiMwheLFJ+yEUW7yIpwPvC5xoZQP9TV1CJd9e1hXWeUjc9g8+rVeVddOb1zRC0Jiz41zO7u6bSZ3m2j+ICNKTz7GS3XEn3H07qsiNthpRhg4l7fS0epEULscg5YOie+AEVIFRORPFrU9ntApMLRrTONG4VcIW1tPdTAqjUkvjuDqJRyuduvlFTTGPo2;25:66tej2FiGQ9MA9omxs5MWUGiMIFRr6RKDE5UFy/JzxHqv0d07OteRWtLSPywD573naciBPgpEvo4M4N4xEldgksEOGGGKZwS/nGiedQbmCCCNOvyuigrV9HwDdw3i9AtNbasd5ukrY8pI7eJCeQoHz5QcYO8gzJe/yD6ZGwnwMq9kxo2pduQ5NLURsdiMhK4DiyQRlxQWq/tMn2oF5nkiRXe51dXB80lEiFcnfy+yHqGfCAWos3Cz/3EcBbslMTsSt4Zd3w9m3JDNYAB/kUg8hfWHneYj/vINv9kpINJ7y2OwV44sfmXZ9xxaWvqUlnx99oosnW5Od7zOLHs5rLaKA==;31:kd5EVop8n7U2XsnmKs3wcU8ovEkECfuzV2ys8OdMF2YCwWigISEUx3exJOSsHB29OZ0zFHWvm1LR8ffEloC4gdRJWhAEHVwAj0IT72iIrFUlXwn03vAS3TC4WQCMGyF7iri+X+YGOemr6gujzvXm+hpiv5agYfZTtkOICmHnWYdF6emvgCKWrTS235BIcoFQTkS9GOA7/lekq59cjTouBKRmkYj7L9Ph1x+mkJ3bhLo= X-MS-TrafficTypeDiagnostic: DM5PR0701MB3832: X-Microsoft-Exchange-Diagnostics: 1;DM5PR0701MB3832;20:fvknt0KK9H9WIrkGIFtoHUbJ0hmSlNpTqBwuMj62RA2on1eXtfgJr3Ek7ziy9WKveCZA9LxXJEcsz7UpA4mBVonDfGq4WDmmQadH0lhRixwbJla2IjPbb2HlcSfxgciUNz0epojXhpOk55MrKMamkfAY40pULYXpDHJK2yzEISy21fZwPcVvSntEbkR9v63xKQRs7u+qpPDJpP214oCJimYORd49GvDI/FFWDb+330LvZBap/8JK5ae2VAtTtsGs0kwaZpzavWC3JcEp3eouA7hjULEZqfyOkzUqezNUT/g+0uOlgR9PIl8vHbhoI/0VpIKWEXRlldbYjo0cX4KVm5/PHhoJvbKcxa0qjr1J28vzRA0/NhgXHOSJgGi7kpubDrIjjB2F+ZMsytwyrkKRKHBc2qNzETZj6mc+vdJ/hw5zXO//wtvGsarMuJDkyVYdDfdL+cPM6hU0FBxvSETwAgwWaP3KNI4Ym+7LPEvVf3epbRZqugsq43ag2lYHvSMrwjBgoSyWAJcuSBXDXiKjkmtULICEWlxDk1ZWLQ3hw9/JayhCT5SGRyLUnAExGvR/y1qSvBzUVFD7KgwcSR91kLc7zW0lKBVval82aiS8OGA=;4:jdeINyNzSnbQSuec9LzjqM5E2amwa9hv2Ls5BHHWDNHd/kL5AK8qPuOR3wSspcsunU87qVD4D0UgBosz/HDzW1euC1FzRFDhZSITkLgGnLoDtmVUpbj2WzBoqkylFSeqIEuW0qotQPDZiBxUvcv1Ku6HXsTcyN6Qau+ctUf9Gcq5Y/XM/KKgBIQVildM2XMSszcAguvKaa8JBlb1eTApHRg44z5ZwOQ87XK2Z0vNsm2jVW8WtrxRvgdUVCvCah94 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR0701MB3832;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR0701MB3832; X-Forefront-PRVS: 04410E544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(346002)(376002)(199003)(189002)(53936002)(5660300001)(110136005)(36756003)(189998001)(33646002)(16526017)(8676002)(16586007)(316002)(97736004)(25786009)(48376002)(105586002)(2906002)(42882006)(76506005)(2950100002)(66066001)(106356001)(81166006)(76176999)(50466002)(1076002)(50986999)(5003940100001)(7736002)(6496005)(6666003)(101416001)(478600001)(50226002)(47776003)(81156014)(72206003)(305945005)(6116002)(8936002)(68736007)(3846002)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR0701MB3832;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR0701MB3832;23:kUYHSmM/qZrSU9xFDk0E9fT1qzRQUsJxrhMmydd?= =?us-ascii?Q?7ErzcjeXgxSgYkV08e+YEowE+9e87cmUJOA5o9B+0cq2KVcJL+jdeuNRD5BX?= =?us-ascii?Q?jGpp2w6w7/L36TRmvL9V9rgMimgztS6l/pDiJMRB7aLoXjXQH2kIUgKOzllU?= =?us-ascii?Q?5dbyYZB0xMs6NtIRsX/tvYqofs9URt8rO/WDosxSnlp2YVlPracsDXIybbk1?= =?us-ascii?Q?Z/xXp1sKKUFJUD4kx2JYQyQd7BajJm5ta3eya8GbT9vWfMCEOXNHmlxYeejC?= =?us-ascii?Q?c49luZh+x4yEBBX+Qcn+r7ylm9f7hxEHEsqh+AjOnGEFH3GPCJ38maJBIaST?= =?us-ascii?Q?8om1wmZ6c8gzHV/ntV0J7O5+A5JQwRfz7m+bYwp2oG9MAlpTNl8vpdd7Bn2q?= =?us-ascii?Q?IyD8gWuq56/wXCZ3BEkZyUtg6QWR2LESIZ+kGdfxI80PK/zj0hFyESZu9pmr?= =?us-ascii?Q?EYbCGHz9uxR7ghq7vIhWRyAloqLo9i7sET1zxvtvBYXPf9BMLGGGkfCMTWPT?= =?us-ascii?Q?mlRzz3ZOtBH7b+cKsCzTqJzvRWI88E2C1z0Y+bHlHmwBxsrlFTkKh9Xn19hP?= =?us-ascii?Q?KpFWADh6/TYcvIDZ/cWmwessHetisHXsGGaAUhfyDeTtHhkTOuUFr7dOxOi5?= =?us-ascii?Q?UzJBut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FAa+/zrjDfV8IuAtrP6mKyhRboxJsFh7xz+Jf623G8UKA==;24:e3ARksm5jci2LK66/o6kTNrDK2TSE8mZrH/yJ/k6MToYnYsx9PNoEIMbBQLpV1WAVZ+pynBBStn9Gg3QCQf28A1jYIF2d2Thmxiq8hXk3Jk=;7:Xy+dGf9FywoF1wCmA2v3rEza3084k08nHVrvjU2WY4SLkKKXcY0uUYKJW6Jto5HceXMRAhCbfcP4KXAhctjdkhLB+lZA6mEWg7wDRMjBysf+1FAqMhbNJVy99OU7KAu7VaZwehREtGFPgqcdy4b8jYyug+b+kF4P6Q1Wfb/XvsHYZrKK3cGb4/dcVtQ7VNyy5Mr5+RgYE3dCW21lffKangxHqi0Ot529p/2sjKCD8VY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2017 21:01:01.5327 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3832 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2186 Lines: 53 The only difference 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 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