Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3717395ybz; Mon, 20 Apr 2020 08:12:22 -0700 (PDT) X-Google-Smtp-Source: APiQypI5CVjE9iKEcwLXnBXN29Ql4ry/iQfPWD4VVJx5x4gDz+YQXNhdaCQGAYe5MbFJo8Iy9jnY X-Received: by 2002:a05:6402:1adc:: with SMTP id ba28mr2500608edb.12.1587395542073; Mon, 20 Apr 2020 08:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587395542; cv=none; d=google.com; s=arc-20160816; b=ph3cC905v9f0gqTwrT2U31rkP/98zSOVYPRyTsrnqpka4k1p5no9wLJ+xfHaBAX2IF 5focmaS7HOWgZoWMHVxZbBXlMQL1HcvIi0Wvy7sS9LWDPuE8nj7O9/9/eWRKAIa37xQ1 ybCdDtZRYl+wqEoaqB+IMAtLwyXaWNYq1lXuce7iySBFx4JoBCpDqhXGm8F94ZLO6Ali k2GtHP2u5L2zz2fvzEPyp680ovElS1UdSaJLANfYa61DDgsp3veh3dE2EJZdhBgUN50u Nn2xOHDYTFFxjkWdMlITsFx/tdTZvtAOan/6MpY+wcDyRmRT2rfL06KND41Sz5P2H8XC ca8g== 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=hkugNSUCGf3cfZwlCyGaI8wXlqNC6+5VcP9fYiHhc0U=; b=NuZDaOqVNoZ/GtEhADtoQ21N7u/LcugymrwXMU0pL05fUGOzarezWC2IncmxvczpS+ Yukvpx+gMjEWjgOT5x5OlAGZevBpA2vhsgLqMc06FrxyBBls4GBZ2B7hx9EPDgWaPOZ3 7blqikrJ5ULxcGCphyTSojkEI6kmwUHkQxYcxJ5/rps9oMpAS+aEMGKD+b1RdZvdQKEG +zMMCZCiE1ERwHze3GKlJYq/oSq+XKfHjBpQVDLsThvcaLTsd1gE73Vk6g8Hu/PEIdy5 QFuqthjDeRixetvdM7Mrk5cLOFR7KsdG4pZUwWSktEkgMT7zk55er0SgrvIy+yvOfAUu ohpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7niXEAb; 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 g17si728681ejm.271.2020.04.20.08.11.54; Mon, 20 Apr 2020 08:12:22 -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=e7niXEAb; 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 S1729016AbgDTOQ1 (ORCPT + 99 others); Mon, 20 Apr 2020 10:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725989AbgDTOQ0 (ORCPT ); Mon, 20 Apr 2020 10:16:26 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F2E2C061A0C for ; Mon, 20 Apr 2020 07:16:26 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id j4so8173636otr.11 for ; Mon, 20 Apr 2020 07:16:26 -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=hkugNSUCGf3cfZwlCyGaI8wXlqNC6+5VcP9fYiHhc0U=; b=e7niXEAbvSRqBiTADpU10S+vy4G0bJXBzYiUiFy5BWhFqfEMVtUDiCJOEnu2rpkC9S LyVWdkIAW/SWnQiTC00fJFmcDe24MOWwkIhMXXqS9nuJl7u/4dloA+yiSxbfKU4VSBYa 9MSeXDwaJRtoxKAD5Vzul/GQiMlAFppl1Abk97ibf15Wlh5x6V8QLVzNq3c7wZgsvfvG bvFopOpQItIRPZLoSmt75oyXA4x9vH3RMILgIQcCHH53mqZYXvzjVwZlytmgSJMnntKK vUxcBi4plcfCLwH5OLsgPS8PDzvfYvkBL9l4D7yI+M98cCgsBNlFvz8AKqLkTE+oeoQ2 3/Sw== 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=hkugNSUCGf3cfZwlCyGaI8wXlqNC6+5VcP9fYiHhc0U=; b=XF5kDekF4oSlCEScQqkIaL7eJ0QB/8yNJJiepKq7qGTajgfpDKydSoLkSgt1ihmNKR L7ii8B0PwV2oq1KmbF8L57a1Fnz+1sy0B3YJu/DhsAOYmUsF0KdD8DxK+SG/+pjK8HWK IRVz2OOV44DFOxztui5+QkqwD+qs1qNL0n733bdSiae/ix4P1U9vDSRyi6bVxJVLl7mj tiQu+lTFE5ZD2IGEqNt0SGTaETVYDsqgMDhamvf3De84WhDsZTEZcLO/gdMA1sQYUQyq 0/0Oy/pwFbSgGuFJHYyMYjpDP5hR62T3l+nUHu7aHX4KZ55JwkDTzFBLwNsSaycVdLwq 99lg== X-Gm-Message-State: AGi0PuYDj6b6c4MB9vnwLJTpOVdEu/9NW3/1aaxyxU91fXS7hERnG+1V l3HSJ4BW6Rz5ZtGE5wdFaNOzTKXYrGZeo/jmKFqm9DY84x0Ytw== X-Received: by 2002:a05:6830:22dc:: with SMTP id q28mr9240147otc.221.1587392185768; Mon, 20 Apr 2020 07:16:25 -0700 (PDT) MIME-Version: 1.0 References: <20200331133536.3328-1-linus.walleij@linaro.org> <87v9luwgc6.fsf@mid.deneb.enyo.de> In-Reply-To: From: Peter Maydell Date: Mon, 20 Apr 2020 15:16:14 +0100 Message-ID: Subject: Re: [PATCH] fcntl: Add 32bit filesystem mode To: Florian Weimer Cc: Linus Walleij , "Theodore Ts'o" , Andreas Dilger , Ext4 Developers List , linux-fsdevel , Linux API , QEMU Developers , 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 Mon, 20 Apr 2020 at 12:38, Peter Maydell wrote: > Whoops, good point. I was testing this via lkvm, so it's > actually using a 9p filesystem... I'll see if I can figure > out how to test with an ext3 fs, which I think is the one > we most care about. After some effort wrestling with kvmtool (which assumes that if you provide it a disk image then you must have wanted that to be your rootfs and can only be persuaded otherwise via some undocumented and arcane options), I did a test with ext4: bash-4.4# /qemu-no-fix /readdir-bug dir=0x76108 readdir(dir)=(nil) errno=75: Value too large for defined data type bash-4.4# /qemu-fixed /readdir-bug dir=0x76108 readdir(dir)=0x76128 errno=0: Success (where the host kernel has Linus' fcntl patch, qemu-no-fix is a current-git-master QEMU and qemu-fixed is one with the patch in my previous email). So for Linus' patch: Tested-by: Peter Maydell If 9pfs could be persuaded to honour the fcntl flag too that would be really nice. thanks -- PMM