freebsd-dev/sys
Rick Macklem 9c2065607f Change the xid for client side krpc over UDP to a global value.
Without this patch, the xid used for the client side krpc requests over
UDP was initialized for each "connection". A "connection" for UDP is
rather sketchy and for the kernel NLM a new one is created every 2minutes.
A problem with client side interoperability with a Netapp server for the NLM
was reported and it is believed to be caused by reuse of the same xid.
Although this was never completely diagnosed by the reporter, I could see
how the same xid might get reused, since it is initialized to a value
based on the TOD clock every two minutes.
I suspect initializing the value for every "connection" was inherited from
userland library code, where having a global xid was not practical.
However, implementing a global "xid" for the kernel rpc is straightforward
and will ensure that an xid value is not reused for a long time. This
patch does that and is hoped it will fix the Netapp interoperability
problem.

PR:		245022
Reported by:	danny@cs.huji.ac.il
MFC after:	2 weeks
2020-04-05 21:08:17 +00:00
..
amd64 Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
arm Add the Cadence GEM ethernet driver to NOTES so that it gets built with 2020-04-02 19:06:05 +00:00
arm64 Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
bsm vfs: add realpathat syscall 2020-02-20 16:58:19 +00:00
cam sys/cam: remove doubled ;s 2020-03-20 16:15:45 +00:00
cddl MFOpenZFS: ZVOLs should not be allowed to have children 2020-03-25 15:56:18 +00:00
compat Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
conf powerpc/amigaone: Add CPLD driver for AmigaOne A1222 "Tabor" 2020-04-03 20:45:16 +00:00
contrib Merge ACPICA 20200326. 2020-03-27 00:29:33 +00:00
crypto Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
ddb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dev vt: avoid overrun when stride is not a multiple of bytes per pixel 2020-04-04 00:31:30 +00:00
dts arm: zynq: An SPI driver for Zynq platforms 2020-02-28 10:57:23 +00:00
fs Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom geom_journal: Only stop the switcher process if one was started. 2020-04-03 13:57:41 +00:00
gnu dts: Update our copy for arm, arm64 and riscv dts to Linux 5.5 2020-02-28 15:42:51 +00:00
i386 Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern ddb(4): show lockchain: Don't dereference LK_KERNPROC 2020-04-02 20:47:51 +00:00
kgssapi Set crp_ilen for crypto requests. 2020-04-01 17:09:21 +00:00
libkern Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mips Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
modules Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
net bridge: Change lists to CK_LIST as a peparation for epochification 2020-04-05 17:15:20 +00:00
net80211 Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
netgraph Fix mbuf handling in le advertize packet processing. 2020-04-02 09:15:31 +00:00
netinet Use interface fib for proxyarp checks. 2020-04-02 20:06:37 +00:00
netinet6 Ignore ND6 neighbor advertisement received for static link-layer entries. 2020-04-01 02:13:01 +00:00
netipsec Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
netpfil Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfsclient
nfsserver
nlm Remove stale FreeBSD_version checks. 2020-03-01 23:01:37 +00:00
ofed Fix for double unlock in ipoib. 2020-03-16 12:33:57 +00:00
opencrypto Avoid checking pointers that are never NULL. 2020-04-02 17:22:16 +00:00
powerpc powerpc/amigaone: Add CPLD driver for AmigaOne A1222 "Tabor" 2020-04-03 20:45:16 +00:00
riscv riscv/sifive: add FE310 Always-on driver 2020-04-02 00:33:15 +00:00
rpc Change the xid for client side krpc over UDP to a global value. 2020-04-05 21:08:17 +00:00
security mac_policy: Remove mac_policy_sx 2020-04-04 04:03:10 +00:00
sys Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs When shrinking the size of a directory it is sometimes necessary to 2020-04-03 20:43:25 +00:00
vm Remove dead code leftover from r331018. 2020-03-31 01:12:53 +00:00
x86 x86 tsc: fall back to CPUID if calibration results looks unbelievable. 2020-04-01 16:21:11 +00:00
xdr typo: s/impelmentation/implementation/. 2020-02-07 15:14:29 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00