freebsd-nq/sys
Alexander V. Chernikov afa85850e7 Fix old panic when BPF consumer attaches to destroying interface.
'flags' field is added to the end of bpf_if structure. Currently the only
flag is BPFIF_FLAG_DYING which is set on bpf detach and checked by bpf_attachd()
Problem can be easily triggered on SMP stable/[89] by the following command (sort of):
'while true; do ifconfig vlan222 create vlan 222 vlandev em0 up ; tcpdump -pi vlan222 & ; ifconfig vlan222 destroy ; done'

Fix possible use-after-free when BPF detaches itself from interface, freeing bpf_bif memory,
while interface is still UP and there can be routes via this interface.
Freeing is now delayed till ifnet_departure_event is received via eventhandler(9) api.

Convert bpfd rwlock back to mutex due lack of performance gain (currently checking if packet
matches filter is done without holding bpfd lock and we have to acquire write lock if packet matches)

Approved by:      kib(mentor)
MFC in:            4 weeks
2012-05-21 22:17:29 +00:00
..
amd64 Replace all uses of the vm page queues lock by a r/w lock that is private 2012-05-20 18:25:45 +00:00
arm Be a little less magical, not that these values are likely to change... 2012-05-21 07:47:57 +00:00
boot Determine kernel load address dynamically from u-boot memory map. 2012-05-20 18:07:35 +00:00
bsm
cam Add two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI 2012-05-12 13:55:36 +00:00
cddl add a zfs spa_t change missed in r235329 2012-05-12 16:36:54 +00:00
compat - >500 static DTrace probes for the linuxulator 2012-05-05 19:42:38 +00:00
conf Migrate most of the beacon handling functions out to if_ath_beacon.c. 2012-05-20 04:14:29 +00:00
contrib Revert r234834 per luigi@ request. 2012-05-03 08:56:43 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Re-add 'ic' and properly wrap it in the SUPERG macro. 2012-05-21 17:51:26 +00:00
fs A problem with the NFSv4 server was reported by Andrew Leonard 2012-05-17 21:52:17 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Prevent removing of the last active component from a mirror. 2012-05-18 09:22:21 +00:00
gnu/fs Remove unused thread argument to vrecycle(). 2012-04-23 14:10:34 +00:00
i386 Remove cpususpend IDT vector for XEN. 2012-05-20 08:17:20 +00:00
ia64 Don't assume we have legacy PICs (i.e. 8259A in cascade) at the legacy 2012-05-04 23:16:29 +00:00
isa - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
kern Fix old panic when BPF consumer attaches to destroying interface. 2012-05-21 22:17:29 +00:00
kgssapi
libkern Use strcmp that I replaced by accident. 2012-05-21 02:45:47 +00:00
mips Enable the AR8316 switch on the routerstation pro board. 2012-05-19 20:11:18 +00:00
modules Migrate most of the beacon handling functions out to if_ath_beacon.c. 2012-05-20 04:14:29 +00:00
net Fix old panic when BPF consumer attaches to destroying interface. 2012-05-21 22:17:29 +00:00
net80211 Update HWMP Proactive code and mesh route flags. 2012-05-01 16:18:38 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Fix panic in ng_patch(4) caused by checksum flags being added to mbuf flags. 2012-04-22 17:00:52 +00:00
netinet Remove unused inclusion of curses.h 2012-05-19 05:14:24 +00:00
netinet6 Rewrite nd6_sysctl_{d,p}rlist() to avoid misaligned accesses to char arrays 2012-05-20 05:12:31 +00:00
netipsec Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
netipx Convert all users of IF_ADDR_LOCK to use new locking macros that specify 2012-01-05 19:00:36 +00:00
netnatm
netncp
netsmb Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
nfs Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
nfsclient PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsserver Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, 2011-12-15 02:26:53 +00:00
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed Revert r234834 per luigi@ request. 2012-05-03 08:56:43 +00:00
opencrypto
pc98 Add SMP/i386 suspend/resume support. 2012-05-18 18:55:58 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc Replace the list of PVOs owned by each PMAP with an RB tree. This simplifies 2012-05-20 14:33:28 +00:00
rpc Both a crash reported on freebsd-current on Oct. 18 under the 2011-11-03 14:38:03 +00:00
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 Fix mismerge in r235231. 2012-05-10 15:23:20 +00:00
sys Fix improper handling of variadic args with ICDEBUG 2012-05-21 02:30:22 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs Add missing `continue' statement at end of case. 2012-05-18 15:20:21 +00:00
vm Replace the list of PVOs owned by each PMAP with an RB tree. This simplifies 2012-05-20 14:33:28 +00:00
x86 Don't expose i386-only ptrace constants on amd64. This broke gdb with 2012-05-17 20:21:55 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00