Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2407786lqo; Mon, 20 May 2024 05:12:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXl/mfjTVGrFbHMBkq6oONVY0+H1fmCZ6x2z9vFsGDYxFAUL3y9eRVdP1nSTbaTua8VZh+RiQp8B2XvspVmDu8IAADX9bambjU9sDG+rw== X-Google-Smtp-Source: AGHT+IFdEJCKaIAuV/Ve/6gc+qrHAdOVP4JA4IBcfFAaD3uX69DCx2MxbCqLcbrhg09kWuruUpRq X-Received: by 2002:a17:902:da87:b0:1eb:b50e:3577 with SMTP id d9443c01a7336-1ef4404f4a5mr414634445ad.56.1716207129746; Mon, 20 May 2024 05:12:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716207129; cv=pass; d=google.com; s=arc-20160816; b=gPsoZhh2P/I/STHOU+3djbdpOyPW/zCLUsdQpMIiqksROHq9krsLPuVsQgAiEborJQ c8hSBUpGMrsl1J6dm0JQVtcuHruQ5hCKUNtocIubqpKDKsT/WcVMdmkoIpxxtXC9cDBV 9OTqUTS4/qXZJSjBaVHqz3YWZ8IINEMWhsFCucdwjBoUQeYHc1Y9FLlSh9XJeeSB1TgN NCb/CXpWcmpv7OTMGadSu3HRJKTf/AToshY6sje362Sxv4W6hPPiPn7J9eumn1NzDJ2t tYblNfwHaurIU86lJ2QoCn3hR78QRcfnHHVLZ3daDbR/Q7ij6hVq/thVwypQeNkX3XZc 7L7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=zZEhd+Lq/HrYnXQtgq10qzlROqeXWQEKzo6+4KpOd74=; fh=Rw8vvs4Bhht6ZMmhIQcAR1WF2QaPi1hWIjqrgP/UzLo=; b=pchYjZQS5+qbeiAMRGnOaoQYEPUut9hCrRAbdLeAjdoHlmHMry5q1AtdPd5FmJekcL 7LIiDUPa6RAw8XhMNZ7uk/nI7OtmIcKYpjKSavM49IocyqFdFTc0I76RxGhW/hxXgOLU m/cfpfngqcSI+qL6J6Him02kTbs2P3PK/CeK9Y1V5Mrcop+j1DErtcu5TC1/roBXFJCT jjB8YLsGxNr39VD0UA8zonse18OVmM7CzdybV4RdCf0Yl9Eir+TsVaFh78n+MxwRWW/n izOI3lcyIFMF49wriGNXhEiYAm7Mtaadv4QPzi5X/uP2OYxGBY7lxr4+UDVlQ8DcbuZ6 ha8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sBLm7mdR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-nfs+bounces-3289-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3289-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f0957e9f12si82601715ad.385.2024.05.20.05.12.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 05:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3289-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sBLm7mdR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-nfs+bounces-3289-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3289-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0462F2824DE for ; Mon, 20 May 2024 12:12:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC26B2E417; Mon, 20 May 2024 12:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="sBLm7mdR" X-Original-To: linux-nfs@vger.kernel.org Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2662B20311 for ; Mon, 20 May 2024 12:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716207127; cv=none; b=TmIDwQb/zr/sW3ZvddcOcwitsVnonHf/ahLJx1G/bzU/phP+0nKZkeVH7e/VAmJB4LEhLPMi54lZEFiH/JcaarwQBMJIzTGMzQ0DOiRB46UbdsSb4Wkhg4aHtE135sfgafwEKccZOp9RDTBKSa+ZH2z7UAs0gztTCAOe6pt8ZEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716207127; c=relaxed/simple; bh=okuFoxjDbEa/Cy9d9p0Re6q5eyCYWX8r0NPfeekia2k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ajkWWbzIhhvpc4kpPAakyorA75LPs81zI3OitfOv/pEk17eu49ry+m59ieatXv7KTuvFKSCPN0Zp0Um6ifjPGpPW2iic7DX7swRD3/3qtub5mBVJdPcdfX5rgjJGJEvnDL4Pf3+x2tfCJx26dU7kCaF71o31G1vzM4KxOAd8vXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=sBLm7mdR; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: rankincj@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716207122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zZEhd+Lq/HrYnXQtgq10qzlROqeXWQEKzo6+4KpOd74=; b=sBLm7mdRxTx7rSSVoekMcAGYDBpr+LVF/v9ora4XOh+FrBAkz6uBhdpM75PzXGLR9Xjjbl Jh6SIbv2+Q2+abvn4NmHavHQshyBUmX9vrzZy1w7qS7wkNQFDUZ3IDK5BvXaySf9x31LjK cBANGx65bN+vDWo5flLT6WlE0+OFEr4= X-Envelope-To: jlayton@kernel.org X-Envelope-To: chuck.lever@oracle.com X-Envelope-To: linux-nfs@vger.kernel.org Message-ID: Date: Mon, 20 May 2024 20:11:52 +0800 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [BUG] Linux 6.8.10 NPE Content-Language: en-US To: Chris Rankin , Jeff Layton Cc: Chuck Lever , linux-nfs@vger.kernel.org References: <0309145a87db46a4e56b83d64d2f5273990a08d7.camel@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Guoqing Jiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 5/19/24 23:51, Chris Rankin wrote: > nfsd_show+0x39/0x18e: > > net_generic at /home/chris/LINUX/linux-6.8/include/net/netns/generic.h:47 > 42 struct net_generic *ng; > 43 void *ptr; > 44 > 45 rcu_read_lock(); > 46 ng = rcu_dereference(net->gen); >> 47< ptr = ng->ptr[id]; > 48 rcu_read_unlock(); > 49 > 50 return ptr; > 51 } > 52 #endif > > (inlined by) nfsd_show at /home/chris/LINUX/linux-6.8/fs/nfsd/stats.c:38 > 33 }; > 34 > 35 static int nfsd_show(struct seq_file *seq, void *v) > 36 { > 37 struct net *net = pde_data(file_inode(seq->file)); The implementation of pde_data is depend on CONFIG_PROC_FS, maybe nfsd_show need to check the dependency too just like write_gssp. >> 38< struct nfsd_net *nn = net_generic(net, nfsd_net_id); > 39 int i; > 40 > 41 seq_printf(seq, "rc %lld %lld %lld\nfh %lld 0 0 0 0\nio > %lld %lld\n", > 42 > percpu_counter_sum_positive(&nn->counter[NFSD_STATS_RC_HITS]), > 43 > percpu_counter_sum_positive(&nn->counter[NFSD_STATS_RC_MISSES]), Thanks, Guoqing