freebsd-dev/sys/fs/nfsclient
Rick Macklem 7d9dc91a99 nfscl: Fix the NFSv4.0 mount so that it does not crash
Commit efe58855f3 modifies IN_LOOPBACK() so that it uses a VNET
variable. Without this patch, nfscl_getmyip() uses IN_LOOPBACK()
when the VNET is not set and crashes the system.
nfscl_getmyip() is only called when a NFSv4.0 (not NFSv4.1/4.2)
mount is done.

This patch re-organizes nfscl_getmyip() so that IN_LOOPBACK()
is before the CURVENT_RESTORE() macro, to avoid the crashes.

Reviewed by:	karels, zlei.huang_gmail.com
Differential Revision:	https://reviews.freebsd.org/D37008
2022-10-15 08:38:07 -07:00
..
nfs_clbio.c filesystems: return error from vn_rlimit_fsize() instead of EFBIG 2022-09-24 19:41:14 +03:00
nfs_clcomsubs.c nfsclient: Fix a typos in source code comments 2022-03-27 19:27:05 +02:00
nfs_clkdtrace.c Adjust dtnfsclient_unload() definition to avoid clang 15 warning 2022-07-19 20:41:24 +02:00
nfs_clkrpc.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs_clnfsiod.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs_clnode.c nfscl: Cache an open stateid for the "oneopenown" mount option 2021-07-28 15:48:27 -07:00
nfs_clport.c nfscl: Fix the NFSv4.0 mount so that it does not crash 2022-10-15 08:38:07 -07:00
nfs_clrpcops.c nfscl: Fix CreateSession for an established ClientID 2022-07-11 16:50:34 -07:00
nfs_clstate.c nfscl: Move nfsrpc_destroysession into nfscommon 2022-07-09 08:02:14 -07:00
nfs_clsubs.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
nfs_clvfsops.c nfscl: Allow "nolockd" to work for NFSv4 mounts 2022-09-04 13:09:33 -07:00
nfs_clvnops.c nfs_clvnops.c: Fix access to v_mount when vnode unlocked 2022-10-01 16:30:07 -07:00
nfs_kdtrace.h fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs.h nfscl: Add support for a NFSv4 AppendWrite RPC 2022-04-30 13:49:23 -07:00
nfsmount.h nfscl: Add a VOP_DEALLOCATE() for the NFSv4.2 client 2021-08-27 18:31:36 -07:00
nfsnode.h PR#259071 provides a test program that fails for the NFS client. 2021-10-30 16:35:02 -07:00
nlminfo.h