freebsd-dev/sys
Alan Somers 32fbc5d824 nfs: don't truncate directory cookies to 32-bits in the NFS server
In NFSv2, the directory cookie was 32-bits.  NFSv3 widened it to
64-bits and SVN r22521 widened the corresponding argument in
VOP_READDIR, but FreeBSD's NFS server continued to treat the cookies as
32-bits, and 0-extended to fill the field on the wire.  Nobody ever
noticed, because every in-tree file system generates cookies that fit
comfortably within 32-bits.

Also, have better type safety for txdr_hyper.  Turn it into an inline
function that type-checks its arguments.  Prevents warnings about
shift-count-overflow.

PR:		260375
MFC after:	2 weeks
Reviewed by:	rmacklem
Differential Revision: https://reviews.freebsd.org/D33404
2021-12-15 20:54:57 -07:00
..
amd64 Remove references to PCMCIA 2021-12-14 15:27:47 -07:00
arm Fix a set but not used warning in the arm GIC driver 2021-12-10 13:29:11 +00:00
arm64 rk_i2c_fill_tx: fixup previous commit 2021-12-15 13:21:16 +02:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam mmc_sim: fix setting of the mutex name 2021-12-15 13:42:02 +02:00
cddl stand/zfs: Mark pcount as unused 2021-12-15 19:47:48 -07:00
compat Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
conf pccard: Remove more of the PC Card infrastructure 2021-12-14 15:27:47 -07:00
contrib ipfilter fil.c: Fix two typos in comments 2021-12-15 08:09:39 -08:00
crypto Add accelerated arm64 sha512 to libmd 2021-12-13 15:33:22 +00:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
dev xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
dts add rk3328 overlay for enabling analog sound 2021-11-13 11:09:23 +02:00
fs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
gdb
geom Revert "geom_bde: plug set-but-not-used vars" 2021-12-09 19:23:05 +00:00
gnu
i386 Remove references to PCMCIA 2021-12-14 15:27:47 -07:00
isa
kern imgact_elf: Disable the stack gap for now 2021-12-14 16:19:40 -05:00
kgssapi
libkern libkern: remove bcopy 2021-08-24 11:24:07 +00:00
mips busdma: Remove outdated comments about Giant. 2021-12-09 22:18:53 -05:00
modules pccard: Remove more of the PC Card infrastructure 2021-12-14 15:27:47 -07:00
net Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
net80211 net80211(4): Fix a typo in a sysctl description 2021-12-04 12:09:17 +01:00
netgraph ng_pppoe: plug set-but-not-used vars 2021-12-15 12:32:40 +00:00
netinet tcp: Rack in a rare case we can get stuck sending a very small amount. 2021-12-15 09:41:33 -05:00
netinet6 inpcb: use locked variant of prison_check_ip*() 2021-12-14 09:38:52 -08:00
netipsec ipsec: fix a logic error in key_do_getnewspi 2021-12-14 19:30:42 +00:00
netpfil dummynet: drop unused definitions 2021-12-14 13:01:15 +01:00
netsmb
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
nfsclient
nfsserver
nlm
ofed socket: De-duplicate SBLOCKWAIT() definitions 2021-09-14 09:01:32 -04:00
opencrypto cryptosoft: Don't treat CRYPTO_NULL_HMAC as an hmac algorithm. 2021-12-15 13:33:15 -08:00
powerpc powerpc64: fix the calculation of Maxmem 2021-12-15 08:49:47 -03:00
riscv riscv: Fix PLIC -Wunused-but-set-variable warnings 2021-12-10 04:51:32 +00:00
rpc mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-16 13:31:04 -05:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys sys/queue.h: move trashing from SLIST_REMOVE to REMOVE_AFTER, REMOVE_HEAD 2021-12-15 13:28:33 +02:00
teken
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools syscalls: add COMPAT13 2021-12-09 02:48:32 +02:00
ufs Revert "ffs(3): Fix a typo in a sysctl description" 2021-12-05 13:45:47 +01:00
vm vm_fault: Fix vm_fault_populate()'s handling of VM_FAULT_WIRE 2021-12-14 15:10:46 -05:00
x86 xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
xdr
xen Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
Makefile