freebsd-skq/sys
Ryan Stone ab607f28e3 Don't read if_counters with if_addr_lock held
Calling into an ifnet implementation with the if_addr_lock already
held can cause a LOR and potentially a deadlock, as ifnet
implementations typically can take the if_addr_lock after their
own locks during configuration.  Refactor a sysctl handler that
was violating this to read if_counter data in a temporary buffer
before the if_addr_lock is taken, and then copying the data
in its final location later, when the if_addr_lock is held.

PR: 194109
Reported by: Jean-Sebastien Pedron
MFC after: 2 weeks
Differential Revision:	https://reviews.freebsd.org/D8498
Reviewed by: sbruno
2016-11-12 19:03:23 +00:00
..
amd64 Fix improper use of "its". 2016-11-08 23:59:41 +00:00
arm The return type of is_managed() was changed from boolean_t to bool type 2016-11-12 17:24:41 +00:00
arm64 Fix improper use of "its". 2016-11-08 23:59:41 +00:00
boot Add support for LOADER_RC setting in the pkgfs manifest (defaults to 2016-11-11 17:41:17 +00:00
bsm
cam Fix improper use of "its". 2016-11-08 23:59:41 +00:00
cddl Fix improper use of "its". 2016-11-08 23:59:41 +00:00
compat Tidy up ia32_sysvec sv_flags setting 2016-10-20 20:29:54 +00:00
conf Refactor FDT part of gpioled driver 2016-11-07 21:15:39 +00:00
contrib Fix improper use of "its". 2016-11-08 23:59:41 +00:00
crypto Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
ddb Determine the operand/address size of %cs in a new function 2016-09-25 16:30:29 +00:00
dev iwm: If firmware load fails during init via iwm_preinit() we bail out 2016-11-12 18:33:56 +00:00
fs Fix improper use of "its". 2016-11-08 23:59:41 +00:00
gdb
geom Do not report error on close even if we have no paths left. 2016-11-12 18:57:38 +00:00
gnu Revert and redo r306083. 2016-09-22 15:17:36 +00:00
i386 Fix improper use of "its". 2016-11-08 23:59:41 +00:00
isa
kern Allow scheduling during early boot. 2016-11-12 00:23:09 +00:00
kgssapi
libkern
mips Use correct signal number for floating point exceptions. 2016-10-31 15:49:41 +00:00
modules Add the DTS for the Netgate SG-1000 (micro-Firewall). 2016-11-09 04:07:15 +00:00
net Don't read if_counters with if_addr_lock held 2016-11-12 19:03:23 +00:00
net80211 [net80211] implement "first RX defines the BAW" hack. 2016-11-10 18:36:40 +00:00
netgraph Fix improper use of "its". 2016-11-08 23:59:41 +00:00
netinet Initialize ip6 pointer before use. 2016-11-06 02:33:04 +00:00
netinet6 Make ICMPv6 hard error handling for TCP consistent with the ICMPv4 2016-10-21 10:32:57 +00:00
netipsec Remove the 4.3BSD compatible macro m_copy(), use m_copym() instead. 2016-09-15 07:41:48 +00:00
netnatm
netpfil Remove the mbuf tag after use (for reinjected packets). 2016-11-03 00:26:58 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
pc98 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
powerpc Fix improper use of "its". 2016-11-08 23:59:41 +00:00
riscv System Binary Interface (SBI) page was moved in latest version of 2016-11-04 13:07:54 +00:00
rpc
security Fix improper use of "its". 2016-11-08 23:59:41 +00:00
sparc64 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
sys queue.3: Document existing QMD_* macros 2016-11-11 20:44:33 +00:00
teken
tests
tools
ufs ANSIfy ffs_subr.c 2016-10-31 20:43:43 +00:00
vm Introduce a new page queue, PQ_LAUNDRY, for storing unreferenced, dirty 2016-11-09 18:48:37 +00:00
x86 Fix improper use of "its". 2016-11-08 23:59:41 +00:00
xdr
xen xen: add a grant-table user-space device 2016-10-31 13:12:58 +00:00
Makefile