NetBSD/sys
ozaki-r 75ffcec5e7 Avoid a race condition between SA (sav) manipulations
An sav can be removed from belonging list(s) twice resulting in an assertion
failure of pslist.  It can occur if the following two operations interleave:
(i) a deletion or a update of an SA via the API, and
(ii) a state change (key_sa_chgstate) of the same SA by the timer.
Note that even (ii) removes an sav once from its list(s) on a update.

The cause of the race condition is that the two operations are not serialized
and (i) doesn't get and remove an sav from belonging list(s) atomically.  So
(ii) can be inserted between an acquisition and a removal of (i).

Avoid the race condition by making (i) atomic.
2019-07-17 07:07:59 +00:00
..
altq
arch Need CPU_PARTMASK for eMAG CPU ID 2019-07-16 20:29:53 +00:00
coda
compat Stack buffers mustn't escape their scope. PR 54326 from David Binderman 2019-07-03 18:24:50 +00:00
conf comment out CHFS to fix build issues 2019-06-17 17:06:39 +00:00
crypto
ddb add two db_stack_print_trace frontends that emit to the system log 2019-06-02 06:09:17 +00:00
dev Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER). 2019-07-17 03:26:24 +00:00
dist/pf
external Fix error path, kmem_free doesn't allow NULL pointers. 2019-07-14 13:55:43 +00:00
fs Fix uninitialized variable: if 'tvp' is NULL, '*tdep' is not initialized. 2019-07-14 05:58:44 +00:00
gdbscripts fix some minor issues in these user functions, and add more to 2019-05-30 07:17:35 +00:00
kern Move the assignment of SCTP-specific function hooks/pointers. 2019-07-16 22:57:55 +00:00
lib Now that the ufs module has been split out from ffs and ext2fs, we need 2019-06-24 13:58:24 +00:00
miscfs Fix (harmless) uninitialized variable: 'pg' could be 'endm', in which case 2019-07-11 16:59:14 +00:00
modules Set WARNS=3 - signed-vs-unsigned integer compare 2019-06-22 17:57:01 +00:00
net Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER). 2019-07-17 03:26:24 +00:00
net80211 Remove extra OSIOCSIFMEDIA. This old ioctl is converted to new one in 2019-05-17 04:08:54 +00:00
netatalk
netbt
netcan
netinet Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
netinet6 nd6: restore a missing reachability confirmation 2019-06-28 06:45:16 +00:00
netipsec Avoid a race condition between SA (sav) manipulations 2019-07-17 07:07:59 +00:00
netmpls
netsmb
nfs Appease GCC and initialize arps_ip 2019-06-29 17:42:36 +00:00
opencrypto relinguish our lock while we are autoloading. 2019-07-11 23:28:17 +00:00
rump Drop unused retval pointer from do_sys_mknod{,at}() 2019-06-18 22:34:25 +00:00
secmodel
stand
sys Implemet VLAN hardware filter function (struct ethercom change). 2019-07-17 03:30:31 +00:00
ufs Lay down some comments related to the previous few revisions of ufs_vnops.c. 2019-07-01 00:57:06 +00:00
uvm Provide and use PV_ISKENTER_P. NFCI. 2019-07-12 10:39:12 +00:00
Makefile evbppc port has been built with modules for some time now, drop explanation on 2019-06-17 17:01:50 +00:00