NetBSD/sys/rump/librump
ozaki-r 0c084e85e9 Make IPsec SPD MP-safe
We use localcount(9), not psref(9), to make the sptree and secpolicy (SP)
entries MP-safe because SPs need to be referenced over opencrypto
processing that executes a callback in a different context.

SPs on sockets aren't managed by the sptree and can be destroyed in softint.
localcount_drain cannot be used in softint so we delay the destruction of
such SPs to a thread context. To do so, a list to manage such SPs is added
(key_socksplist) and key_timehandler_spd deletes dead SPs in the list.

For more details please read the locking notes in key.c.

Proposed on tech-kern@ and tech-net@
2017-08-02 01:28:02 +00:00
..
rumpdev Put the kernelside rump kernel headers into <rump-sys> instead of 2016-01-26 23:12:14 +00:00
rumpkern Add localcount to rump kernels 2017-07-25 05:01:25 +00:00
rumpnet Make IPsec SPD MP-safe 2017-08-02 01:28:02 +00:00
rumpvfs Regen. 2017-07-12 09:31:59 +00:00
Makefile
Makefile.inc
makerumpif.sh include rumpif private headers from <rump-sys> 2016-01-26 23:21:18 +00:00