linux/fs/nfsd
Chuck Lever 785ec512af NFSD: Define a proc_layoutcommit for the FlexFiles layout type
[ Upstream commit 4b47a8601b ]

Avoid a crash if a pNFS client should happen to send a LAYOUTCOMMIT
operation on a FlexFiles layout.

Reported-by: Robert Morris <rtm@csail.mit.edu>
Closes: https://lore.kernel.org/linux-nfs/152f99b2-ba35-4dec-93a9-4690e625dccd@oracle.com/T/#t
Cc: Thomas Haynes <loghyr@hammerspace.com>
Cc: stable@vger.kernel.org
Fixes: 9b9960a0ca ("nfsd: Add a super simple flex file server")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-23 16:24:39 +02:00
..
acl.h NFSD: add posix ACLs to struct nfsd_attrs 2022-08-04 10:28:03 -04:00
auth.c nfsd: avoid pointless cred reference count bump 2024-12-02 11:25:14 +01:00
auth.h nfsd: Pass 'cred' instead of 'rqstp' to some functions. 2024-09-20 19:31:03 -04:00
blocklayout.c NFSD: Fix last write offset handling in layoutcommit 2025-10-23 16:24:39 +02:00
blocklayoutxdr.c NFSD: Implement large extent array support in pNFS 2025-10-23 16:24:39 +02:00
blocklayoutxdr.h NFSD: Implement large extent array support in pNFS 2025-10-23 16:24:39 +02:00
cache.h nfsd: don't allocate the versions array. 2024-09-20 19:29:23 -04:00
current_stateid.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
debugfs.c NFSD: Add experimental setting to disable the use of splice read 2025-05-11 19:48:24 -04:00
export.c nfsd: decouple the xprtsec policy check from check_nfsd_access() 2025-10-19 16:37:38 +02:00
export.h nfsd: decouple the xprtsec policy check from check_nfsd_access() 2025-10-19 16:37:38 +02:00
filecache.c NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support 2025-10-15 12:04:13 +02:00
filecache.h NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support 2025-10-15 12:04:13 +02:00
flexfilelayout.c NFSD: Define a proc_layoutcommit for the FlexFiles layout type 2025-10-23 16:24:39 +02:00
flexfilelayoutxdr.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-23 16:24:38 +02:00
flexfilelayoutxdr.h NFSD: Make @gdev parameter of ->encode_getdeviceinfo a const pointer 2023-10-16 12:44:29 -04:00
idmap.h nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx 2015-07-20 14:58:46 -04:00
Kconfig nfsd: use SHA-256 library API instead of crypto_shash API 2025-05-11 19:48:29 -04:00
localio.c nfs/localio: avoid issuing misaligned IO using O_DIRECT 2025-10-15 12:04:13 +02:00
lockd.c nfsd: nfserr_jukebox in nlm_fopen should lead to a retry 2025-10-19 16:37:39 +02:00
Makefile NFSD: Add /sys/kernel/debug/nfsd 2025-05-11 19:48:23 -04:00
netlink.c nfsd: new netlink ops to get/set server pool_mode 2024-07-08 14:10:05 -04:00
netlink.h nfsd: new netlink ops to get/set server pool_mode 2024-07-08 14:10:05 -04:00
netns.h NFS Client Updates for Linux 6.14 2025-01-28 14:23:46 -08:00
nfs2acl.c nfsd: clear acl_access/acl_default after releasing them 2025-02-02 11:31:45 -05:00
nfs3acl.c nfsd: clear acl_access/acl_default after releasing them 2025-02-02 11:31:45 -05:00
nfs3proc.c sunrpc: simplify xdr_init_encode_pages 2025-07-14 12:46:37 -04:00
nfs3xdr.c nfsd: Use lookup_one() rather than lookup_one_len() 2025-04-07 09:25:32 +02:00
nfs4acl.c NFSD: Remove unnecessary posix_acl_entry pointer initialization 2024-11-11 13:41:58 -05:00
nfs4callback.c NFSD: Avoid corruption of a referring call list 2025-06-12 20:37:32 -04:00
nfs4idmap.c nfsd: call cache_put if xdr_reserve_space returns NULL 2024-09-20 19:31:03 -04:00
nfs4layouts.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-23 16:24:38 +02:00
nfs4proc.c NFSD: Fix last write offset handling in layoutcommit 2025-10-23 16:24:39 +02:00
nfs4recover.c rpc_mkpipe_dentry(): saner calling conventions 2025-07-02 22:44:55 -04:00
nfs4state.c nfsd: fix timestamp updates in CB_GETATTR 2025-10-19 16:37:06 +02:00
nfs4xdr.c NFSD: Implement large extent array support in pNFS 2025-10-23 16:24:39 +02:00
nfs4xdr_gen.c nfsd: rename NFS4_SHARE_WANT_* constants to OPEN4_SHARE_ACCESS_WANT_* 2025-01-21 15:30:01 -05:00
nfs4xdr_gen.h nfsd: rename NFS4_SHARE_WANT_* constants to OPEN4_SHARE_ACCESS_WANT_* 2025-01-21 15:30:01 -05:00
nfscache.c nfsd: Simplify the allocation of slab caches in nfsd_drc_slab_create 2024-03-01 09:12:24 -05:00
nfsctl.c Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
nfsd.h nfsd: Use correct error code when decoding extents 2025-07-14 12:46:41 -04:00
nfsfh.c nfsd: decouple the xprtsec policy check from check_nfsd_access() 2025-10-19 16:37:38 +02:00
nfsfh.h NFSD: Simplify struct knfsd_fh 2025-07-14 12:46:47 -04:00
nfsproc.c sunrpc: simplify xdr_init_encode_pages 2025-07-14 12:46:37 -04:00
nfssvc.c NFSD: Add a "default" block size 2025-05-15 16:16:28 -04:00
nfsxdr.c NFSD: Remove NFSSVC_MAXBLKSIZE_V2 macro 2025-05-15 16:16:28 -04:00
pnfs.h NFSD: Implement large extent array support in pNFS 2025-10-23 16:24:39 +02:00
state.h nfsd: fix SETATTR updates for delegated timestamps 2025-10-19 16:37:06 +02:00
stats.c nfsd: don't ignore the return code of svc_proc_register() 2025-03-10 09:10:59 -04:00
stats.h nfsd: don't ignore the return code of svc_proc_register() 2025-03-10 09:10:59 -04:00
trace.c NFSD: Add SPDX header for fs/nfsd/trace.c 2020-11-30 13:00:24 -05:00
trace.h NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support 2025-10-15 12:04:13 +02:00
vfs.c nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change() 2025-10-19 16:37:06 +02:00
vfs.h NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support 2025-10-15 12:04:13 +02:00
xdr.h NFSD: prevent underflow in nfssvc_decode_writeargs() 2022-03-15 09:35:56 -04:00
xdr3.h nfsd: Fix NFSv3 atomicity bugs in nfsd_setattr() 2024-03-01 09:12:33 -05:00
xdr4.h NFSD: Implement large extent array support in pNFS 2025-10-23 16:24:39 +02:00
xdr4cb.h NFSD: Implement CB_SEQUENCE referring call lists 2025-05-11 19:48:20 -04:00