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 A989F2E1F13 for ; Mon, 20 Oct 2025 08:07:52 +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=1760947672; cv=none; b=Mvbwk1pATiImfqvAbTPl+VuFCaaf9sPPkrLV9MEVxPgPkoF5+skQs6GHv0cFNBtAYQV/GmQSMxTfB2UzWGr6It9rh2tsPNLo+n4dnrA7/EnldyhCF0cD8y072Lb6b2r4zSlxKa27UqsAvqW8H2uE6Dc235Z3BM2Sid39kEmxNGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760947672; c=relaxed/simple; bh=eaAVzRIX4wnEiHRAuA7XvI8TkLH3afzuNhPc/xs3c84=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Dj/L5Ch3+uKI3O5/7/TJcdqjNQm35g+6Nyuw0TlYEq1VSUidRrMh5gmQzqq2maNsDpLpVvPCduZu/aowEVWRINRWfDLq7+cHQIA/Z5VTMyrInv/ue9SVM5DD5XVvCSUpSUK24XPDQ/j+L2vPsKqkXCftIWpFqcAAqirgtm77nSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2V+J6enk; 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="2V+J6enk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC0C7C4CEF9; Mon, 20 Oct 2025 08:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760947672; bh=eaAVzRIX4wnEiHRAuA7XvI8TkLH3afzuNhPc/xs3c84=; h=Subject:To:Cc:From:Date:From; b=2V+J6enkeFU7I9KkaUMN3D6Zn80ipti3nbG4CdAe5H+d4ZhjbIdBjJfV3to8CUVlW DJn16s2n91Nrej3tIVz1r1n0CyzdaCVhuIIhqVTY0DMRcpqN6c2IQNb8RXA8To89io Qod03GlbjShhYynVzdTg6kk2RIfzXq7RYZvw8KLY= Subject: FAILED: patch "[PATCH] NFSD: Define a proc_layoutcommit for the FlexFiles layout" failed to apply to 6.17-stable tree To: chuck.lever@oracle.com,loghyr@hammerspace.com,rtm@csail.mit.edu Cc: From: Date: Mon, 20 Oct 2025 10:07:49 +0200 Message-ID: <2025102049-comic-carpentry-952e@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.17-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.17.y git checkout FETCH_HEAD git cherry-pick -x 4b47a8601b71ad98833b447d465592d847b4dc77 # git commit -s git send-email --to '' --in-reply-to '2025102049-comic-carpentry-952e@gregkh' --subject-prefix 'PATCH 6.17.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, };