Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 559ED2C0285 for ; Mon, 18 May 2026 18:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779128897; cv=none; b=XYtHA68Sju2KK5IK0BWsXuY9XdTrcc0QHdAyBD6W/wWer9Ai6ieB/KBDGObr9hVQ05jmXaiqiNruTaFFde2tLmRpy3UMDCXbbkzSpy97mjBEOZZRcQ3Nb7hhb6m1dmBEcpGjTiozb9vPN0KWYyFYuD7McgEbtOVCfhpEsjGNaLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779128897; c=relaxed/simple; bh=5kkyyHtSdw+xAyOPqbRaipeuGguM6CvMFkhU1iLXuxI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fmiGFLUMCpQZkjcLIvXC0XB7cf3w+o5BKIRLxhK8pChvSkAMllfUJLv7qmTbSJdPiqwa03rsUySq7lV44J1ImUijysUX4qe5ZItmcoE7VxRZrG10gQk46IYN7LqwdsnYO9eFYQqKxrPomjGU7KkKgK5b4JyeIiiLk2gBBfEVDYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u/vIetob; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u/vIetob" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0069AC2BCB7; Mon, 18 May 2026 18:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779128897; bh=5kkyyHtSdw+xAyOPqbRaipeuGguM6CvMFkhU1iLXuxI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=u/vIetobt9vHeatzbxx5QPiEf01j5aNrv3CTMFCYuEf5SEGMVwc78suTw4xiywooq Pdvj4glGsLfRVRbRqVo2IctFo4bImIciny3q2mB9Cif9tK/Q7KcVb+9b3ngKtcmv0T rsFo4cA2WV5C71n2z0UjTjEw2eLR3+tv/Lduqcim5F0riFRA8s9ILPzzkacnIn/8am xJM0yzYAOkInZ1WLUpiHrSyHixs1c4dk3xDO5fir7yVBcKu9v068+Kw7JtXxGxvWb/ MzZbmp8EvphreAQN4PQy6s3QLbdoh6spfYciFddXKQS4QSQIwOJ0HdPagM6yyQFHDc L59njctY1VnSw== Message-ID: <17f897db-c1cc-4523-b88e-b8469765a21e@kernel.org> Date: Mon, 18 May 2026 14:28:15 -0400 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] Revert "NFSD: Defer sub-object cleanup in export put callbacks" To: Calum Mackay , misanjum@linux.ibm.com, jlayton@kernel.org, neil@brown.name, okorniev@redhat.com, Dai.Ngo@oracle.com, tom@talpey.com, Yang Erkun Cc: Chuck Lever , linux-nfs@vger.kernel.org, yi.zhang@huawei.com, chengzhihao1@huawei.com, lilingfeng3@huawei.com, yangerkun@huaweicloud.com References: <20260513024252.3681597-1-yangerkun@huawei.com> <177868131676.213195.3678046994150964706.b4-ty@b4> <484d4fc3-8f02-42d6-b5f0-891289dac177@oracle.com> From: Chuck Lever Content-Language: en-US Organization: kernel.org In-Reply-To: <484d4fc3-8f02-42d6-b5f0-891289dac177@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/18/26 12:57 PM, Calum Mackay wrote: > On 13/05/2026 3:09 pm, Chuck Lever wrote: >> From: Chuck Lever >> >> On Wed, 13 May 2026 10:42:52 +0800, Yang Erkun wrote: >>> This reverts commit 48db892356d6cb80f6942885545de4a6dd8d2a29. >>> >>> Commit 48db892356d6 ("NFSD: Defer sub-object cleanup in export put >>> callbacks") describes an issue where calling svc_export_put, path_put, >>> and auth_domain_put directly can cause use-after-free (UAF) errors when >>> accessing ex_path or ex_client->name. But after discussion in [1], it >>> seems cannot happen and either will introduce a gression that was >>> already fixed by commit 69d803c40ede ("nfsd: Revert "nfsd: release >>> svc_expkey/svc_export with rcu_work""). Therefore, reverting commit >>> 48db892356d6 ("NFSD: Defer sub-object cleanup in export put callbacks") >>> is necessary to fix this regression. >>> >>> [...] >> >> Applied to nfsd-testing with an expanded commit message to preserve >> the context of our discussions. > > Testing looks good, Chuck: no crashes, sosreport no longer hangs, no > seq_file warnings. > > Tested-by: Alexandr Alexandrov Thanks. Marked in my private tree, will appear in nfsd-testing on the next push. >> [1/1] Revert "NFSD: Defer sub-object cleanup in export put callbacks" >>        commit: ef4e34669aa1a15d2f5ba86fd433fcac9aee81c9 >> >> -- >> Chuck Lever >> > > -- Chuck Lever