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=1793818225; b=5As8OeQGxKQJ9Rj3BT9vA8vCrOw4JBsdCX7fYk3RcKIRnk6tfYk5LLDwQXcQ1159paQf ff4rppYxwJZTf9Fu9upGhbUzpkIz0tIseRnU8itvLx8zEWgXck1WowuByqoGCn6VaYNaD pf0TgzqBAyFdVwiC+L/9TX2tTrr8hbaG/q96RHljTdjThr5MnYJU9kD/Ev9k/Vk4EytRl tEY48JY18XOioPSw1i8WstH/b5QRToAswcTVNJAb76SiKbgGs4h1j39hWXTj3i3EIUIZa EuMaY+p8nah4XLugNMFF0zDYh6MP3Nbl/rAY4bIhBoupHsk+Voq/yxm2pDwv/A55XKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793818225; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=6Zv+BT3bE22RbVUhD5Qgxs2OoIkBURnybnRIVyokLkQ=; b=wbsFTFBOhUeuGH7Xkgtq83KSUb87hjeE6gT5oSpBQMXh10CzC5EZZUoYAnndmtVeWNFs PikTExLCrybzHOIlny/FqiyboRZFwq4UJY0SiNzqoYw8qu9DQ+JcqQ+y+53/R0o0OYtFn svtop32naV+XQTCW2/swfQAafidQRjgUPVQvOU37irH9tTUHflbzXYEA4Oy8NGARlnEU2 ry3bi+1It5NktZ5pQGK6ML1u6Sub+Wf0HGVxpW3NlQy5XyoF7pbR178D3I/PKRvl4o5Q8 lofdu5gY65W2Qmq7pisuRNrCf0FPcNy761auJPKUd9V/UheXaL1NS93yRlk2jjAfTMw== 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=tXvpOumX; 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 CA0416082BC5 for ; Wed, 4 Nov 2026 18:50:24 +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=tXvpOumX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69C901F00A16; Wed, 4 Nov 2026 18:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793818224; bh=6Zv+BT3bE22RbVUhD5Qgxs2OoIkBURnybnRIVyokLkQ=; h=Subject:To:Cc:From:Date; b=tXvpOumX/CLBKdv4a82dYMOrr4+Gwc3jtR4bLzCKFs9iTfyQVMBFZ5Iqkg5CdOeRN h0pfUbhPiPiffJyOhshSzhyPtFEZix1t2rf0ZFlagaz6VJzTgWlXJpauqWM53AFbtz vm5IdnUCfe59vLPybVA1kJ003lurbK2lUzqYJfyA= Subject: FAILED: patch "[PATCH] nfsd: don't offer flexfiles layouts when NFSv3 isn't being" failed to apply to 5.15-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-uncounted-lung-91bb@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.15-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.15.y git checkout FETCH_HEAD git cherry-pick -x 5d28b2c920d9d9d3c45b41769342ad785eb372a7 # git commit -s git send-email --to '' --in-reply-to '2026110412-uncounted-lung-91bb@gregkh' --subject-prefix 'PATCH 5.15.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))