linux/fs/lockd
Linus Torvalds 73e3f07100 NFS client updates for Linux 7.3
Highlights include:
 
 Stable fixes:
 - SunRPC: Use-after-free fixes for the sunrpc client code
 - NFSv4: Delegation hash table leak
 - lockd: NULL dereference on lockowner allocation failure
 - SunRPC: Fix a handshake completion race in the TLS code
 - NFSv4.1/pNFS: Fix an error sign checking issue when deciding whether
   the layout is still in use, or can be returned.
 - NFSv4.1: Fix a layout segment leak in pnfs_layout_process()
 
 Other bugfixes:
 - SunRPC: Fix a missing NULL check in the rpcbind client
 - SunRPC: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE
 - NFSv4: nfs_inode_set_delegation() error paths should return the delegation
 - NFSv4: Use clear_and_wake_up_bit() in nfs_clear_invalid_mapping() and
   the pNFS code.
 - NFSv4: Fix the nfs4_alloc_client() error paths to free the IDR
   allocation
 - NFS: fix folio dereference before NULL check in nfs_inode_remove_request()
 - NFS: Fix delayed delegation return
 - NFSv4: Fix another state manager race with umount
 - pNFS/blocklayout: Fix device leaks on parse failure
 - pNFS: Avoid cancelling in-flight I/O during a layout recall if the
   server doesn't require it
 - NFSv4/flexfiles: report cancelled I/O as a layout error
 - NFSv4/flexfiles: fix NULL dereference for NFSv4.0 data servers
 - NFSv4: Fix incorrect argument passed to nfs4_delete_lease()
 - NFSv3: Fix several symlink issues resulting from nfs_atomic_open_v23()
 - NFSv4.1: Fix an uninitialised variable issue in the callback code
 - NFSv4.2: fix LAYOUTSTATS send buffer exhaustion
 
 Features and cleanups:
 - NFSv4.2: Allow the server to specify that file data may not be cached
 - NFS/localio: optimise I/O submission when when not doing memory reclaim
 - NFS/localio: Remove duplicate wait code in nfs_local_commit
 - NFSv4/flexfiles: support loosely coupled NFSv4.x data servers
 - NFSv4/pnfs: key the data server cache on the NFS version
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQR8xgHcVzJNfOYElJo6EXfx2a6V0QUCao9SMwAKCRA6EXfx2a6V
 0VxpAP9KSFbBnHU/DTq6zJ0xNeatZLBssrdkD1aPbHGsJPXukgEAgmo9tk0AgdJo
 gxPeuVJIepg9PEIxI6jd6TxwpUV8NQI=
 =k59o
 -----END PGP SIGNATURE-----

Merge tag 'nfs-for-7.3-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs

Pull NFS client updates from Trond Myklebust:
 "Highlights include:

  Stable fixes:
   - Use-after-free fixes for the sunrpc client code
   - Delegation hash table leak
   - NULL dereference on lockowner allocation failure
   - Fix a handshake completion race in the TLS code
   - Fix an error sign checking issue when deciding whether the pNFS
     layout is still in use, or can be returned
   - Fix a layout segment leak in pnfs_layout_process()

  Other bugfixes:
   - Fix a missing NULL check in the rpcbind client
   - annotate shared socket callbacks with READ_ONCE/WRITE_ONCE
   - nfs_inode_set_delegation() error paths should return the delegation
   - Use clear_and_wake_up_bit() in nfs_clear_invalid_mapping() and the
     pNFS code.
   - Fix the nfs4_alloc_client() error paths to free the IDR allocation
   - fix folio dereference before NULL check in
     nfs_inode_remove_request()
   - Fix delayed delegation return
   - Fix another state manager race with umount
   - Fix device leaks on parse failure
   - Avoid cancelling in-flight I/O during a layout recall if the server
     doesn't require it
   - flexfiles: report cancelled I/O as a layout error
   - flexfiles: fix NULL dereference for NFSv4.0 data servers
   - Fix incorrect argument passed to nfs4_delete_lease()
   - Fix several symlink issues resulting from nfs_atomic_open_v23()
   - Fix an uninitialised variable issue in the NFSv4.1 callback code
   - fix LAYOUTSTATS send buffer exhaustion

  Features and cleanups:
   - NFSv4.2: Allow the server to specify that file data may not be cached
   - localio: optimise I/O submission when when not doing memory reclaim
   - localio: Remove duplicate wait code in nfs_local_commit
   - flexfiles: support loosely coupled NFSv4.x data servers
   - pNFS: key the data server cache on the NFS version"

