Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3470444ybt; Tue, 23 Jun 2020 03:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC5hw5L41Xj0/QVL+rruD9IWI+utdmnUY4Rf0pAXf4JxMacYvOjMs93f8XB1RDo4XBJhGF X-Received: by 2002:a17:906:d204:: with SMTP id w4mr19707419ejz.117.1592907002438; Tue, 23 Jun 2020 03:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592907002; cv=none; d=google.com; s=arc-20160816; b=qJQP/b2MKkgHvhry13B29DnIucoznVoDxX671vTV5HKWuE6NW/hUJzl3BfidTl/ssr F26Zujnsc29+LMe8EygtCSESbO9dAvNtgn8fdD2lkODNJl03N2h2qBhibhAwPNoeOzGj /AHWfzhhD/aaxDlv30f3z1ZOU35PkK+4Ho/iEA2gODwgfCIvU9GPg9CBw/gwep/acOEM 0XjTIjJoBHt/cRZYo6QM3yeG0S0USpn68TSPpSXOMrs4uBavWKEGE414r6gq/je4ieFg anKkkOKL60uaAN7qGWvVRYKiB4UTSZXbw1ovKtCmU2T9Hw5VKS7fFtERW7j23JuFYPjg C5sQ== 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:dkim-signature; bh=M3hW7WRp42UpwG72NKBm3smYKhFioVF4VBZeKMtkEJc=; b=Ag47DohtS2PTQdBkUkGfb8mnPqpEiU8C2HGDJYXdtXHjEyZk06c0VNx7AgaNXqwb14 XbQ7V+P1RWqHpITp24wSapWY8crA0Q/6tHj1Iliia/o/WYlj3IO+NL0uw6V6aBXiT5w2 hvmz8trYLSGhHryNKMwSXcqcTo08edMOO7/M1hiEbU6pSJNqfDjv5wN1rKJerjbJb4zl y730UQhl52t4MHt/1lUGJ5GPtb+c0ySykWv43HiwLpPJPmdgaI/Gs/E85JDaBLJ78uoW 5+Vz9TEKYQeV028mmt2//A3c6Av4zQQn+oh5CUbMvpSVEuDPlnOO26E69JW5EQv8NWFW 6tyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LrzaNYo+; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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. [23.128.96.18]) by mx.google.com with ESMTP id mc27si337035ejb.272.2020.06.23.03.09.20; Tue, 23 Jun 2020 03:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LrzaNYo+; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S1732184AbgFWKIs (ORCPT + 99 others); Tue, 23 Jun 2020 06:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728265AbgFWKIs (ORCPT ); Tue, 23 Jun 2020 06:08:48 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C03C061573 for ; Tue, 23 Jun 2020 03:08:48 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id t25so18348166oij.7 for ; Tue, 23 Jun 2020 03:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M3hW7WRp42UpwG72NKBm3smYKhFioVF4VBZeKMtkEJc=; b=LrzaNYo+jZEMYGt3waUChB440CSSUC6u4cZavtcKxx/K6dN6SwbrIG9FQITGb7LZNm ZWEnKN54ER3iffAr5QHqeF9Fa1i3EL2CfDaiL7Y1LTe9pjwiS3QN14PmKFwuSsx1vzua HG2ZpKYq9CzQ46VREeQkFviUIY2dGv3ZIWo9EbMQkPayU5FTHz/tNKRvtmC9e0axLYug JrdvD7ZFkeJBLy1q2djxnhnE+dNqVueebhU469LTsYhLULakSL3Ek8MhFIeanQt1MLpw Qy9fr8Uv2onoHSbnMX+FOpIiClzKc4vRijjM0aTRrn+BHQvgCXE9XKqwjLbXDn1CJ3WC UXuA== 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=M3hW7WRp42UpwG72NKBm3smYKhFioVF4VBZeKMtkEJc=; b=AdJGd4FkkkFr2oaN3iBDoxz2lyHLfYE026Ccg6OyuVD0IoYuP8dSNQx09+QeJ7A08S xg463mtDdQo0VhBgzMlW6+xeIo55udpVLq00zkHuaU6LWADETcctCMLLumCQTiEfBtBG ofp7ddXWiRcDtS2EUgdXnsesGKn7XqeAADHzbKD2EP4rUox8VlLemNZ8+G+eWAheVixU FqCdv/UvExaLhLwQPiIYkVf6PDmkFzpCkPt3cKqc/F4lRA/l7pLmLDo8XMHHApfBnNuh 0f/GFNwi9c37bYe0Fm/BMQ8Fr7YPig32I9U6+a/U0023M7m2sDA6XkocHwGmI48UhfBH rxIA== X-Gm-Message-State: AOAM531ggebcxG66g4pDqs8/3hnyTeZJ4VufDh5TGSxwVFmAJo1Em7Gn T15lWSbiwBmfOjo5Vr7Sy9PIFgI80y+G4WFCaekmDXk2JH4Ciw== X-Received: by 2002:aca:1a07:: with SMTP id a7mr15615242oia.163.1592906927646; Tue, 23 Jun 2020 03:08:47 -0700 (PDT) MIME-Version: 1.0 References: <20200529072017.2906-1-linus.walleij@linaro.org> In-Reply-To: <20200529072017.2906-1-linus.walleij@linaro.org> From: Peter Maydell Date: Tue, 23 Jun 2020 11:08:36 +0100 Message-ID: Subject: Re: [PATCH v2] fcntl: Add 32bit filesystem mode To: Linus Walleij Cc: "Theodore Ts'o" , Andreas Dilger , Ext4 Developers List , linux-fsdevel , Linux API , QEMU Developers , Florian Weimer , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, 29 May 2020 at 08:22, Linus Walleij wrote: > > It was brought to my attention that this bug from 2018 was > still unresolved: 32 bit emulators like QEMU were given > 64 bit hashes when running 32 bit emulation on 64 bit systems. > > This adds a flag to the fcntl() F_GETFD and F_SETFD operations > to set the underlying filesystem into 32bit mode even if the > file handle was opened using 64bit mode without the compat > syscalls. I somewhat belatedly got round to updating my QEMU patch that uses this new fcntl() flag to fix the bug. Sorry for the delay getting round to this. You can find the QEMU patch here: https://patchew.org/QEMU/20200623100101.6041-1-peter.maydell@linaro.org/ (it's an RFC because obviously we won't put it into QEMU until the kernel side has gone upstream and the API is final.) What's the next step for moving this forward? thanks -- PMM