linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Fix unwanted memory overwrites
@ 2025-10-06 18:45 Chuck Lever
  2025-10-06 18:45 ` [PATCH v1 1/2] NFSD: Do not cache failed SEQUENCE operations Chuck Lever
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chuck Lever @ 2025-10-06 18:45 UTC (permalink / raw)
  To: NeilBrown, Jeff Layton, Olga Kornievskaia, Dai Ngo, Tom Talpey
  Cc: linux-nfs, Chuck Lever

From: Chuck Lever <chuck.lever@oracle.com>

<rtm@csail.mit.edu> reported some memory overwrites that can be
triggered by NFS client input. I was able to observe overwrites
by enabling KASAN and running his reproducer [1].

NFSD caches COMPOUNDs containing only a single SEQUENCE operation
whether the client requests it to or not, in order to work around a
deficiency in the NFSv4.1 protocol. However, the predicate that
identifies solo SEQUENCE operations was incorrect.

(Based on my reading of RFC 8881, I'm not sure NFSD should cache
solo SEQUENCE operations that fail, but that is perhaps for a
different day).

Chuck Lever (2):
  NFSD: Do not cache failed SEQUENCE operations
  NFSD: Skip close replay processing if XDR encoding fails

 fs/nfsd/nfs4xdr.c | 3 +--
 fs/nfsd/xdr4.h    | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.51.0

[1] http://www.rtmrtm.org/rtm/nfsd185f.c

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-07 14:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 18:45 [PATCH v1 0/2] Fix unwanted memory overwrites Chuck Lever
2025-10-06 18:45 ` [PATCH v1 1/2] NFSD: Do not cache failed SEQUENCE operations Chuck Lever
2025-10-06 18:45 ` [PATCH v1 2/2] NFSD: Skip close replay processing if XDR encoding fails Chuck Lever
2025-10-07 14:18   ` Jeff Layton
2025-10-07 14:24     ` Chuck Lever
2025-10-07 12:45 ` [PATCH v1 0/2] Fix unwanted memory overwrites Tom Talpey
2025-10-07 13:16   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).