Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932871AbcKHLKS (ORCPT ); Tue, 8 Nov 2016 06:10:18 -0500 Received: from mail-sn1nam02on0068.outbound.protection.outlook.com ([104.47.36.68]:35968 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753178AbcKHLKD (ORCPT ); Tue, 8 Nov 2016 06:10:03 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , CC: , , Yury Norov Subject: [Resend PATCH v2 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs Date: Tue, 8 Nov 2016 16:02:58 +0530 Message-ID: <1478601180-20932-1-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [223.196.240.56] X-ClientProxiedBy: AM5PR0101CA0021.eurprd01.prod.exchangelabs.com (10.169.240.31) To DM3PR07MB2249.namprd07.prod.outlook.com (10.164.33.147) X-MS-Office365-Filtering-Correlation-Id: 9cbe3adf-ab76-4e57-70fd-08d407c2c157 X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2249;2:upEGn3btkoP/bmMOZqU+5ZWCWgIEPHuj9sTVOUYyp05umCqask6m3t9U3Q74rtlspPwEImfdkiI/VHxb+9oMRjMjPr7JFc6IltgbAadLVtKDMmwBKjxZodV2goGDa054L0SVKbKNpanQHku+lcy2m8aXQND1hhxCMtEMoOcC0ZUfB9Y5RrZPuUR01XXqsdYyyODaYzus3Cztz7mNFShOdA==;3:eDr4yScfRFodyO6bm6IqGsOmIq6UHtnYmZIazypKK/bBqx/A74Gb2pPXFsP8yphxrQBjpZAwIjNUfIYBebzqnrBlAI041iydbTump4q7C+7yn2mIph/EJ0qASm1xfKeJUF8d/9EhzmKlSfbAiyU38w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;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J6Aiedx+lhcPP4HEV/S1UaVCW9rDMkkIxvOuPAUK0Thdb6ZijG9/t8ZIgBmpKCa7qvf1wvuE30uwNevHVP0CkL3dQdL5CooE5ZFyyciWSBaZgnL6niHU4r/69mcpJa;20:hIu0C8CuXGk5zETAGE1sOnZGLr/lbIjxXLtwuu117CDVvlsxSx15KzlQnp/BTwkuUVo+GqA6zPKhylYMP3gB0TzqeRvyW99iEsaf+cy1QJajv/7fkhcUWJ5CU+0CEXPMtrKAx4eiBd20hHednUps8lTD4YzGeZasXSWVY29lB4uMPsYEcOYGPRmfFDiiCKb1+B5o7CKwB30kKADkLmrMMymvXBujVjhT6Jz8fsarnU9eVhxy2vwca0z1ZePVlfem27Lkd383i8DCmui2kLeL/zEeV/tRmwzJlUZExPtakXeC3UVLD0G12YrzvPojb7Tic3wpcz/ErsWERsPknbj1RToRtAro1ZfCJXWUV+DO/gl3BEm/L8xBppbTWlMJ71pA9FYDQqXctucKuZ1aRGubOjLCs3KG/yQeVA3lvwGGiIRZj0jevW2yTTwJAZxRaUOTH7AXfFrfgFirJ3rB4bIGFNPJSAlR3wQT9z2taoGQ4T0IIuHskj7mj9aNtN0tX3KJzsxP1om78WigPhJb2m0Qy/6ACAjkE8WY9k9RlvT64xVUgo9jJJcspCfL+n/MY7wldkFslNB+S58N77hLKnffp4Io9jiNkBGluPDbLOm/Nt0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:DM3PR07MB2249;BCL:0;PCL:0;RULEID:;SRVR:DM3PR07MB2249; X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2249;4:hRLOfDAgybdYASd2+lKMGTsUisJu+UxtCMI0Gq/rTBFfA1nyQJr+tPJK9mYAxQnh+qoFUZGn6vWtHDGXBvc9w10nVqa/NSCvIKkd43G3K6OckBDzSF1/1EKWiM3uOVTXZ1l6nu+SoAaA+5tUtf4uLw3ccE+jsu9SHG0n7F5zjsFg1PScugMag7xvISDh3gcAneF6noCNI/jTyPW7LEx/gtxOYj3pm6TOBW1QzbATmgJNVPKSy7nBMvmXGHhuoDRzXZd2ZAe3wPpXVJCMZJJt/XtodCRQ4PP/tnWwDNXKb9Awd3kD5vf/gpF8d7bXG14AWOgFd96vg3Z5kZilWttX2S+BnN9w+Vc1ZTN2p8ZxEmj5lctIz/LsPEKo8gSitxiVYmgBNGNacT9Vs51NSYV4Nw== X-Forefront-PRVS: 01208B1E18 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(3846002)(92566002)(33646002)(77096005)(2201001)(50226002)(101416001)(47776003)(7846002)(6666003)(7736002)(81156014)(305945005)(81166006)(229853001)(42186005)(106356001)(5003940100001)(105586002)(97736004)(68736007)(66066001)(8676002)(36756003)(4001430100002)(586003)(107886002)(48376002)(6116002)(50986999)(50466002)(5660300001)(2906002)(5001770100001)(76506005)(4326007)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM3PR07MB2249;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3PR07MB2249;23:N3RknwSacWUNxk/QF1xBEVDl7D3fPVeKjGRsfVpzM?= =?us-ascii?Q?lyJnoD+hbbdTQK5E/x9Ei4dDmn5FVrkg8g2P00XlcGJ7fu+u8j3yVIB4tYWD?= =?us-ascii?Q?MAvn3XyVCdLeH0RZ4GPjjkoA4ViHkXFujnq3ttJ9KN5ZBMGBDUHohj5MF4L4?= =?us-ascii?Q?1y7IbBoCaCdVvq92PXpc+4y3V3W/niyR7BJOmmZ/RevdHjWOX9V49d5z0iTa?= =?us-ascii?Q?7eFCcAFe8V01tgFJq+3UI++0pQQQOjz5dOBJLKlLWeBSCLOQSRqbQwurmwWp?= =?us-ascii?Q?c5f7y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G/0i77eef+5Pds2uba93XcY41mvFMB3LEUVdRMdP6b1oENkY1tFSvF8H7qN5zZT8tpcOqCaOTAN/FwAcM9UkfXTQgV8wBsCZaxEH+nQVioxl0opKwkz3AwDYt8xGRBKrQK2IMqqqImqDlx7tAiqBaqaPjC5VMXFF/y0CruxDrVrTQNNsw3mAW+X1qPfBjMmjEp/Hx03n/lU3GWpcLqFrtHtM7yQjIy+tTyPL3eMvfeUDLe0gaPNGfjWDBt3QnKibjxyTXEYIxKpYHbz4QZqu8YX75ygjn4x1doo711;5:E/azWVXxQSpYCZGH/H9xXKMNpeUznarTGSfAUyV/oFdCAuKj4v2T+U+hpuiJ2U2NLfEceYHb1VlUNLC4L6E/y8uoxJY6Nw2ewgLAAy4zBBNOw4vY+LjTTdCL+aEEyJVZzovKFOHeFvIVIKdNeiEMYQ==;24:APLDJutmQNecWStQH2tdEZR8mJOaQVxNNaNLkrAOVGr5ObP9GV3dPfNhdRw0oi6AZncWjTlnUCi+J/r8Mr27Ib0ts6wLrlGdyzcQ17kV4L8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2249;7:QIz/GFHlKAcxudlP3DxGgQkR2Bk21KeEQEn0zXqosV88pJ8olnI44+GHHX9qG3L/4uFU6ejN76MoPa6WfhR4uttZhxT5FYYaSaIyDJ9gQPlIZ1cQAWARiikSJOqsKwezDVR5LrsPDtufYzxI/daVgV2NAzbCkbiqIa4zIeiwFkei5cJaeU/3D4lmu0jKIiG19RtW/5XCwD3zIlQgxryy05/wOwZuMkYxX/BajRIBcJ3of+v8wrykS7nLMJpB9AFtLV6PKb00XJKAQVafEbvpKt7Zo2+cGfjOxHIdLGSav+la2eocKW59cklNtzfQM17jdy+B1xE25Kqe5e+rJNZibbKHh/p57O1BdTAzb1cOF3M= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2016 10:33:48.9013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2249 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2291 Lines: 56 32-bit off_t is supported only for old 32-bit and compat ABIs. New ABIs are 64-bit length only. This patchset makes 64-bit length the default for off_t, and reverts it for old architectures where needed. It does not change the behaviour of existing code. First patch makes all compat users of generic unistd.h to use non-compat versions of openat and open_by_handle_at. Tile that requires old behaviour is turned around. Second patch introduces ARCH_32BIT_OFF_T config option, disabled by default, but enables it explicitly for existing 32-bit architectures. Original submission: http://lists-archives.com/linux-kernel/28471158-abi-handle-32-bit-off_t-for-32-bit-and-compat-abis.html This is the same series that I sent in Dec 29. In arm64 ilp32 this patches are melded, but Chris asked to split it. So I decided to resend old series. Here is no changes, it's only rebased on 4.9-rc4. Yury Norov (2): compat ABI: use non-compat openat and open_by_handle_at variants 32-bit ABI: introduce ARCH_32BIT_OFF_T config option arch/Kconfig | 4 ++++ arch/arc/Kconfig | 1 + arch/arm/Kconfig | 1 + arch/blackfin/Kconfig | 1 + arch/cris/Kconfig | 1 + arch/frv/Kconfig | 1 + arch/h8300/Kconfig | 1 + arch/hexagon/Kconfig | 1 + arch/m32r/Kconfig | 1 + arch/m68k/Kconfig | 1 + arch/metag/Kconfig | 1 + arch/microblaze/Kconfig | 1 + arch/mips/Kconfig | 1 + arch/mn10300/Kconfig | 1 + arch/nios2/Kconfig | 1 + arch/openrisc/Kconfig | 1 + arch/parisc/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/score/Kconfig | 1 + arch/sh/Kconfig | 1 + arch/sparc/Kconfig | 1 + arch/tile/Kconfig | 1 + arch/tile/kernel/compat.c | 3 +++ arch/unicore32/Kconfig | 1 + arch/x86/Kconfig | 1 + arch/x86/um/Kconfig | 1 + arch/xtensa/Kconfig | 1 + include/linux/fcntl.h | 2 +- include/uapi/asm-generic/unistd.h | 5 ++--- 29 files changed, 35 insertions(+), 4 deletions(-) -- 2.7.4