freebsd-dev/sys
Mark Johnston 36bd49ac4d fd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC}
These sysctls failed to return an error if the caller had provided too
short an output buffer.  Change them to return ENOMEM instead, to ensure
that callers can detect truncation in the face of a concurrently
changing fd table.

PR:		228432
Discussed with:	cem, jhb
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D15607
2021-12-17 13:10:23 -05:00
..
amd64 sysent: regenerate 2021-12-16 20:56:28 -06:00
arm Fix a set but not used warning in the arm GIC driver 2021-12-10 13:29:11 +00:00
arm64 sysent: regenerate 2021-12-16 20:56:28 -06:00
bsm
cam follow up to 18679ab1, actually change size of mmc_sim::name to 16 2021-12-17 13:24:53 +02:00
cddl dtrace: Disable getf() as it is broken on FreeBSD 2021-12-17 13:10:22 -05:00
compat Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
conf sysent: regenerate files every time 2021-12-16 20:56:28 -06:00
contrib zfs: merge openzfs/zfs@f291fa658 (master) into main 2021-12-16 14:38:34 +01:00
crypto aesni: Fix an out-of-bounds read in AES_GCM_decrypt() 2021-12-16 09:17:06 -05:00
ddb
dev qat: Address -Wunused-but-set-variable warnings 2021-12-17 13:10:22 -05:00
dts add rk3328 overlay for enabling analog sound 2021-11-13 11:09:23 +02:00
fs nfscl: Partially revert commit 867c27c23a 2021-12-16 14:30:37 -08:00
gdb
geom Revert "geom_bde: plug set-but-not-used vars" 2021-12-09 19:23:05 +00:00
gnu
i386 sysent: regenerate 2021-12-16 20:56:28 -06:00
isa
kern fd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC} 2021-12-17 13:10:23 -05:00
kgssapi
libkern
mips busdma: Remove outdated comments about Giant. 2021-12-09 22:18:53 -05:00
modules Sort libsodium sources by path in sys/modules/crypto/Makefile. 2021-12-16 13:47:03 -08:00
net pf: make if_pfsync.h self-contained 2021-12-17 12:38:35 +01: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 inpcb: don't leak the port zone in in_pcbinfo_destroy() 2021-12-16 15:15:02 -08:00
netinet6 netinet6: ip6_setpktopt() requires NET_EPOCH 2021-12-17 17:30:36 +01:00
netipsec crypto: Consistently use AES instead of Rijndael128 for the AES-CBC cipher. 2021-12-16 13:47:27 -08: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: Remove CBC handling from swcr_encdec. 2021-12-16 13:48: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: make filedesc.h self-contained 2021-12-17 12:38:35 +01:00
teken
tests
tools sysent: move away from allowing all compat options for other ABIs 2021-12-16 20:56:28 -06:00
ufs Change VOP_READDIR's cookies argument to a **uint64_t 2021-12-15 20:54:57 -07:00
vm Correct type size format error in KASSERT. 2021-12-16 13:48:58 -06: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