1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00
freebsd/sys
Kristof Provost 9ce40d321d bpf: Fix incorrect cleanup
Cleaning up a bpf_if is a two stage process. We first move it to the
bpf_freelist (in bpfdetach()) and only later do we actually free it (in
bpf_ifdetach()).

We cannot set the ifp->if_bpf to NULL from bpf_ifdetach() because it's
possible that the ifnet has already gone away, or that it has been assigned
a new bpf_if.
This can lead to a struct ifnet which is up, but has if_bpf set to NULL,
which will panic when we try to send the next packet.

Keep track of the pointer to the bpf_if (because it's not always
ifp->if_bpf), and NULL it immediately in bpfdetach().

PR:		213896
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D11782
2017-08-16 19:40:07 +00:00
..
amd64 x86: Add dynamic interrupt rebalancing 2017-08-16 18:48:53 +00:00
arm Add back the drivers for Dallas/Maxim ds13xx and Seiko S35390x now that 2017-08-14 00:12:14 +00:00
arm64 Add support for multiple GICv3 ITS devices. For this we add sc_irq_base 2017-08-13 18:54:51 +00:00
boot loader.efi: repace XXX with real comments in trap.c 2017-08-15 14:03:26 +00:00
bsm
cam Do not loose CCB flags after r320493. 2017-08-09 09:13:15 +00:00
cddl Fix some ZFS debugging messages 2017-08-15 15:20:04 +00:00
compat Add device resource management fields to struct device. 2017-08-16 06:33:48 +00:00
conf Quote ${MAKE} when passing in env in case it contains spaces. 2017-08-16 17:54:24 +00:00
contrib Fix matchcing of NATed ICMP queries (resolving NATed MTU discovery). 2017-08-05 00:28:42 +00:00
crypto
ddb
dev Undeprecate the CONS_CURSORTYPE ioctl. It was "deprecated" in 2001, 2017-08-16 10:59:37 +00:00
fs Bump the maximum file name length in pseudofs filesystems to 48. 2017-08-03 21:35:53 +00:00
gdb
geom When read requests are sent from a filesystem running above g_journal, 2017-08-13 18:09:22 +00:00
gnu
i386 x86: Add dynamic interrupt rebalancing 2017-08-16 18:48:53 +00:00
isa Stop calling atrtc_set() from the xen timer clock_settime() method. That 2017-08-11 19:02:11 +00:00
kern Fix compile error with option DEBUG. This is fallout from some long-ago 2017-08-16 16:51:55 +00:00
kgssapi
libkern x86/crc32_sse42.c: quiet unused function warning 2017-08-11 17:05:31 +00:00
mips Plug memory leak in arge_encap(). 2017-08-15 06:01:36 +00:00
modules Add support for Intel Software Guard Extensions (Intel SGX). 2017-08-16 10:38:06 +00:00
net bpf: Fix incorrect cleanup 2017-08-16 19:40:07 +00:00
net80211
netgraph
netinet Fix comment typo. 2017-08-09 10:46:34 +00:00
netinet6
netipsec Make user supplied data checks a bit stricter. 2017-08-09 19:58:38 +00:00
netpfil pf_get_sport(): Prevent possible endless loop when searching for an unused nat port 2017-08-08 21:09:26 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc
riscv Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
rpc
security
sparc64 Modify vm_page_grab_pages() to handle VM_ALLOC_NOWAIT. 2017-08-11 16:29:22 +00:00
sys Undeprecate the CONS_CURSORTYPE ioctl. It was "deprecated" in 2001, 2017-08-16 10:59:37 +00:00
teken
tests
tools
ufs Since the switch to GPT disk labels, fsck for UFS/FFS has been 2017-08-09 05:17:21 +00:00
vm Add OBJ_PG_DTOR flag to VM object. 2017-08-16 08:49:11 +00:00
x86 x86: Add dynamic interrupt rebalancing 2017-08-16 18:48:53 +00:00
xdr
xen
Makefile