Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4640014ybb; Tue, 24 Mar 2020 02:30:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuYUxRIAQHqNjbZ5/k0kGLSFfw62kjCt34hl/+/W0A3bQ31Pufn9a1BVJUE+Ba0AAV8qXEG X-Received: by 2002:a9d:5882:: with SMTP id x2mr7451936otg.297.1585042231502; Tue, 24 Mar 2020 02:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585042231; cv=none; d=google.com; s=arc-20160816; b=IKdW6btyKNBmXk2DNQ5u8FpCTEYFgdlAyZnhV2pf1HiNOnZRObb9CZJd7cmjj1FTX3 qQkhlgV1LA4fbNtXrPOyFdICmNHj1JNYPUPfNplqiK8wqG2DL0D0rQaBCoLzku+QTdZk 9O1AAwCiU496YeQ9GRKyBRq1/mdohsc7y784ksx3X5TR61Z559qF3inKrEiqzMDKlZsl SwpQ8YlLYud1VMHYSDL0gVyawns082Ai75s7t4zMSRfNNUw80aWQEhnd6ySPIQt7s8OG 0W65+OMfsEqZCaFjVNI6x+A7gtXXgSQHJgfLE6KbTciJjagFrERBlwusm9ktDuPwGSZY DqlQ== 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=UzTnB3iS1qilKNurvByNSklxmCSliWtJkL6J5/1oEN0=; b=d2fo1/9Dffz69Y0WTJHzOgutDlcX2vF7ezS9Ex2rxyeRrXYJn/5oiuF8pXtcNsPa5d veLV2VQDZ8uXbQLfH60s+wzRfdDfW7FlbTxOmwm4snyu6nOeSA4Lpp4o9EkgPjs9zjyg v4XI5WD3QoAHjUuRIMebb/Y0Al2/iwvYvCXlAT5OwRbjndA3+xKAXj3rjEdRksSN5qG5 /Dx7wVN9U8P2tEuSSUtqXymTdX6DAFzJIVT+d4jlbx4VJrY2KyTJ2TaD4GXxywuhMxwS v04oEs5I28KuXFnsNJmz2BgEEL0YDoHNR7Ju2SVTCHUL9UNOg8LEGeXAq2NjQ5gioRxS y/3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dT+SeYyH; 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; 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 c20si3558279otp.46.2020.03.24.02.30.13; Tue, 24 Mar 2020 02:30:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dT+SeYyH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbgCXJaL (ORCPT + 99 others); Tue, 24 Mar 2020 05:30:11 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46561 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgCXJaK (ORCPT ); Tue, 24 Mar 2020 05:30:10 -0400 Received: by mail-ot1-f65.google.com with SMTP id 111so16311951oth.13 for ; Tue, 24 Mar 2020 02:30:10 -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=UzTnB3iS1qilKNurvByNSklxmCSliWtJkL6J5/1oEN0=; b=dT+SeYyH1BkKkZWUaBk5uj0MEH4L6HjmlSYG1+nPnGCG3gAENzp0qjsWHAigkjMhtR ljAI1uUGzbpci1deREeZbmrQws6bf2gHk+9gusG81aJYoCIN4nyvPaaP6ug29PD+78AD pBmUMig88uOYaX5iSgRyVzEwUEzyGAd5Yu8cNqY1KACcX65WNHrT7gMMS3T4RjMXKiRj 9kQwaauv82/bqrFcDf7AtzgFGJe0b9boON8gM98zVPL6FMxsx9RRo+vJqhikkynkr4WI +/oWFfjdmud6SHbfCHGyb5rghdGaq7+cR5SuHhjkz0L5/L+PbiIqnNVLVHCPGSKi0cpY kOVw== 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=UzTnB3iS1qilKNurvByNSklxmCSliWtJkL6J5/1oEN0=; b=s0qBCzS+VwEFZOu7qmTnAFZP4bHWGWJqkbnrEh1yRxC84Me8TxmeVQwPYOufz4A2eP 7AP+jW4dpxwrJ24M3PtmYBs0VvXwwG9ahIma7VHXtWObRXGf0xCR5LhM4zcInVy5iyzn wNfJZMlmu0l83E/Jd7gfb47eEktIOldmVDi8uL9kVvo5lQZB70LxrCIrEMqZyuL6hkI5 V/q+x5HaAYiJ5H8BXoyvTKE+AhocRhcZpEKe5n3l7iFgJXIM2Ynhep2MLVdcQjWvh7Z4 uZla9qo+pknFv3W3bWi+U5bUsfJAb7zYNWtlSVjmUo2Gir75ey0hq37vzGE9hGeH7JXc ZtUA== X-Gm-Message-State: ANhLgQ3C8tFyLoFGBv56iJlXPc99wGZJgGNxCtPoErjjI1kHtGOTy4/X UpL30h7p7rkewzcyoeUNUmSOyUN1be0YpbLtZ/PgPA== X-Received: by 2002:a4a:d1a5:: with SMTP id z5mr1673767oor.63.1585042209973; Tue, 24 Mar 2020 02:30:09 -0700 (PDT) MIME-Version: 1.0 References: <20200317113153.7945-1-linus.walleij@linaro.org> <20200324023431.GD53396@mit.edu> In-Reply-To: <20200324023431.GD53396@mit.edu> From: Peter Maydell Date: Tue, 24 Mar 2020 09:29:58 +0000 Message-ID: Subject: Re: [PATCH] ext4: Give 32bit personalities 32bit hashes To: "Theodore Y. Ts'o" Cc: Linus Walleij , "Suzuki K. Poulose" , Andreas Dilger , Ext4 Developers List , linux-fsdevel , Linux API , QEMU Developers , Florian Weimer , Andy Lutomirski , stable 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 Tue, 24 Mar 2020 at 02:34, Theodore Y. Ts'o wrote: > Another possibility, which would be messier for qemu, would be use a > flag set via fcntl. That would require qemu from noticing when the > guest is calling open, openat, or openat2, and then inserting a fcntl > system call to set the 32-bit readdir mode. That's cleaner from the > kernel interface complexity perspective, but it's messier for qemu. 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. thanks -- PMM