1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-06 09:17:25 +00:00
freebsd/lib/libc
Mark Johnston 426682b05a bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is
attached to an interface, e.g., with BIOCSETIF.  Avoid dereferencing a
NULL pointer in filt_bpfwrite() if the BPF descriptor is not attached.

Reviewed by:	ae
Reported by:	syzbot+ae45d5166afe15a5a21d@syzkaller.appspotmail.com
Fixes:	ded77e0237 ("Allow the BPF to be select for write.")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32561
2021-10-26 10:00:39 -04:00
..
aarch64
amd64
arm
capability
compat-43
db
gdtoa
gen sysctl.3: sys/types.h no longer needs to be explicitly included 2021-10-19 21:22:57 -04:00
gmon
i386
iconv
include
inet
isc
locale
md
mips
nameser
net Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
nls
posix1e
powerpc
powerpc64
powerpcspe
quad
regex
resolv
riscv
rpc
secure libc: ssp: sprinkle around some __dead2 2021-09-30 23:55:17 -05:00
softfloat
stdio
stdlib
stdtime
string
sys bpf: Fix the write filter for detached descriptors 2021-10-26 10:00:39 -04:00
tests
uuid
x86
xdr
yp
libc_nossp.ldscript
libc.ldscript
Makefile
Makefile.depend
Makefile.depend.options
Versions.def