summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-12 11:56:54 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-12 11:56:54 +0000
commit361eaeceda93d9301d896a7c3b131ee1f9dcb79f (patch)
tree6a99df793f7937c8970a070954d6247f1646a91c /gnu/usr.sbin
parent3a2e1e093a4754f0e95c3760da4dd04b8c9eab92 (diff)
Stop processing packets under non-exclusive (read) netlock.
Prevent concurrency in the socket layer which is not ready for that. Two recent data corruptions in pfsync(4) and the socket layer pointed out that, at least, tun(4) was incorrectly using NET_RUNLOCK(). Until we find a way in software to avoid future mistakes and to make sure that only the softnet thread and some ioctls are safe to use a read version of the lock, put everything back to the exclusive version. ok stsp@, visa@
Diffstat (limited to 'gnu/usr.sbin')
0 files changed, 0 insertions, 0 deletions