linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] NFSD size, offset, and count sanity
@ 2022-01-31 18:24 Chuck Lever
  2022-01-31 18:24 ` [PATCH v2 1/5] NFSD: Fix ia_size underflow Chuck Lever
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Chuck Lever @ 2022-01-31 18:24 UTC (permalink / raw)
  To: linux-nfs, linux-fsdevel

Dan Aloni reported a problem with the way NFSD's READ implementation
deals with the very upper end of file sizes, and I got interested in
how some of the other operations handled it. I found some issues,
and have started a (growing) pile of patches to deal with them.

Since at least the SETATTR case appears to cause a crash on some
filesystems, I think several of these are 5.17-rc fodder (i.e.,
priority bug fixes). Dan's still working on the READ issue.

Changes since RFC:
- Series reordered so priority fixes come first
- Setattr size check is now in a common function
- Patch descriptions clarified

---

Chuck Lever (5):
      NFSD: Fix ia_size underflow
      NFSD: Fix NFSv3 SETATTR/CREATE's handling of large file sizes
      NFSD: Clamp WRITE offsets
      NFSD: COMMIT operations must not return NFS?ERR_INVAL
      NFSD: Deprecate NFS_OFFSET_MAX


 fs/nfsd/nfs3proc.c  | 21 ++++++++++++-----
 fs/nfsd/nfs3xdr.c   |  4 ++--
 fs/nfsd/nfs4proc.c  |  5 ++--
 fs/nfsd/nfs4xdr.c   |  2 +-
 fs/nfsd/vfs.c       | 57 +++++++++++++++++++++++++++++++--------------
 fs/nfsd/vfs.h       |  4 ++--
 include/linux/nfs.h |  8 -------
 7 files changed, 63 insertions(+), 38 deletions(-)

--
Chuck Lever


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

end of thread, other threads:[~2022-01-31 19:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31 18:24 [PATCH v2 0/5] NFSD size, offset, and count sanity Chuck Lever
2022-01-31 18:24 ` [PATCH v2 1/5] NFSD: Fix ia_size underflow Chuck Lever
2022-01-31 18:24 ` [PATCH v2 2/5] NFSD: Fix NFSv3 SETATTR/CREATE's handling of large file sizes Chuck Lever
2022-01-31 18:37   ` Trond Myklebust
2022-01-31 18:47     ` Trond Myklebust
2022-01-31 19:04       ` Chuck Lever III
2022-01-31 19:14         ` Trond Myklebust
2022-01-31 18:49     ` Chuck Lever III
2022-01-31 18:58       ` Trond Myklebust
2022-01-31 19:09         ` Chuck Lever III
2022-01-31 18:24 ` [PATCH v2 3/5] NFSD: Clamp WRITE offsets Chuck Lever
2022-01-31 18:25 ` [PATCH v2 4/5] NFSD: COMMIT operations must not return NFS?ERR_INVAL Chuck Lever
2022-01-31 18:25 ` [PATCH v2 5/5] NFSD: Deprecate NFS_OFFSET_MAX 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).