freebsd-dev/sys
Mark Johnston 300cfb96fc file: Make fget*() and getvnode*() consistent about initializing *fpp
Most fget*() functions initialize the output parameter to NULL.  Make
the externally visible interface behave consistently, and make
fget_unlocked_seq() private to kern_descrip.c.

This fixes at least one bug in a consumer, _filemon_wrapper_openat(),
which assumes that getvnode() sets the output file pointer to NULL upon
an error.

Reported by:	syzbot+01c0459408f896a5933a@syzkaller.appspotmail.com
Reviewed by:	kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34190
2022-02-08 12:40:41 -05:00
..
amd64 Extend the VMM stats interface to support a dynamic count of statistics. 2022-02-07 14:11:10 -08:00
arm tegra: Fix a common typo in source code comments 2022-02-06 17:31:05 +01:00
arm64 Stop single stepping in signal handers on arm64 2022-02-07 15:03:23 +00:00
bsm
cam cfiscsi_done: Free the dummy PDU earlier. 2022-02-07 12:55:08 -08:00
cddl Teach DTrace about BTI on arm64 2022-01-19 12:07:35 +00:00
compat linuxkpi: Add parentheses to pacify -Wparentheses warnings from GCC. 2022-02-07 13:43:22 -08:00
conf Stop adding -Wredundant-decls to CWARNFLAGS. 2022-02-07 12:47:51 -08:00
contrib xen: import Xen 4.16 public headers in sys/contrib/ 2022-02-07 10:11:56 +01:00
crypto crypto: Add an API supporting curve25519. 2022-01-24 15:27:39 -08:00
ddb ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
dev cxgbei: Replace worker thread pools with per-connection kthreads. 2022-02-07 16:20:40 -08:00
dts dts: add IPQ4018/IPQ4019 ethernet MAC and ethernet switch definitions 2022-02-03 21:26:45 -08:00
fs fs: fix a few common typos in source code comments 2022-02-06 13:48:31 +01:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom In GEOM debugging output, show consumer for cloned and duplicated bio's. 2022-01-30 17:21:13 -08:00
gnu
i386 xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
isa sys/isa: Use C99 fixed-width integer types. 2021-12-28 09:41:57 -08:00
kern file: Make fget*() and getvnode*() consistent about initializing *fpp 2022-02-08 12:40:41 -05:00
kgssapi
libkern sys/libkern: Use C99 fixed-width integer types. 2021-12-28 09:42:11 -08:00
modules Stop adding -Wredundant-decls to CWARNFLAGS. 2022-02-07 12:47:51 -08:00
net if_vxlan(4): Allow netmap_generic to intercept RX packets. 2022-02-06 15:27:46 +03:00
net80211 net80211: ieee80211_dump_node() cosmetics 2022-01-17 00:01:46 +00:00
netgraph domains: make domain_init() initialize only global state 2022-01-03 10:15:22 -08:00
netinet netinet: simplify RSS ifdef statements 2022-02-07 19:22:03 -07:00
netinet6 Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues 2022-01-27 10:34:34 -05:00
netipsec IPsec: Use protocol-specific malloc types instead of M_XDATA. 2022-01-24 15:27:39 -08:00
netpfil dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +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 sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed domains: init with standard SYSINIT(9) or VNET_SYSINIT() 2022-01-03 10:15:22 -08:00
opencrypto opencrypto/xform_*.h: Trim scope of included headers. 2022-01-25 15:21:22 -08:00
powerpc Stop adding -Wredundant-decls to CWARNFLAGS. 2022-02-07 12:47:51 -08:00
riscv arm64, riscv: handle RB_KDB 2022-02-01 13:59:54 -04:00
rpc sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys file: Make fget*() and getvnode*() consistent about initializing *fpp 2022-02-08 12:40:41 -05:00
teken
tests
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs ffs_read(): lock buffers after snaplk with LK_NOWITNESS 2022-02-06 03:26:22 +02:00
vm pbuf_ctor(): lock the buffer with LK_NOWAIT 2022-02-07 10:05:20 -09:00
x86 xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen xen: remove public headers in sys/xen/interface 2022-02-07 10:12:34 +01:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00