Centos-kernel-stream-9/fs/nfs
Benjamin Coddington 42fcb65f11 NFS: O_DIRECT writes must check and adjust the file length
JIRA: https://issues.redhat.com/browse/RHEL-87767

commit fcf857ee1958e9247298251f7615d0c76f1e9b38
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Sat Feb 1 14:59:02 2025 -0500

    NFS: O_DIRECT writes must check and adjust the file length

    While it is uncommon for delegations to be held while O_DIRECT writes
    are in progress, it is possible. The xfstests generic/647 and
    generic/729 both end up triggering that state, and end up failing due to
    the fact that the file size is not adjusted.

    Reported-by: Chuck Lever <chuck.lever@oracle.com>
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=219738
    Cc: stable@vger.kernel.org
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
2025-04-17 14:49:07 -04:00
..
blocklayout nfs/blocklayout: Limit repeat device registration on failure 2025-01-31 06:45:50 -05:00
filelayout nfs: remove dead code for the old swap over NFS implementation 2024-11-05 07:34:02 -05:00
flexfilelayout pnfs/flexfiles: retry getting layout segment for reads 2025-04-17 14:48:58 -04:00
Kconfig NFS: Don't enable NFS v2 by default 2024-11-05 07:33:57 -05:00
Makefile
cache_lib.c
cache_lib.h
callback.c nfsd: stop setting ->pg_stats for unused stats 2024-10-25 12:35:53 -04:00
callback.h NFSv4: Add CB_GETATTR support for delegated attributes 2024-11-05 07:33:58 -05:00
callback_proc.c pNFS: Add a flag argument to pnfs_destroy_layouts_byclid() 2024-11-05 07:34:00 -05:00
callback_xdr.c SUNRPC: Fix integer overflow in decode_rc_list() 2025-01-31 06:45:42 -05:00
client.c Merge: NFSv4: Prevent NULL-pointer dereference in nfs42_complete_copies() 2024-12-11 14:23:23 +00:00
delegation.c NFS: Avoid unnecessary rescanning of the per-server delegation list 2024-11-05 07:34:05 -05:00
delegation.h NFSv4: Delegreturn must set m/atime when they are delegated 2024-11-05 07:33:59 -05:00
dir.c NFSv4: Add a flags argument to the 'have_delegation' callback 2024-11-05 07:33:59 -05:00
direct.c NFS: O_DIRECT writes must check and adjust the file length 2025-04-17 14:49:07 -04:00
dns_resolve.c
dns_resolve.h
export.c
file.c nfs: remove dead code for the old swap over NFS implementation 2024-11-05 07:34:02 -05:00
fs_context.c NFS: make sure lock/nolock overriding local_lock mount option 2024-11-05 07:33:56 -05:00
fscache.c nfs: remove dead code for the old swap over NFS implementation 2024-11-05 07:34:02 -05:00
fscache.h nfs: convert to ctime accessor functions 2024-10-25 12:35:45 -04:00
getroot.c
inode.c nfs: avoid i_lock contention in nfs_clear_invalid_mapping 2025-01-31 06:45:43 -05:00
internal.h nfs: remove nfs_page_length 2024-11-05 07:34:04 -05:00
io.c
iostat.h
mount_clnt.c NFS: remove unused struct 'mnt_fhstatus' 2024-11-05 07:33:58 -05:00
namespace.c fs: port ->getattr() to pass mnt_idmap 2024-10-16 09:37:45 +08:00
netns.h nfs: make the rpc_stat per net namespace 2024-10-25 12:36:07 -04:00
nfs.h
nfs2super.c fs: nfs: add missing MODULE_DESCRIPTION() macros 2024-11-05 07:33:58 -05:00
nfs2xdr.c
nfs3_fs.h fs: port ->set_acl() to pass mnt_idmap 2024-10-16 10:45:12 +08:00
nfs3acl.c fs: port ->set_acl() to pass mnt_idmap 2024-10-16 10:45:12 +08:00
nfs3client.c NFS: enable nconnect for RDMA 2024-10-25 12:36:08 -04:00
nfs3proc.c Return the delegation when deleting sillyrenamed files 2024-11-05 07:34:00 -05:00
nfs3super.c fs: nfs: add missing MODULE_DESCRIPTION() macros 2024-11-05 07:33:58 -05:00
nfs3xdr.c
nfs4_fs.h NFSv4.1: constify the stateid argument in nfs41_test_stateid() 2024-11-05 07:34:00 -05:00
nfs4client.c NFS: enable nconnect for RDMA 2024-10-25 12:36:08 -04:00
nfs4file.c
nfs4getroot.c
nfs4idmap.c
nfs4idmap.h
nfs4namespace.c
nfs4proc.c NFSv4.0: Fix a use-after-free problem in the asynchronous open() 2025-01-06 15:23:03 -05:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c nfs: fix memory leak in error path of nfs4_do_reclaim 2025-01-31 06:45:41 -05:00
nfs4super.c fs: nfs: add missing MODULE_DESCRIPTION() macros 2024-11-05 07:33:58 -05:00
nfs4sysctl.c
nfs4trace.c nfs/blocklayout: SCSI layout trace points for reservation key reg/unreg 2024-11-05 07:34:01 -05:00
nfs4trace.h nfs/blocklayout: SCSI layout trace points for reservation key reg/unreg 2024-11-05 07:34:01 -05:00
nfs4xdr.c NFSv4: Clean up encode_nfs4_stateid() 2024-11-05 07:34:00 -05:00
nfs42.h
nfs42proc.c NFSv4: Prevent NULL-pointer dereference in nfs42_complete_copies() 2024-11-18 11:05:37 -05:00
nfs42xattr.c
nfs42xdr.c
nfsroot.c
nfstrace.c
nfstrace.h nfs: pass explicit offset/count to trace events 2024-08-06 09:32:38 -04:00
pagelist.c nfs: move nfs_wait_on_request to write.c 2024-11-05 07:34:02 -05:00
pnfs.c NFS/pnfs: Fix a live lock between recalled layouts and layoutget 2025-04-17 14:48:48 -04:00
pnfs.h nfs: remove the unused max_deviceinfo_size field from struct pnfs_layoutdriver_type 2024-11-05 07:34:04 -05:00
pnfs_dev.c nfs: remove the unused max_deviceinfo_size field from struct pnfs_layoutdriver_type 2024-11-05 07:34:04 -05:00
pnfs_nfs.c nfs: remove dead code for the old swap over NFS implementation 2024-11-05 07:34:02 -05:00
proc.c Return the delegation when deleting sillyrenamed files 2024-11-05 07:34:00 -05:00
read.c nfs: split nfs_read_folio 2024-11-05 07:34:04 -05:00
super.c NFSv3: only use NFS timeout for MOUNT when protocols are compatible 2025-01-31 06:45:42 -05:00
symlink.c nfs: propagate readlink errors in nfs_symlink_filler 2024-11-05 07:33:57 -05:00
sysctl.c
sysfs.c NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client() 2025-02-27 09:10:01 +00:00
sysfs.h
unlink.c Return the delegation when deleting sillyrenamed files 2024-11-05 07:34:00 -05:00
write.c Revert "nfs: don't reuse partially completed requests in nfs_lock_and_join_requests" 2025-01-31 06:45:44 -05:00