Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp324529imu; Wed, 2 Jan 2019 07:23:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN7LCYNooJhec7KUnglohJNw6/RHy96PKwnAIaYn4y72IWiKtFQMDM1+Qy1TWOzm26LnxKi1 X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr43715655plj.116.1546442635621; Wed, 02 Jan 2019 07:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546442635; cv=none; d=google.com; s=arc-20160816; b=J2V0Ra1GKiiPhNpWF6E/2Po1d9KoB94Ahdm4Gm/FpMWjif+3pYLK/4igV7Cq5/1gub Q3KPl4K2OHxvH+s8pEnVm7oKFcvifdg+Co/Cd3+O1mgNjIstbhTr3w97sCjJQRwAF4Ae BD1XdCCYoO52r5ftLV4GeiXT06kKFUenJHmpkaM+hCdKmwMfBT/iXfpehqA5kFf2upsq p1nCPB1zZnwVCPdP90zThQ0tLraVQs2VIacCSmxgG2Mi9D9o3ySGrnwHUTq9YWhnG3fB u8SFjpWGH2xuLIuThiTKVC6aniTi/KuQ7WFZNBf+s5UzYPxMKWbnkoReg71/IQVtAzES IYvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=0suPthCD8NW6OMTActNHayzx50LoSrAU2VHPhzc8svc=; b=Qw9AlpNAfj8WQgn4lQDKZkpAGIiOPqRUOjV0GNBuYHWB0aJjJC9qtlJ82h55hVP/6K yPDj6/awHYWmWuO+tlyJ4HtEjW6ucOEUf265DTmqguLHu1bj7Ky2OVX1B4jcxHBYirQK vNwQXWz/PkRV5xtRQnS+MOY1g/zvu4ujSkixgeH1zfHEfMjrz3AijD8AAPrvlTAVfA5h QjIyKsLJkSIR+7MHhORNMi0dL2wCa/H1pSi9ld4IRvVhSUpqP/hwj+ASezLvojYb9XYK 7lhMF367nUEj6f0MHrlvqcIus4ytfFCiCJvSB3FR8O9qPlwTCO4HMNwmRRgWvjn5ZNnD LMqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="anhQs/sD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si4489597plq.41.2019.01.02.07.23.40; Wed, 02 Jan 2019 07:23:55 -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; dkim=pass header.i=@linaro.org header.s=google header.b="anhQs/sD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729907AbfABNQp (ORCPT + 99 others); Wed, 2 Jan 2019 08:16:45 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:46775 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729324AbfABNQo (ORCPT ); Wed, 2 Jan 2019 08:16:44 -0500 Received: by mail-qk1-f196.google.com with SMTP id q1so17772350qkf.13 for ; Wed, 02 Jan 2019 05:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0suPthCD8NW6OMTActNHayzx50LoSrAU2VHPhzc8svc=; b=anhQs/sD4o9t+Ya1LUCMbt0LZMmH+aKTam/2dGqpucwZ5iokz1W/2DdHt2keOPNAqr BUlKwHLVq5mURCUwHIDKiFYk0dswxlqkp1RmNfIzgGXXIzIDats6LJScB2LzmvJ8Cys3 AoMkd5PMsPI7OyM71aALlU0YJgeKHyQ30WDbs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=0suPthCD8NW6OMTActNHayzx50LoSrAU2VHPhzc8svc=; b=P280/VDkZn+gBIF6tOgFlgIWeM3MNf1NvfZgZiZPO37lvbPB788aK97lQkM5ax71F9 UL0LwpHDXiBi/gdIkzVzYz1A5oC4o6QVVFBSR3IhPYXenUe4/dRmkJfbskjLm3f0iYBh pnbdSbNOFMU/Lzt1Ugi3qaHsNEKZqxx0CR2NGICBZ6KnmCZfc8uzbnWmQmq1Zq95T0sa TKVuDllxP4hPiVVer8oVlrq/EqbbkABrfsVMnT+kJYGyLJqdUa565FLNVQAVXu2jdFvo hnsjlhzPXwp6x3bE6NEPgva6ptcFyPv/Govokcy+YwKaksyp/TMkeGsV4qjcLWA6iTa1 UkAg== X-Gm-Message-State: AJcUukf/e1+Kgend5Coq53Yk7LcoYObWoY+ftJyEgKELQO67LjWNXgKp gEIsVxkiCGxl/3N8BN4tkBqwqQ== X-Received: by 2002:a37:90c3:: with SMTP id s186mr40150143qkd.339.1546435003361; Wed, 02 Jan 2019 05:16:43 -0800 (PST) Received: from [192.168.1.132] ([189.61.226.82]) by smtp.googlemail.com with ESMTPSA id o2sm21597220qtp.48.2019.01.02.05.16.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 05:16:42 -0800 (PST) Subject: Re: d_off field in struct dirent and 32-on-64 emulation To: Joseph Myers Cc: Florian Weimer , linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, libc-alpha@sourceware.org, qemu-devel@nongnu.org, ericvh@gmail.com, rminnich@sandia.gov, lucho@ionkov.net, hpa@zytor.com, arnd@arndb.de References: <87bm56vqg4.fsf@mid.deneb.enyo.de> <957967d7-5717-8ada-fb30-dfdf19898b6b@linaro.org> <87pntmu9iw.fsf@mid.deneb.enyo.de> From: Adhemerval Zanella Openpgp: preference=signencrypt Autocrypt: addr=adhemerval.zanella@linaro.org; prefer-encrypt=mutual; keydata= mQINBFcVGkoBEADiQU2x/cBBmAVf5C2d1xgz6zCnlCefbqaflUBw4hB/bEME40QsrVzWZ5Nq 8kxkEczZzAOKkkvv4pRVLlLn/zDtFXhlcvQRJ3yFMGqzBjofucOrmdYkOGo0uCaoJKPT186L NWp53SACXguFJpnw4ODI64ziInzXQs/rUJqrFoVIlrPDmNv/LUv1OVPKz20ETjgfpg8MNwG6 iMizMefCl+RbtXbIEZ3TE/IaDT/jcOirjv96lBKrc/pAL0h/O71Kwbbp43fimW80GhjiaN2y WGByepnkAVP7FyNarhdDpJhoDmUk9yfwNuIuESaCQtfd3vgKKuo6grcKZ8bHy7IXX1XJj2X/ BgRVhVgMHAnDPFIkXtP+SiarkUaLjGzCz7XkUn4XAGDskBNfbizFqYUQCaL2FdbW3DeZqNIa nSzKAZK7Dm9+0VVSRZXP89w71Y7JUV56xL/PlOE+YKKFdEw+gQjQi0e+DZILAtFjJLoCrkEX w4LluMhYX/X8XP6/C3xW0yOZhvHYyn72sV4yJ1uyc/qz3OY32CRy+bwPzAMAkhdwcORA3JPb kPTlimhQqVgvca8m+MQ/JFZ6D+K7QPyvEv7bQ7M+IzFmTkOCwCJ3xqOD6GjX3aphk8Sr0dq3 4Awlf5xFDAG8dn8Uuutb7naGBd/fEv6t8dfkNyzj6yvc4jpVxwARAQABtElBZGhlbWVydmFs IFphbmVsbGEgT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iQAncSilYOcxNU EMVCXPAQTteqkvA+gNqSaK1NM9tY0eQ4iJpo+aoX8HAcn4sZzt2pfUB9vQMTBJ2d4+m/qO6+ cFTAceXmIoFsN8+gFN3i8Is3u12u8xGudcBPvpoy4OoG Message-ID: Date: Wed, 2 Jan 2019 11:16:37 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/12/2018 15:03, Joseph Myers wrote: > On Fri, 28 Dec 2018, Adhemerval Zanella wrote: > >>>> Currently we only have nios2 and csky (unfortunately). But since generic >>>> definition for off_t and off64_t still assumes non-LFS support, all new >>>> 32-bits ports potentially might carry the issue. >>> >>> For csky, we could still change the type of the non-standard d_off >>> field to long long int. This way, only telldir would have to fail >>> when truncation is necessary, as mentioned below: >> >> I think it makes no sense to continue making non-LFS as default for >> newer 32 bits ports, the support will be emulated with LFS syscalls. > > Any new 32-bit port that uses 64-bit time_t will also use 64-bit offsets > (because we don't have any glibc configurations that support the > combination of 64-bit time with 32-bit offsets, and don't want to add > them). That should apply for RISC-V 32-bit at least. > > I've filed for > missing overflow checks in telldir when the default off_t is wider than > long int (currently just applies to x32; not sure why we don't see glibc > test failures on x32 resulting from the quiet truncation, as the issue is > certainly there in the source code). > What about csky? Should we still make it use 32-bit offsets as default configuration even when kernel does not support it natively?