opnsense-src/sys/fs/nfsserver
Rick Macklem 9cd3860c10 nfsd: Fix slow leaks of NAMEI buffers
Commit 5b5b7e2ca2 changed namei()s behaviour such that it
does not free the NAMEI buffer unless returning an error.

The nfsd was not fixed for this.  Fortunately, the only
leak would be one NAMEI buffer each time mountd(8) reloads
the exports.  (There were also leaks in the pNFS server
configuration, but almost no one uses it.)

This patch fixes the leaks by adding NDFREE_PNBUF() macros
in the appropriate places.

MFC after:	2 weeks
Discussed with:	kib
Fixes:	5b5b7e2ca2 ("vfs: always retain path buffer after lookup")
2025-08-15 12:11:08 -07:00
..
nfs_fha_new.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfs_fha_new.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
nfs_nfsdcache.c Internal scheduling priorities: Always use symbolic ones 2025-06-17 22:08:02 -04:00
nfs_nfsdkrpc.c nfsserver: Default to nfs_reserved_port_only="YES" 2024-04-23 12:54:46 -04:00
nfs_nfsdport.c nfsd: Fix slow leaks of NAMEI buffers 2025-08-15 12:11:08 -07:00
nfs_nfsdserv.c nfsv4: Add support for the NFSv4.2 Clone operation 2025-08-13 12:35:59 -07:00
nfs_nfsdsocket.c nfsv4: Add support for the NFSv4.2 Clone operation 2025-08-13 12:35:59 -07:00
nfs_nfsdstate.c nfsd: Fix slow leaks of NAMEI buffers 2025-08-15 12:11:08 -07:00
nfs_nfsdsubs.c nfsv4: Add support to NFSv4 for named attributes 2025-05-05 16:06:48 -07:00