Netlock should be grabbed before pppx_if_find() call in pppxwrite().
authormvs <mvs@openbsd.org>
Mon, 1 Feb 2021 07:46:55 +0000 (07:46 +0000)
committermvs <mvs@openbsd.org>
Mon, 1 Feb 2021 07:46:55 +0000 (07:46 +0000)
commit649224baee8a591915dcae7162ee9dd50e44a159
tree25c6d1bb1ae7062574430c5b262fbfd44daaee10
parent178263fac26fef3c5603c307e8f32bf095010b9b
Netlock should be grabbed before pppx_if_find() call in pppxwrite().
Otherwise this `pxi' can be killed by concurrent thread after context
switch caused by following netlock.

ok yasuoka@
sys/net/if_pppx.c