Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1697200imm; Wed, 16 May 2018 01:30:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp5Mu0+iOFCdvVMGhPh6ARIgMY5hENAzpRjBtAgf1KG8NXUhaT69W8C1viVJISEIjTjAFjq X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr17714950plb.299.1526459446716; Wed, 16 May 2018 01:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526459446; cv=none; d=google.com; s=arc-20160816; b=GrywlW2i010MUvy9gd0RCH6IO4AH/AgY/0wBqMCEoKLd62+KF9AFTZUJE4waKV2dt1 lJLHjgCYXwhcYRyTJUfTKqXYhxHdTsxD41oPlGtcH0Gh5xxlA3AtOiANkbVITQq3GQSa NOgZN9DvZB8C93E9EcLkQhTvEmxP2efae5Bxpe6YSYMt/2LgX+drRgNGGpW822rISNSa nUasZyg8xtbYCIvjR4ln7ffMl91O05KfANtXsB+Ok+z4oe+orUvXEABS/L5SKYDSAXdi XXi7Tz+KYlQM0B+rOCpo8YuqgGDjYtyoynBPz/rYYEe6+oDN/feigVrKpREPKkONv134 q3OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=nZ26KlTEVnRaHlwrtiIoLZd1sA+N7KePRgLmgyuQrj4=; b=g1yHRvk7YhNfADhiYdmLgDU2Zp0BUfAX4dhSXXrdzqfs5Kuo4anIq7eOtvSZ/UV5jI rA0OnX4aZng5ZuaWKpsOBYPaFQmNxLoWAo47qFb6qW1iwDEKzX5+1GLR3ixGRF9X0HnT cu3XqP26ZySGk3F8leSG7Fe4lUAWwdBbGXC/2EkxkTl7c1z/sf1oVPRGDf3coP9q8YJz rQNBkTy/5lToTlKEZK7vtMYkdZ5mNPkBu98oqRv42txe/DD8EzUoYHn8yNW2pHptPFfj LVmLKp+GNGCcWHEfMxsL5vANAyij/agxBM1/7DDRUZj4Jjj6uiEa/FWdmQpk2+7pGpgN CzWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=hvz/x5kG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186-v6si2101189pfg.141.2018.05.16.01.30.32; Wed, 16 May 2018 01:30:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=hvz/x5kG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821AbeEPIUO (ORCPT + 99 others); Wed, 16 May 2018 04:20:14 -0400 Received: from mail-sn1nam02on0064.outbound.protection.outlook.com ([104.47.36.64]:26144 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752336AbeEPIUE (ORCPT ); Wed, 16 May 2018 04:20:04 -0400 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 Cc: Yury Norov , Adam Borowski , Alexander Graf , Alexey Klimov , Andreas Schwab , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James Hogan , James Morse , Joseph Myers , Lin Yongting , Manuel Montezelo , Mark Brown , Martin Schwidefsky , Maxim Kuvyrkov , Nathan_Lynch , Philipp Tomsich , Prasun Kapoor , Ramana Radhakrishnan , Steve Ellcey , Szabolcs Nagy 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 Content-Type: text/plain 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/oTljc2os4YsM31oCy25SdVgjHiPQtlIxQ/0LA+9uepZJfgAGzDnSzFKdocWNGlJUykAyTNIMGejrOIOAN+G6Bx1vNldtE2BAJNJ+OJ7nbf+o263hxNEqOKnKO9G7Hupk2OxhDCxBrMEdw/pANkymo4PbGqlHAU9zKtBmOL/WUnIQHf9scOrmE/xXYLOPO4JCgHC8JYNIHnq4qL11NPbsO0nxcAbtub3oOZk5rirqkwS95A==;31:etVZHv3Wc7RukIx6G4V/29JUk8SjH1JcAQTU04y04c1xDrKbdl8jkOGtYTSpgwzKJx7Nrs8NmLr7B6qmpm3o8aYL6EKhIyNfipZsYTAi4389uMXoXts/xr6AbIw10zaabnDGdFb61T+LwD987GkXv0boJIWQH5urq+KQRpIaYrGp347LuolCwZFGRVVmaztF2IkHe/XdVTVGCGf+cfP5HSGMSNf1o23e2Ar32j7og6E= X-MS-TrafficTypeDiagnostic: BYAPR07MB4373: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4373;20:Q9I7QLv4jk2LojcHkvC4DcSoTdfzZdabnOgy7ilrg7Bu1byH7LzrdFwe3Wr+vLVvPZAjsgHacPHyU07FtxjLFGUPa0uFO2sbQSgKLpXNQRGB1y73TFzI75c9jNKm6Wm5ggsbS0eSHfCS2a5KHDEft5Q86AUqes43yvHh97RjZLytQOhb3XxsgCBZo4Z6uxDOQoOeUR//PqKpA6XEY6xLfvQHxfXxpYPrMiHDlP4VTsBnP5tVetQFKaPYO0DQqFokqOVK6GDFJKzIy707kP8pKVCjx9kSJxx7rPxQHHmW4ZCGvz0MMIWjjqqzRQ46i+Cx0SVHS4R0R23dHsSJD2e+/h0dgbID63J+Yr5KwdOaY8qRpyagPKXa0/kO1GstP2eB4VE2K9n2Ywg9szEf6gJkWn9crrQ3BnBhsPN2uqG3xbXC3X/0HzB4RaXGuc6rh3I8r/ZqwJeOvw52FWdDSxzGnN3QWVtokSwlwfwvQjEew4AuwC9M8QZfnf+EOXmgu99bo8ACRGgRzCpv3W835hhshGOqUoRWR6H2BCcY2pqpcx+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?HGEN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=;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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.17.0