Prevent concurrent access to incomplete or dying `sc' caused by sleep
authormvs <mvs@openbsd.org>
Thu, 30 Dec 2021 00:49:41 +0000 (00:49 +0000)
committermvs <mvs@openbsd.org>
Thu, 30 Dec 2021 00:49:41 +0000 (00:49 +0000)
commit188a0a692db52e76194ccf0ec51e41e36f582ba9
tree03b3a99eed221da66b6d6fdcd979e422e6e84ef8
parentca9c4ded6d35636883e3cc4fbe78c30dcf11bed7
Prevent concurrent access to incomplete or dying `sc' caused by sleep
points in pppacopen() and pppacclose() paths. Use the same "sc_ready"
logic we use for 'pppx_if' structure.

Reported-by: syzbot+a7ac144b48f7f471f689@syzkaller.appspotmail.com
ok anton@ dlg@
sys/net/if_pppx.c