* tag 'nfs-for-7.3-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (33 commits)
  NFSv4.1: fix layout segment leak on the pnfs_layout_process() forget path
  NFSv4/pnfs: key the data server cache on the NFS version
  NFSv4.2: fix LAYOUTSTATS send buffer exhaustion
  pNFS: Fix EBUSY check in pnfs_layout_need_return
  NFSv4.1: zero referring call lists before decoding
  nfs: fix ENXIO on O_CREAT open of existing symlink over NFSv3
  SUNRPC: wait for in-flight client TLS handshake callback
  NFSv4: Fix incorrect argument passed to nfs4_delete_lease() in nfs4_add_lease()
  lockd: fix NULL dereference on lockowner allocation failure
  NFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails
  NFSv4/flexfiles: support loosely coupled data servers
  NFSv4/flexfiles: fix NULL dereference for NFSv4.0 data servers
  NFSv4: pin the superblock for active state owners
  sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir
  NFS/localio: issue commit inline when not in a memory-reclaim context
  NFS/localio: remove dead FLUSH_SYNC handling from nfs_local_commit
  NFS/localio: issue IO inline when not in a memory-reclaim context
  NFS: Fix delayed delegation return list handling
  NFS: Verify symlink inode before caching target
  NFS: fix folio dereference before NULL check in nfs_inode_remove_request()
  ...
2026-08-26 15:09:21 -07:00
..
clnt4xdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
clntlock.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
clntproc.c lockd: fix NULL dereference on lockowner allocation failure 2026-08-17 09:02:08 -07:00
clntxdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
host.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
lockd.h lockd: fix swapped arguments in nlmsvc_match_ip() 2026-08-10 09:54:35 -04:00
Makefile lockd: Remove dead code from fs/lockd/xdr.c 2026-06-09 16:32:59 -04:00
mon.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
netlink.c tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netlink.h tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netns.h lockd: add netlink control interface 2025-03-10 09:10:53 -04:00
nlm.h lockd: Make linux/lockd/nlm.h an internal header 2026-03-29 21:25:09 -04:00
nlm3xdr_gen.c xdrgen: Share void RPC procedure handlers across programs 2026-08-10 09:54:35 -04:00
nlm3xdr_gen.h xdrgen: Share void RPC procedure handlers across programs 2026-08-10 09:54:35 -04:00
nlm4xdr_gen.c xdrgen: Share void RPC procedure handlers across programs 2026-08-10 09:54:35 -04:00
nlm4xdr_gen.h xdrgen: Share void RPC procedure handlers across programs 2026-08-10 09:54:35 -04:00
procfs.c
procfs.h
share.h lockd: preserve multiple NLM_SHARE grants from the same owner 2026-08-10 09:54:35 -04:00
svc.c lockd, nfsd: RCU-protect nlmsvc_ops dispatch 2026-08-10 09:54:35 -04:00
svc4proc.c sunrpc: remove unused svc_version vs_count field 2026-08-10 09:54:35 -04:00
svclock.c lockd: Use "%*phN" to dprintk() a cookie 2026-08-10 09:54:35 -04:00
svcproc.c sunrpc: remove unused svc_version vs_count field 2026-08-10 09:54:35 -04:00
svcshare.c lockd: preserve multiple NLM_SHARE grants from the same owner 2026-08-10 09:54:35 -04:00
svcsubs.c lockd: fix swapped arguments in nlmsvc_match_ip() 2026-08-10 09:54:35 -04:00
trace.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
trace.h lockd: Use xdrgen XDR functions for the NLMv3 GRANTED procedure 2026-06-09 16:32:59 -04:00
xdr.h lockd: Remove dead code from fs/lockd/xdr.c 2026-06-09 16:32:59 -04:00