Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1373782rwb; Tue, 27 Sep 2022 12:05:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eCj3jC/d/8NhxoLekIMZ0nV/+7V3q8SxT1gv1endtC0jmK6RnTohTbjiM1VVAKvd6ROQH X-Received: by 2002:a17:906:9b8a:b0:783:18c:88ef with SMTP id dd10-20020a1709069b8a00b00783018c88efmr14446788ejc.419.1664305553985; Tue, 27 Sep 2022 12:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664305553; cv=none; d=google.com; s=arc-20160816; b=ONNPq/4gnQjLAl4a37Hvd4WJfisA1ztbyG/qjUStKrxcUqRtd2QsLCX3Ra9Rsz2ywt rGJD4wLYHtyvP1THLlhGVRtZFeFjDZtsEa8G/6bx6l5hS1IK34oVMfXQIoEv1wxnwjo1 Vptzrf2V8h4r8LxLXB9eUube1XySbFGdntLPDz4gco/8JSYEcPtDVL5aeLc2KJlrgzA1 iBnVIcz/rzoRNgvqJ+dTdzS/vkCVzzMS/BKvy7hx9rW9/EVn2J64OltlC+qEpClrh+nJ /c2k3I3ksqyHLwfhYzlPmCf1V+34+FvF+3IkqiZd/OombU4n6DFk4roxZhFWhEMtlY8F PS+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:content-language:references:cc:to:user-agent:mime-version:date :message-id:dkim-signature; bh=pgCnu2u9aasbInJyHgNeYUt7gTjNDDIS3Hbg8N6F9Fw=; b=Ctrqw7Vkf1M50MqBQJStxvbnSgzEDLP3kcInkbnpkmWAQRQ4f2vewRqEEmtMo9xJHw kJTxKCDy7sNMDulCjZg5Xu3BTw0AknJRKvSuLg61oj/IlmP41jLiho11f7bIexMuVF7n 5/59Nmsi2QBwtOO7w/cBhBlGTuPI7xaS5ZejMJkBZZj1m3kVxtvY/8Rnbr0eqTHhTLQZ wksgTllky7ZOMbANXxsMKLRxQ25Vl56MgK0wNHfkBiGCeu0V3YTh/PEUnxC1Sy9cjv3F RLwQV1/RjWE42CjDXXCJ5uAi73PI7S79Ge6FhkC/k2Cdn8XlWzgEQIBQ88WQj7LqNuMr hezQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@garloff.de header.s=strato-dkim-0002 header.b=kMmwcI8A; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd11-20020a1709069b8b00b00782faf12c6esi2559761ejc.78.2022.09.27.12.04.51; Tue, 27 Sep 2022 12:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@garloff.de header.s=strato-dkim-0002 header.b=kMmwcI8A; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbiI0S7n (ORCPT + 99 others); Tue, 27 Sep 2022 14:59:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbiI0S7l (ORCPT ); Tue, 27 Sep 2022 14:59:41 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD511A069; Tue, 27 Sep 2022 11:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1664305173; s=strato-dkim-0002; d=garloff.de; h=In-Reply-To:Subject:From:References:Cc:To:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=pgCnu2u9aasbInJyHgNeYUt7gTjNDDIS3Hbg8N6F9Fw=; b=kMmwcI8AtGlaT6zzburG83oUuqwxgs9NO6D/B0M1u9nvTgs+1d0LeK0KXbphknND7A uaO5hbqoHJLSN0qWnD0uOKRZP5e/DamcVCwMI/0N/OYU+KudO62f4N/yPGjqlnEiPSEK p+BPV1HmCZiapOtUUuJtz/eklGgQBjfikwvRfzQ8lvRmV9bYZk682jZevqccALiV8XSD 4tXBG2gsci1wZYQFFuIyucgu/pFjZlQITsNPJJLZZYU//ycZVzbP9CYbthRPCdqLXFY1 7G0Iw3ocGggd1PH7pYDXtWkDdQgh/+tmS9LfMsKadz51p4bhM2jjQD66rk8V7WffioOk RBfQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":J3kWYWCveu3U88BfwGxYwcN+YZ41GOdzWdTW9IJoHV1zocjVWQKKeekM8j2gfegf7pwk" X-RZG-CLASS-ID: mo00 Received: from mail.garloff.de by smtp.strato.de (RZmta 48.1.1 DYNA|AUTH) with ESMTPSA id uc84cay8RIxWFoU (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 27 Sep 2022 20:59:32 +0200 (CEST) Received: from [192.168.155.202] (ap5.garloff.de [192.168.155.10]) by mail.garloff.de (Postfix) with ESMTPSA id 0C4EE61470; Tue, 27 Sep 2022 20:59:32 +0200 (CEST) Message-ID: <5dc1b00f-0451-bb0d-56e4-6c178d3c2ce7@garloff.de> Date: Tue, 27 Sep 2022 20:59:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 To: Thorsten Leemhuis , Greg KH , Sasha Levin Cc: "anna@kernel.org" , "linux-nfs@vger.kernel.org" , "stable@vger.kernel.org" , "it+linux-nfs@molgen.mpg.de" , "pmenzel@molgen.mpg.de" , Trond Myklebust References: <0e1263a1-9d3d-a6cf-deb7-197ab1eed437@leemhuis.info> Content-Language: en-US From: Kurt Garloff Subject: Re: nfs_scan_commit: BUG: unable to handle page fault for address: 000000001d473c07 In-Reply-To: <0e1263a1-9d3d-a6cf-deb7-197ab1eed437@leemhuis.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE 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-nfs@vger.kernel.org Hi Thorsten, thanks for collecting this issue and providing relevant context! On 26/09/2022 08:00, Thorsten Leemhuis wrote: > [adding Greg and Sasha to the recipients, to ensure they see this; CCing > Kurt as well, to keep him in the loop] > > On 22.09.22 15:44, Trond Myklebust wrote: >> On Thu, 2022-09-22 at 13:42 +0200, Paul Menzel wrote: >>> Am 21.09.22 um 14:44 schrieb Trond Myklebust: >>>> On Wed, 2022-09-21 at 13:42 +0200, Paul Menzel wrote: >>>>> Moving from Linux 5.10.113 to 5.15.69, starting Mozilla >>>>> Thunderbird or >>>>> Mozilla Firefox with the home on NFS, both programs get killed, >>>>> and >>>>> Linux 5.15.69 logs: >>>>> >>>>> ``` >>>>> [ 3827.604396] BUG: unable to handle page fault for address: >>>>> 000000001d473c07 >>>>> [ 3827.611297] #PF: supervisor read access in kernel mode >>>>> [ 3827.616452] #PF: error_code(0x0000) - not-present page >>>>> [ 3827.621604] PGD 0 P4D 0 >>>>> [ 3827.624152] Oops: 0000 [#1] SMP PTI >>>>> [ 3827.627657] CPU: 0 PID: 2378 Comm: firefox Not tainted >>>>> 5.15.69.mx64.435 #1 >>>>> [ 3827.634551] Hardware name: Dell Inc. Precision Tower >>>>> 3620/0MWYPT, BIOS 2.20.0 12/09/2021 >>> […] >>> >>>>> [ 3827.743328] Call Trace: >>>>> [ 3827.745779]  >>>>> [ 3827.747883]  nfs_scan_commit+0x76/0xb0 [nfs] >>>>> [ 3827.752167]  __nfs_commit_inode+0x108/0x180 [nfs] >>>>> [ 3827.756886]  nfs_wb_all+0x59/0x110 [nfs] >>>>> [ 3827.760822]  nfs4_inode_return_delegation+0x58/0x90 [nfsv4] >>>>> [ 3827.766413]  nfs4_proc_remove+0x101/0x110 [nfsv4] >>>>> [ 3827.771130]  nfs_unlink+0xf5/0x2d0 [nfs] >>>>> [ 3827.775065]  vfs_unlink+0x10b/0x280 >>>>> [ 3827.778563]  do_unlinkat+0x19e/0x2c0 >>>>> [ 3827.782158]  __x64_sys_unlink+0x3e/0x60 >>>>> [ 3827.786002]  ? __x64_sys_readlink+0x1b/0x30 >>>>> [ 3827.790192]  do_syscall_64+0x40/0x90 >>>>> [ 3827.793779]  entry_SYSCALL_64_after_hwframe+0x61/0xcb >>> […] >>> >>>>> ``` >>>>> >>>> Does cherry-picking commit 6e176d47160c ("NFSv4: Fixes for >>>> nfs4_inode_return_delegation()") into 5.15.69 from the upstream >>>> kernel >>>> tree fix the problem? >>>> >>>> 8<--------------------------------------------------- >>>> From 6e176d47160cec8bcaa28d9aa06926d72d54237c Mon Sep 17 00:00:00 >>>> 2001 >>>> From: Trond Myklebust >>>> Date: Sun, 10 Oct 2021 10:58:12 +0200 >>>> Subject: [PATCH] NFSv4: Fixes for nfs4_inode_return_delegation() >>> […] >>> >>> Indeed with that commit, present since v5.16-rc1, we are unable to >>> reproduce the issue, so it seems to be the fix. It looks like there >>> are >>> not a lot of 5.15 NFS users out there. ;-) >>> >> I believe this is a dependency that was introduced by the back port of >> commit e591b298d7ec ("NFS: Save some space in the inode") into 5.15.68. >> So the reason it wasn't seen is because the change is very recent. > Side note: I wonder if that is causing this problem from Kurt as well: > https://lore.kernel.org/all/f6755107-b62c-a388-0ab5-0a6633bf9082@garloff.de/ Looks like it: After confirming that the 5.15.69 kernel worked again fine backing out those last three NFS commits, I reapplied them and cherry-picked commit 6e176d47160c as suggested. The kernel worked flawlessly thus far, so this seems to indeed be a requirement for e591b298d7ec not to cause harm. >> FYI Greg and Sasha: please also consider pulling 6e176d47160c ("NFSv4: >> Fixes for nfs4_inode_return_delegation()") into that stable series. > Greg, I noticed you in the past few days added quite a few patches into > the queue for the next 5.15.y release, but this one was not among them > afaics. So just to be sure: is that still on your todo list or is more > needed to get 6e176d47160c added in time for the next stable -rc? So by all means, Greg, please put this in the stable queue unless the NFS wizards out there consider it safer to revert e591b298d7ec instead. Thanks, -- Kurt Garloff Cologne, Germany