Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8166463imu; Fri, 28 Dec 2018 11:55:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN4pwmmVsvmbmlPUOD7EZ9CFfi4TeE2PvgjT/RL9036lT4Lcp6NhtqAPStc8vneYfYqTSi5C X-Received: by 2002:a17:902:2b84:: with SMTP id l4mr28911836plb.191.1546026930375; Fri, 28 Dec 2018 11:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546026930; cv=none; d=google.com; s=arc-20160816; b=OACEprFulKPyd2Tw5u7zrEjCtJ0Uha1nPsyZrxDiJUPT7OOmZYIDGv3rUmgnUYQZ5y 7l6wapYCAm2K1hqZzwtwIW6QFchwQAt6ZIWKFGgoRRdswxG9jo5IRfYgnCYnwVwhc5ZY KH3adzEbK720H9PuB6Ckl82m5rPm0rdUHuWRI5vyoWZw5FZAt9pTw/dGLtI2MW7nKPQe 2TtZOpnwpPovkoOP2KxL4W9HAQ925qAkn1FLQHj8K4LZLUEFJ4ZjdB0RjfVf3gRQwr0T 1QSKyUIyAKhWlKAqZVKzt6npWS+V4W4D7uF4Z4Nb9viiL9o7FaTl4H9n/q/KBcf2i8B+ WWXA== 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=GCMcwqMNjsNqwXZ4HIEQ4brxdvGs2TV+Et980hL08nY=; b=RFzj5/kvv0kF3/RrHcelt2YJWlw/dWfOJEAYcshmscKo2jdODcCaKbvwKOEb5o5Khz yL9HszCbjy8yvZh3UNXFQTY+zcm7rQn1DH1JARRr8NVpz6UeOxIfYXP1pU0P2cYT4h/z L2rXNxDi4YczvXpn+Ba5bDSqND6ehS/P4O1jYE+zZgTDOFVbQN9enRbgRc+A2CyznGH9 hFYaTgV8ZnMvycLyZiIXbxVHdQhV5wq/AZUNefsqaT8OPufsXZ6Ugy9TnVIpm++r9TYk NYZOJ9MSxAfXliIfQSUsgcU8/mVGufqwcozw/chWrrUhPRPox5MDicXIEX46vDf4nQoQ 5DUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HXZD+7Lm; 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 z6si35509577pgl.109.2018.12.28.11.55.14; Fri, 28 Dec 2018 11:55:30 -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=HXZD+7Lm; 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 S1732278AbeL1Lxa (ORCPT + 99 others); Fri, 28 Dec 2018 06:53:30 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38442 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732265AbeL1Lx1 (ORCPT ); Fri, 28 Dec 2018 06:53:27 -0500 Received: by mail-qt1-f196.google.com with SMTP id p17so23111841qtl.5 for ; Fri, 28 Dec 2018 03:53:26 -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=GCMcwqMNjsNqwXZ4HIEQ4brxdvGs2TV+Et980hL08nY=; b=HXZD+7LmOHpeyVrQwhecJfI1fFYDeHruKqcRAUgnSkHs1fXMTOJ/dxiRM/5hI5yHeQ 3b//eukzoltFhLYdF0L+Cv42zNLvPoe/cVmjjxTstKFjgruPGoRFW3o8rX8JQSAgoXe/ RepHhuiaHstob0tiK1v886tmBKvahGiXw7A4M= 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=GCMcwqMNjsNqwXZ4HIEQ4brxdvGs2TV+Et980hL08nY=; b=E1SDGWfd1QuRwk2fi0Q2Ml15C3YWP6tEJVKWzDEkl2aPZTYI3RI3/1kyCB4fPbhiKL /kwpppOrumdvgqBgPGWcXt5KdpnNRk8WeJixulkl9gs9gbHJtYP2Cxh29w/6cEoPIbqh T6CKY/9dibFd2m12bZYNziLLlbDo6pQadRkbDMrFPLs8+AB8ni7ENFyodrZ6+NXkLSwl hOPeGCPX4tdJqx6X1kPuyNe69EUzdxQ/OU9zywIS+xGi61zjnD5Ss1uavQrFxmBqr0gW G0A0Um7HK0m9+PUgRwxdmhnx0lL/VYZZkX9k4kD7P/V+MSwSq+CZ+Uh0XGUZPAHm120R eNAg== X-Gm-Message-State: AJcUukcRwzShO+2bJ0h5RBoZ5FHynUP8mU5kL7R5t9wTjowUBMk0Dm4z vuLz7jCcUn/MhS0Y8d1djE+LVQ== X-Received: by 2002:a0c:d0d7:: with SMTP id b23mr25640851qvh.67.1545998006432; Fri, 28 Dec 2018 03:53:26 -0800 (PST) Received: from [192.168.1.132] ([189.61.226.82]) by smtp.googlemail.com with ESMTPSA id c12sm21976686qka.42.2018.12.28.03.53.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 03:53:25 -0800 (PST) Subject: Re: d_off field in struct dirent and 32-on-64 emulation To: Florian Weimer Cc: 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/fEv6t8dfkNyzj6yvc4j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X8qZwqibJIzu7kUJQdQDljbRPDFd/xmGUFCQiQAncSilYOcxNU EMVCXPAQTteqkvA+gNqSaK1NM9tY0eQ4iJpo+aoX8HAcn4sZzt2pfUB9vQMTBJ2d4+m/qO6+ cFTAceXmIoFsN8+gFN3i8Is3u12u8xGudcBPvpoy4OoG Message-ID: Date: Fri, 28 Dec 2018 09:53:21 -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: <87pntmu9iw.fsf@mid.deneb.enyo.de> 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 27/12/2018 16:09, Florian Weimer wrote: > * Adhemerval Zanella: > >> Also for glibc standpoint, although reverting it back to use getdents >> syscall for non-LFS mode might fix this issue for architectures that >> provides non-LFS getdents syscall it won't be a fix for architectures >> that still provides off_t different than off64_t *and* only provides >> getdents64 syscall. >> >> 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.