Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5149322ybb; Tue, 24 Mar 2020 11:48:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsK4mowm3tO0T4Ueai5FXmlBWT6sf4HU+93kBVJr88RF0SNG/AR7U0Td0/icqYIY6DIDf3d X-Received: by 2002:a05:6830:20d5:: with SMTP id z21mr2343534otq.237.1585075703068; Tue, 24 Mar 2020 11:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585075703; cv=none; d=google.com; s=arc-20160816; b=AsJGvAz8FXUFarTHbwOPplwqjXXfIJ0aV3AbIdzXACDaITg3ef9VmmJ3IgArDv/RfV vWZtzUI6qUbL3w4D170yFUSGtqVEK+3UIKPG+zpNINL1RUWZRZa04mDZVv6uNQWIgu71 XI77uhD2bqX8ECoz1mvIjRKrbXc0rcUSNUVMDIGwXQ2tSe3hFKdqwd8uBccmvKqSkU/x ggRebvSr0TWhOCUiuFBO55y1nKrrrOx5RbY/n5AnV4q6Q9HgxBxYdIMV/lF8L8RiZ+a4 Duazx0qacDF0bUSPAVkTs8sOPGN4WQussJ0Cf9LJaEvG+EWh5Lbw8s/nm30VDDGsVI62 mWFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=idABf1NqlXjoyJ3Ec6fq6Yez23DGDq5+Bti1xtlK4sQ=; b=S3gk0a8WeVLVcI1PBFXfpEyUZQ3s191YHKgXOe9m7zAT3a+0CoicD9gpzHwDnuSAsN kdFkZhltA+2nj44M/vsd2p+40ZAYE+3bEin36CzEA+TCBzygOnxtkHtp6E7AjUnAdIyR pP8i5uqe0N+sGRgFxXI7RaN5BcrUtWH8q7ZXtiRFk1+PuZPOp+hl0bvuj6hpXJ/zM4r3 ru4eAl0HYVEcom7sZsN5Njvpz77K9K2QZQaI8Rm7D7vnIIX9kjBXySdHNSWaB5VlLZTA PfBRkbbG0oq4jUCfDatwNXbOSO76XqcDtNolVpiU1S8NIbfGfz7s3mtkmyIyROTsGouP UnuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 y29si11873497ote.208.2020.03.24.11.48.11; Tue, 24 Mar 2020 11:48:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727657AbgCXSsK (ORCPT + 99 others); Tue, 24 Mar 2020 14:48:10 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:46184 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727365AbgCXSsK (ORCPT ); Tue, 24 Mar 2020 14:48:10 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 02OIlsE5019147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Mar 2020 14:47:54 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 2B396420EBA; Tue, 24 Mar 2020 14:47:54 -0400 (EDT) Date: Tue, 24 Mar 2020 14:47:54 -0400 From: "Theodore Y. Ts'o" To: Peter Maydell Cc: Linus Walleij , "Suzuki K. Poulose" , Andreas Dilger , Ext4 Developers List , linux-fsdevel , Linux API , QEMU Developers , Florian Weimer , Andy Lutomirski , stable Subject: Re: [PATCH] ext4: Give 32bit personalities 32bit hashes Message-ID: <20200324184754.GG53396@mit.edu> References: <20200317113153.7945-1-linus.walleij@linaro.org> <20200324023431.GD53396@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Mar 24, 2020 at 09:29:58AM +0000, Peter Maydell wrote: > > On the contrary, that would be a much better interface for QEMU. > We always know when we're doing an open-syscall on behalf > of the guest, and it would be trivial to make the fcntl() call then. > That would ensure that we don't accidentally get the > '32-bit semantics' on file descriptors QEMU opens for its own > purposes, and wouldn't leave us open to the risk in future that > setting the PER_LINUX32 flag for all of QEMU causes > unexpected extra behaviour in future kernels that would be correct > for the guest binary but wrong/broken for QEMU's own internals. If using a flag set by fcntl is better for qemu, then by all means let's go with that instead of using a personality flag/number. Linus, do you have what you need to do a respin of the patch? - Ted