From mboxrd@z Thu Jan 1 00:00:00 1970 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 844C81E0DD8 for ; Mon, 20 Oct 2025 08:07:18 +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=1760947638; cv=none; b=mGZoOWLM/gPyIeZ+OllkXJYAofRHq4oCD6izInyY1t/k7VXW68kgX9n9d0Y2+0IKqqyDUlqH9xoO7nX5pen/dmgmKPGS21Makl278/+oKKWSo7r911ZZFzH2gpb9YPM9xdJhspW1IPkoM9+mGDxPRMEMnxhcUXL/EftCEtQMb4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760947638; c=relaxed/simple; bh=+t2C3rVlpr2WrpDi3Zp6VrQWTN9H0ua29WjMsyujO5o=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=kivLrssvZxj1C/UIydRT45u/cj9noqYRJF+j5MxSphAfsY7+trz4ajZOlBOl8K7IF+4FiBZBbioWJyFj17XMX7c+VFmZEWzWLxUwZla//ZUMw4oMXhIpnXs5aHJ2LFAb+IbGzpPkSIHyNkxTkAeTbpgqJrURTx0vKI41aMLDO7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yPQ5cYXf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yPQ5cYXf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F20E3C4CEF9; Mon, 20 Oct 2025 08:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760947638; bh=+t2C3rVlpr2WrpDi3Zp6VrQWTN9H0ua29WjMsyujO5o=; h=Subject:To:Cc:From:Date:From; b=yPQ5cYXf3VgD9O7Y+0AcYJ2db3ekGDSlwBkHm/prDpoj4fpiphjp/4YrZ9fXNWhvu 9ijxM5zorcBrnglqJSqYZPwn0uywBon1eQcoNLINP9Rc4i0C449i6DT6PwCRqOT4GM kIh4TwiTn3K5EOURnYCcUq7fioo6o5jS9B8GFgp8= Subject: FAILED: patch "[PATCH] NFSD: Define a proc_layoutcommit for the FlexFiles layout" failed to apply to 6.6-stable tree To: chuck.lever@oracle.com,loghyr@hammerspace.com,rtm@csail.mit.edu Cc: From: Date: Mon, 20 Oct 2025 10:07:07 +0200 Message-ID: <2025102007-unashamed-manmade-2cbd@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 6.6-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-6.6.y git checkout FETCH_HEAD git cherry-pick -x 4b47a8601b71ad98833b447d465592d847b4dc77 # git commit -s git send-email --to '' --in-reply-to '2025102007-unashamed-manmade-2cbd@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 4b47a8601b71ad98833b447d465592d847b4dc77 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 11 Sep 2025 11:12:06 -0400 Subject: [PATCH] NFSD: Define a proc_layoutcommit for the FlexFiles layout type Avoid a crash if a pNFS client should happen to send a LAYOUTCOMMIT operation on a FlexFiles layout. Reported-by: Robert Morris Closes: https://lore.kernel.org/linux-nfs/152f99b2-ba35-4dec-93a9-4690e625dccd@oracle.com/T/#t Cc: Thomas Haynes Cc: stable@vger.kernel.org Fixes: 9b9960a0ca47 ("nfsd: Add a super simple flex file server") Signed-off-by: Chuck Lever diff --git a/fs/nfsd/flexfilelayout.c b/fs/nfsd/flexfilelayout.c index c318cf74e388..0f1a35400cd5 100644 --- a/fs/nfsd/flexfilelayout.c +++ b/fs/nfsd/flexfilelayout.c @@ -125,6 +125,13 @@ nfsd4_ff_proc_getdeviceinfo(struct super_block *sb, struct svc_rqst *rqstp, return 0; } +static __be32 +nfsd4_ff_proc_layoutcommit(struct inode *inode, struct svc_rqst *rqstp, + struct nfsd4_layoutcommit *lcp) +{ + return nfs_ok; +} + const struct nfsd4_layout_ops ff_layout_ops = { .notify_types = NOTIFY_DEVICEID4_DELETE | NOTIFY_DEVICEID4_CHANGE, @@ -133,4 +140,5 @@ const struct nfsd4_layout_ops ff_layout_ops = { .encode_getdeviceinfo = nfsd4_ff_encode_getdeviceinfo, .proc_layoutget = nfsd4_ff_proc_layoutget, .encode_layoutget = nfsd4_ff_encode_layoutget, + .proc_layoutcommit = nfsd4_ff_proc_layoutcommit, };