syzbot


panic: rw_enter: pf_state_lock locking against myself
Status: fixed on 2021/02/10 08:50
Reported-by: syzbot+d6ea8620b43dc69ecbc6@syzkaller.appspotmail.com
Fix commit: d7220220b7ed pfsync_state_import() must not be called with the pf state lock held, since the actual modification of the state table is done by a call to pf_state_insert(), which takes the pf state lock itself. Other calls to pfsync_state_import() also only have the pf lock.
First crash: 165d, last: 165d

Sample crash report:

Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-openbsd-main 2021/02/10 00:25 openbsd 0049eb19c27a 2bd9619f .config log report syz C panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-multicore 2021/02/09 23:31 openbsd 0049eb19c27a 2bd9619f .config log report syz C panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-main 2021/02/09 23:14 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-main 2021/02/09 23:13 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-main 2021/02/09 23:09 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-main 2021/02/09 23:08 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-multicore 2021/02/09 23:05 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself
ci-openbsd-multicore 2021/02/09 23:01 openbsd 0049eb19c27a 2bd9619f .config log report panic: rw_enter: pf_state_lock locking against myself