Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3662840rwo; Mon, 24 Jul 2023 14:49:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqbitkrpD1dfza2Zul2aSqG/uvTz9P04voUwzfU8wGHgsLBMgQHASJbJ8a8qcKiizHLe2c X-Received: by 2002:aa7:c84c:0:b0:522:3a54:1c05 with SMTP id g12-20020aa7c84c000000b005223a541c05mr463163edt.5.1690235359588; Mon, 24 Jul 2023 14:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690235359; cv=none; d=google.com; s=arc-20160816; b=sgUJmgSllCPnmOtD/cY0DIc/cGsHyu4dN1CbauyRxKKoZlK3Q3LZzWhIOMdxTOjUmW +h0JSAxieppwvlUajZHgf1WHDEKjeIZ6HvUnD8U/ibCvmcp/iZ9dEKW58250Red7+CCm svsvt1HkG/7aNrJIXotdc1J0AAsazGgCkfigzkXeH82l97kR99Eyw8/jy+OtIvG1bbO/ aWDf8SM7qt9UDCsV/h3olrE/c2pfnLA0LJKr6MmK1acks1cdxooYDJl5EFAGik28VXQk pJnEd8xS2hGPmKXvfI/xd54uq4bpWT6NhDSN0Qm/DviBya+F5PP5rkF3TuYAkXuSdXLS Ao7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bnxQGj8se6VCm1okVAOHoRQPWWDl7TQydreEZFxE468=; fh=Oevn7a063PAosdC5Evo76IS7++8qcQEInvzhU8ZA/fI=; b=x1BovDym1qHTewJWQoHCkdiOwSkVT6MD+knB5tngR6C9XcKOQwii6wTCU9ZEpNB3y8 VxuXNKrdr1fab0PvSMX7OgkZqI/Sg47pBsAFrwfzfcAhvvwNncbN1ARjnDY3jzPgCx5Z 2jHFtDnEpgXYMEJZeuCUp8ykRnp9LLoTNFgVYYrF7VWuYlmmqPhzOyvERFxxvvVZCo3/ kmtrvwtK/zJFxZAGLfBkKZcH8CL2RPHv+P2ZArnb2uTBkxUMZ7Cz5ZC6lxtEJ3xNDQZV yJEGOU3TNqSLYSIq54jN8C6/GUnK+OR9noLRFlS9Cyg1dEr4c21E1jTfTQkKm5auOTbD 2GzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mE3pj1jc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020aa7d7c1000000b00522215d85c5si3009188eds.282.2023.07.24.14.48.52; Mon, 24 Jul 2023 14:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mE3pj1jc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbjGXVj5 (ORCPT + 99 others); Mon, 24 Jul 2023 17:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbjGXVjz (ORCPT ); Mon, 24 Jul 2023 17:39:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18DCD8; Mon, 24 Jul 2023 14:39:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8ABD861423; Mon, 24 Jul 2023 21:39:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4394C433C9; Mon, 24 Jul 2023 21:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690234793; bh=xzsk77oa/MmXqkkg6zmkBhwbeHVVBpPaTZBJoL2yiSk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mE3pj1jcdJGd2420B2MZzLHNvk5nkkEfWuzFXJ3om9Bj15J4etmG1pPdOd62aqnZ7 cOkyC0FqEXXEuGki++nrrpMe/LhUTorHF5UAavZXj97HMbK0Xdgscq9tkc4HyfmTDm rhgeFoMfxIfXaa8KUrxgJsAOmaBiBozZQLuOg4qfFjtPig+9XDlXCNtkhuAGkJivVh JKCOmpOJWu4MILtwCS+H+WCEWxtJ90JrFwX7P6JB/O6wqM0Wb+H2q0MtatzrI25GJl srk/+oSfn8Lb6AghWfDz/CGcUB04U25Rr4od0BYDbT8eljmf5NoOxBJUNbp5rLw1wj 5f8SBBKVCb4yA== Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5774098f16eso61049547b3.0; Mon, 24 Jul 2023 14:39:53 -0700 (PDT) X-Gm-Message-State: ABy/qLbHn7QRhvStCprjsEyKePCtzbzNdVF3QDNhl06MStAGqEioYkyp vQkYO31EOYpI41pdXAbXQwG+JaBIevMtB1A6Mr8= X-Received: by 2002:a81:66c4:0:b0:568:d63e:dd2c with SMTP id a187-20020a8166c4000000b00568d63edd2cmr9620907ywc.11.1690234792843; Mon, 24 Jul 2023 14:39:52 -0700 (PDT) MIME-Version: 1.0 References: <20230716-fixes-overly-restrictive-mmap-v3-0-769791f474fd@kernel.org> In-Reply-To: From: Eric Van Hensbergen Date: Mon, 24 Jul 2023 16:39:41 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/4] fs/9p: fix mmap regression To: Robert Schwebel Cc: Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel@pengutronix.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Awesome, thanks for verifying Robert. Will send a pull request for this in a few days. -eric On Mon, Jul 24, 2023 at 4:17=E2=80=AFPM Robert Schwebel wrote: > > Hi Eric, > > On Wed, Jul 19, 2023 at 03:17:04PM +0000, Eric Van Hensbergen wrote: > > This series attempts to fix a reported exception with mmap > > on newer kernels. > > > > Fixes: 1543b4c5071c ("fs/9p: remove writeback fid and fix per-file mode= s") > > Link: https://lore.kernel.org/v9fs/ZK25XZ%2BGpR3KHIB%2F@pengutronix.de/ > > Reported-by: Robert Schwebel > > Signed-off-by: Eric Van Hensbergen > > --- > > Changes in v3: > > - Clarify debug print to read-only mmap mode versus no mmap mode in > > v9fs_file_mmap > > - Fix suggested regression tags and propagate across series > > - Link to v2: https://lore.kernel.org/r/20230716-fixes-overly-restricti= ve-mmap-v2-0-147d6b93f699@kernel.org > > > > Changes in v2: > > - fix requested changes in commit messages > > - add patch to remove unnecessary invalidate_inode_pages in mmap readon= ly path > > - Link to v1: https://lore.kernel.org/r/20230716-fixes-overly-restricti= ve-mmap-v1-0-0683b283b932@kernel.org > > I've tested this patch series with my qemu setup and it resolves the > issue. Thanks for taking care! > > Tested-by: Robert Schwebel > > ----------8<---------- > > rsc@dude05:~/work/DistroKit$ configs/platform-v7a/run > Forwarding SSH port 127.0.0.1:24910 -> qemu:22 > [ 0.000000] L2C: platform modifies aux control register: 0x02020000 ->= 0x02420000 > [ 0.000000] L2C: DT/platform modifies aux control register: 0x02020000= -> 0x02420000 > [ 0.004896] smp_twd: clock not found -2 > [ 0.726397] simple-pm-bus bus@40000000:motherboard-bus@40000000:iofpga= @7,00000000: Failed to create device link (0x180) with dcc:tcrefclk > [ 0.742338] simple-pm-bus bus@40000000:motherboard-bus@40000000:iofpga= @7,00000000: Failed to create device link (0x180) with dcc:tcrefclk > [ 0.809910] physmap-flash 48000000.psram: map_probe failed > [ 1.201306] 9pnet_virtio: no channels available for device root > > ____ _ _ > | _ \ ___ _ __ __ _ _ _| |_ _ __ ___ _ __ (_)_ __ > | |_) / _ \ '_ \ / _` | | | | __| '__/ _ \| '_ \| \ \/ / > | __/ __/ | | | (_| | |_| | |_| | | (_) | | | | |> < > |_| \___|_| |_|\__, |\__,_|\__|_| \___/|_| |_|_/_/\_\ > |___/ > > ____ _ _ _ ___ _ > | _ \(_)___| |_ _ __ ___ | |/ (_) |_ > | | | | / __| __| '__/ _ \| ' /| | __| > | |_| | \__ \ |_| | | (_) | . \| | |_ > |____/|_|___/\__|_| \___/|_|\_\_|\__| > > > OSELAS(R)-DistroKit-2019.12.0-00429-g57ffae760eb9 / v7a-2019.12.0-00429-g= 57ffae760eb9 > ptxdist-2023.07.1/2023-07-11T19:56:50+0200 > > DistroKit login: root > root@DistroKit:~ mount / -o remount,rw > root@DistroKit:~ ldconfig > root@DistroKit:~ uname -a > Linux DistroKit 6.4.0 #1 SMP PREEMPT 2023-07-01T00:00:00+00:00 armv7l GNU= /Linux > > ----------8<---------- > > rsc > -- > Pengutronix e.K. | Dipl.-Ing. Robert Schwebel = | > Steuerwalder Str. 21 | https://www.pengutronix.de/ = | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 = | >