sc_st_mtx is not sufficient protection to move state around
authorsashan <sashan@openbsd.org>
Thu, 18 May 2023 12:10:04 +0000 (12:10 +0000)
committersashan <sashan@openbsd.org>
Thu, 18 May 2023 12:10:04 +0000 (12:10 +0000)
commitbe753fa342ba8b8948f23543a55b33c7579346ba
tree3673882c5f60396913b6e8dbf9b83e461de8908e
parent1ae20c072f0f733a86992c310f5aab1e1ad95921
sc_st_mtx is not sufficient protection to move state around
pfsync(4) queues. We also need to grab pf_state::mtx to put/remove
state instance safely from pfsync(4) queue. The issue has been
pointed out by bluhm@. Patch survived testing done by hrvoje@

OK dlg@
sys/net/if_pfsync.c