opnsense-src/sys/fs/nfsclient
Rick Macklem d7b69bb536 nfscl: Fix a crash when a readdir entry has nul in it
Commit 026cdaa3b3a9 added a check for a nul or "/" in a file
name in a readdir reply.  Unfortunately, the minimal testing
done on it did not detect a bug that can cause the client
to crash.

This patch fixes the code so that it does not crash.

Note that a NFS server will not normally return a file
name in a readdir reply that has a nul or "/" in it,
so the crash is unlikely.

PR:	283965

(cherry picked from commit f9f0a1d61c7b97c705246c747baec385e0592966)
2025-01-23 18:25:10 -08:00
..
nfs.h nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-30 18:06:36 -07:00
nfs_clbio.c nfs client comment typo fix 2024-05-21 05:45:59 +03:00
nfs_clcomsubs.c nfsclient: Propagate copyin() errors from nfsm_uiombuf() 2023-12-12 14:11:51 -05:00
nfs_clkdtrace.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs_clkrpc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs_clnfsiod.c nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-30 18:06:36 -07:00
nfs_clnode.c Add vnode_pager_clean_{a,}sync(9) 2024-01-18 02:51:33 +02:00
nfs_clport.c nfsclient: eliminate ncl_writebp() 2024-01-11 18:46:52 +02:00
nfs_clrpcops.c nfscl: Fix a crash when a readdir entry has nul in it 2025-01-23 18:25:10 -08:00
nfs_clstate.c nfscl: Add a check for VREG for delegations 2024-07-12 17:49:05 -07:00
nfs_clsubs.c nfscl: Add support for read delegations and atomic upgrade 2024-07-12 17:47:10 -07:00
nfs_clvfsops.c nfs: trivial typo fix 2024-10-29 16:33:33 -04:00
nfs_clvnops.c Revert "nfscl: Enable support for the Lookup+Open RPC" 2024-10-11 17:45:22 -07:00
nfs_kdtrace.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
nfsmount.h nfscl: Revert part of commit 196787f79e67 2024-04-27 17:35:22 -07:00
nfsnode.h nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-30 18:06:36 -07:00
nlminfo.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00