Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3322642imj; Tue, 19 Feb 2019 01:11:40 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib/6eNcQrtufS/J48lZdruYUF11Lf+WRyleNYByN5v30wlB4E8N+pXvOq1mgcAhXOaEUun0 X-Received: by 2002:a17:902:848f:: with SMTP id c15mr29145592plo.119.1550567500852; Tue, 19 Feb 2019 01:11:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550567500; cv=none; d=google.com; s=arc-20160816; b=UgRNKa0F9pQTroX6bpqjFEoN3p5IbknVcLD1InHqMf2QV8Wd/EL+kphqGbtQvxvV15 QRCco2Mw3TUWvGaRHg0ltlH774dwfMj01EswyGRBascDeZf3qx6uKGShugcVgZYiNUED dNVDrjheWnpqhcErTqEUlNGcJ/J8OfuIiqujyteL+WmLMbj9OYUnJnGd2HtxovTUojyO Am2OEqNX/6+qI34Du5SrcJVG+VzOWmp715IYF9Aw53SqLQ9G8PvDSsFMGRL3RIFQRYdR jqe2mvAcGhJeKso+k1aU4fQCOdEHI9MAe/Amv6NhTmLXIUCoNTi1qUnBA7pLVr5dlN6I Pigw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=ZgZfbfGDAIrLHm8OGM0hyr2IUJKMkKhN5SqMTkRLPEM=; b=R+lb8SJkbsaBTUQbkuaXI/u39tjKBOOfXugHISXbiM8IAchJn2TqSTZbBeRe//cJLT y31NJTlgn7aobpnt9g8q8/J6Xv31nUU/h6wpPWMTvxlmcIp7hRCp4BdVNyO3Nrue4024 88aUlzAW5eg0RtGNqYDTnAWXbZV5RpLulLA60k5kkLX1qfmFFZE7tY/5zN1cdCIj85Jq w3hHgQsdRCGqDOERiDE1KgcHu0+C/M7TYc5m4InIOTxl+k0bDHoSDwO8cImQv2qAu3fp TPrgnrkyY+Qu1HKILBHzzwc3oEyvd8QubBMWewQPEif16NjmkBQVMc4ktFZVsVvcwYwq w/FA== ARC-Authentication-Results: i=1; mx.google.com; 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 p18si14811611pgk.308.2019.02.19.01.11.25; Tue, 19 Feb 2019 01:11:40 -0800 (PST) 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; 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 S1727903AbfBSJKf (ORCPT + 99 others); Tue, 19 Feb 2019 04:10:35 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39757 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727881AbfBSJKd (ORCPT ); Tue, 19 Feb 2019 04:10:33 -0500 Received: by mail-qt1-f194.google.com with SMTP id o6so22302201qtk.6; Tue, 19 Feb 2019 01:10:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZgZfbfGDAIrLHm8OGM0hyr2IUJKMkKhN5SqMTkRLPEM=; b=jTM5rDy+3XD3Crgti4ne/1LV6bTtbI3g/bTNlcisPf8fU2aWjaPuBAoUxUT3Je7EAk bVyAPpkZ8KLulunX2SaPdF8qBnWUh/EcavQ6vdUIQAMvLk39N9OUfO3Xk160yaxLHofm xcefHmQsVoD9L5uqCLAEGU7AYoAhUSN6/F1g7NFtNPVvDM0JTn9S0VS7m0glcAqjVV1t nF9BJizvV+3Zx+JWzSFN4LfJdooyCCxX3/g07PYCPGPtFz/GatdtyZa7Y0ch+PDt58ss 1tg8viDOK2jiSiYaFp2+wTPFStFC+4YkaaDbLEblw3lr2foR7krnYCzqX93D4+bhyva6 hNtg== X-Gm-Message-State: AHQUAuaUoACDyq/y1lFiXo6+B38wLLirRdH5oZoO833XcxJti0qivMDF x/wHzPo4ix48rbKW7R8MP7G07DyQYTz52em2h2w= X-Received: by 2002:a0c:d791:: with SMTP id z17mr20279762qvi.149.1550567432050; Tue, 19 Feb 2019 01:10:32 -0800 (PST) MIME-Version: 1.0 References: <20190218210712.3503891-1-arnd@arndb.de> <20190218210712.3503891-3-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Tue, 19 Feb 2019 10:10:15 +0100 Message-ID: Subject: Re: [PATCH 2/8] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option To: Geert Uytterhoeven Cc: Yury Norov , y2038 Mailman List , Thomas Gleixner , Linux-Arch , Linux API , Linux Kernel Mailing List , Linux ARM , "open list:QUALCOMM HEXAGON..." , "moderated list:H8/300 ARCHITECTURE" , Stafford Horne , Vineet Gupta , Palmer Dabbelt , Guo Ren , Greentime Hu , linux-riscv@lists.infradead.org, Guan Xuetao , Yury Norov , Yury Norov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 9:56 AM Geert Uytterhoeven wrote: > > Hi Arnd, Yuri, > > On Tue, Feb 19, 2019 at 3:35 AM Arnd Bergmann wrote: > > From: Yury Norov > > > > All new 32-bit architectures should have 64-bit userspace off_t type, but > > existing architectures has 32-bit ones. > > > > To enforce the rule, new config option is added to arch/Kconfig that defaults > > ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing > > 32-bit architectures enable it explicitly. > > > > New option affects force_o_largefile() behaviour. Namely, if userspace > > off_t is 64-bits long, we have no reason to reject user to open big files. > > > > Note that even if architectures has only 64-bit off_t in the kernel > > (arc, c6x, h8300, hexagon, nios2, openrisc, and unicore32), > > a libc may use 32-bit off_t, and therefore want to limit the file size > > to 4GB unless specified differently in the open flags. > > > > Signed-off-by: Yury Norov > > Acked-by: Arnd Bergmann > > Signed-off-by: Yury Norov > > Signed-off-by: Arnd Bergmann > > > arch/m68k/Kconfig | 1 + > > For m68k: > Acked-by: Geert Uytterhoeven Thanks! > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -276,6 +276,21 @@ config ARCH_THREAD_STACK_ALLOCATOR > > config ARCH_WANTS_DYNAMIC_TASK_STRUCT > > bool > > > > +config ARCH_32BIT_OFF_T > > + bool > > + depends on !64BIT > > + help > > + All new 32-bit architectures should have 64-bit off_t type on > > + userspace side which corresponds to the loff_t kernel type. This > > + is the requirement for modern ABIs. Some existing architectures > > + already have 32-bit off_t. This option is enabled for all such > > s/already/still/ > > > + architectures explicitly. Namely: arc, arm, blackfin, cris, frv, > > + h8300, hexagon, m32r, m68k, metag, microblaze, mips32, mn10300, > > + nios2, openrisc, parisc32, powerpc32, score, sh, sparc, tile32, > > + unicore32, x86_32 and xtensa. This is the complete list. Any > > Do we really need this list here? It's intended to shrink only. > It includes removed architectures (blackfin, cris, frv, m32r, metag, > mn10300, score, tile32), but lacks several new ones affected by this > patch (c6x, csky, nds32, riscv). Right, I (finally) took Yury's patch that was already several years old without checking this text (I did make sure all architectures are changed correctly). I'll just remove the list here. Arnd