From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793818223; b=btksxhiLyh5VNMikYmQOjg7ifBmrxOIcQvVbw0VJuttfC7CLHKDKqQ1YqHWDKOmUhmue yJpbywOUAM8cwXRvzVbFZChCp1XqaMtEkekv+tvwHsiEqKkW9JTkmGbfhCdQQ5aw3kUn4 ACVO6I2OxgsADgb14nxz3CiGrQMr3NU2LFr6SklRtcFa8ZE/ckV+F4pityRjGtXbtAtyO XqcLikmiDU732IvOgJ3rP1EIHXoKFnjzzIz3miYvsza9PoBITTA7lxtQ7NluDdA4VJ8fd J0lqpv9IPCxzunAyirHyUBT+kDZ9YwNTJaXH+4MpKRnGcshp/PUi2esXueTktUPXCDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793818223; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=0zNYIJptNPd7ywAtyvGG6/ZMZfGJZ7V8S/65BpgoKEo=; b=QG6aMEtwCF16i0xGn16P76EqjdL+7v5qxchmav9KFjsnItHmNfVqzsK4FOM4MDp6O3N/ pJw/FxZ4M7Du0GKTHflqYJ+RHRM6MgDX9by1S1N9d7nyc0XNBqd1pu0K5zSxrZPDOFTQf Wg+/DkoPD+p3s9VzmvLPmagnWknqYJVIvo1yE7zkB6xCM7fN57dM4Y6anWzq5yfPfhOue fHPLtut6Dmf86Xa1/hzn/2Q5qezt4lOstorwGdeBTRwceedRuXQUaonGa0AqLaddiOc3e NYKvUhM0XWQjHsEhWY7wBiEuyfFxtIzge3no7q9tTXtDiojKOY0oM/UfGd31ly1i6bQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jnH+qNzi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 636D5606A338 for ; Wed, 4 Nov 2026 18:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jnH+qNzi Received: by smtp.kernel.org (Postfix) with ESMTPSA id 807371F00A18; Wed, 4 Nov 2026 18:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793818223; bh=0zNYIJptNPd7ywAtyvGG6/ZMZfGJZ7V8S/65BpgoKEo=; h=Subject:To:Cc:From:Date; b=jnH+qNziEvmGyEnhPnakpJP54gMeGjsGKwWpfcZ1pKe+9VojaklT2ZKEbxF/jn6Ja +uN8VtudrgWQKqGh2AK1JhvnWZWD6fYRnMa+DcUeE4xYKsh/aflAWtzU+0LU60xAFf OcyRTblO6qnbGcE5CzTRRcRDnWX2WQ5clX44iQL4= Subject: FAILED: patch "[PATCH] nfsd: don't offer flexfiles layouts when NFSv3 isn't being" failed to apply to 5.10-stable tree To: jlayton@kernel.org,cel@kernel.org,itsme@benjiwiebe.com Cc: From: Date: Wed, 04 Nov 2026 13:50:12 -0500 Message-ID: <2026110412-deodorize-departed-4d37@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y git checkout FETCH_HEAD git cherry-pick -x 5d28b2c920d9d9d3c45b41769342ad785eb372a7 # git commit -s git send-email --to '' --in-reply-to '2026110412-deodorize-departed-4d37@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 5d28b2c920d9d9d3c45b41769342ad785eb372a7 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 4 Sep 2026 12:11:37 -0400 Subject: [PATCH] nfsd: don't offer flexfiles layouts when NFSv3 isn't being served The flexfiles layout driver hands out a deviceinfo that names this server as an NFSv3 DS (flexfilelayout.c hardcodes da->version = 3). With v3 disabled, the client can't talk to the DS: it loops on v3 NULL calls that the server answers with PROG_MISMATCH, and I/O hangs in D state. Skip LAYOUT_FLEX_FILES in nfsd4_setup_layout_type() unless v3 is enabled. Reported-by: Benji Wiebe Closes: https://lore.kernel.org/linux-nfs/c734eeb8-8486-4491-bb4d-b9656cbaffbe@app.fastmail.com/ Fixes: 9b9960a0ca47 ("nfsd: Add a super simple flex file server") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Jeff Layton Link: https://patch.msgid.link/20260904-pnfs-ff-v1-1-5f502cf25401@kernel.org Signed-off-by: Chuck Lever diff --git a/fs/nfsd/nfs4layouts.c b/fs/nfsd/nfs4layouts.c index 4187202f9acc..12acb68cbc3b 100644 --- a/fs/nfsd/nfs4layouts.c +++ b/fs/nfsd/nfs4layouts.c @@ -128,10 +128,12 @@ nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp, void nfsd4_setup_layout_type(struct svc_export *exp) { + struct nfsd_net *nn = net_generic(exp->cd->net, nfsd_net_id); struct super_block *sb = exp->ex_path.mnt->mnt_sb; expfs_block_layouts_t block_supported = exportfs_layouts_supported(sb); - if (IS_ENABLED(CONFIG_NFSD_FLEXFILELAYOUT)) + if (IS_ENABLED(CONFIG_NFSD_FLEXFILELAYOUT) && + nfsd_vers(nn, 3, NFSD_TEST)) exp->ex_layout_types |= 1 << LAYOUT_FLEX_FILES; if (IS_ENABLED(CONFIG_NFSD_BLOCKLAYOUT) && (block_supported & EXPFS_BLOCK_IN_BAND_ID))