panic: unhandled af 217 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 315149 9556 0 0x2 0x480 1 syz-executor.1 * 67168 54352 0 0x14000 0x200 0K softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7d9a) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(d9) at unhandled_af+0x16 pf_build_tcp(ffffffff826223c0,d9,fffffd806d8f1be0,fffffd806d8f1bd0,5527,28f7) at pf_build_tcp+0x3c8 pf_remove_state(fffffd807829a7b8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd807829a7b8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8264223c) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic unhandled af 217 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7d9a) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(d9) at unhandled_af+0x16 pf_build_tcp(ffffffff826223c0,d9,fffffd806d8f1be0,fffffd806d8f1bd0,5527,28f7) at pf_build_tcp+0x3c8 pf_remove_state(fffffd807829a7b8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd807829a7b8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8264223c) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a4f390 rbx 0xffff800020a4f440 rdx 0xffff800020a28000 rcx 0 rax 0 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0x25 r11 0x485508657e355848 r12 0x3000000008 r13 0xffff800020a4f3a0 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a4f380 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=67168 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a28278,0xffff800020a28500 process=0xffff800020a2a000 user=0xffff800020a4a000, vmspace=0xffffffff82628830 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 71730 71732 9556 0 2 0 syz-executor.1 71730 122406 9556 0 3 0x4000080 fsleep syz-executor.1 18358 421594 0 0 3 0x14200 acct acct 50792 319226 63566 0 2 0x2 syz-executor.0 9556 315149 63566 0 7 0x482 syz-executor.1 63566 427872 3959 0 3 0x82 thrsleep syz-fuzzer 63566 65548 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 114388 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 221831 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 205672 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 431117 3959 0 3 0x4000082 kqread syz-fuzzer 63566 2112 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 500998 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 371990 3959 0 3 0x4000082 thrsleep syz-fuzzer 63566 111585 3959 0 2 0x4000482 syz-fuzzer 3959 216260 67894 0 3 0x10008a pause ksh 67894 263323 926 0 3 0x92 select sshd 83223 87693 1 0 3 0x100083 ttyin getty 926 390802 1 0 3 0x80 select sshd 55831 142715 63023 74 3 0x100092 bpf pflogd 63023 205147 1 0 3 0x80 netio pflogd 84669 33710 57605 73 3 0x100090 kqread syslogd 57605 181756 1 0 3 0x100082 netio syslogd 41554 214862 1 77 3 0x100090 poll dhclient 42395 309236 1 0 3 0x80 poll dhclient 17873 325694 0 0 3 0x14200 pgzero zerothread 58697 28656 0 0 3 0x14200 aiodoned aiodoned 41877 302580 0 0 2 0x14200 update 83301 305911 0 0 3 0x14200 cleaner cleaner 45461 116001 0 0 3 0x14200 reaper reaper 92893 247121 0 0 3 0x14200 pgdaemon pagedaemon 10424 334757 0 0 3 0x14200 bored crynlk 21164 191250 0 0 3 0x14200 bored crypto 74311 390935 0 0 3 0x40014200 acpi0 acpi0 67805 428350 0 0 3 0x40014200 idle1 *54352 67168 0 0 7 0x14200 softnet 25927 400258 0 0 2 0x14200 systqmp 55555 324712 0 0 3 0x14200 bored systq 21728 57280 0 0 3 0x40014200 bored softclock 49060 141712 0 0 3 0x40014200 idle0 36390 483147 0 0 3 0x14200 bored smr 1 264889 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 50792 (syz-executor.0) thread 0xffff800020ac93d8 (319226) exclusive rrwlock inode r = 0 (0xfffffd806e228b40) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8068dc5a30) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 54352 (softnet) thread 0xffff800020a28000 (67168) exclusive rwlock netlock r = 0 (0xffffffff82471638) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pf_purge+0x27 sys/net/pf.c:1273 #2 taskq_thread+0x9c sys/kern/kern_task.c:369 #3 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8261e160) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pf_purge+0x1b sys/net/pf.c:1264 #2 taskq_thread+0x9c sys/kern/kern_task.c:369 #3 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff80000002b0e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 taskq_thread+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9491 6412K 6727K 78643K 15687 0 pcb 13 8K 8K 78643K 337 0 rtable 117 6K 7K 78643K 751 0 ifaddr 71 17K 17K 78643K 1104 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 14493 0 iov 0 0K 16K 78643K 741 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 76K 77K 78643K 6461 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 192 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 15514 0 sigio 0 0K 0K 78643K 2019 0 proc 77 64K 95K 78643K 496 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 12 0 in_multi 33 2K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 220 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 143 23K 23K 78643K 36926 0 UVM aobj 130 4K 4K 78643K 130 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 2 0 NDP 8 0K 0K 78643K 49 0 temp 122 3030K 3097K 78643K 54758 0 kqueue 0 0K 0K 78643K 78 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 53 0 51 1 0 1 1 0 8 0 rtentry 112 57 0 13 2 0 2 2 0 8 0 unpcb 120 7099 0 7089 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 6 0 6 4 3 1 1 0 8 1 tcpcb 544 191 0 187 1 0 1 1 0 8 0 inpcb 280 1359 0 1352 2 1 1 2 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 ppxss 1128 34 0 34 6 6 0 1 0 8 0 pfstscr 40 431 0 420 2 1 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 139 0 136 2 1 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 69 0 55 1 0 1 1 0 8 0 pfstkey 112 526 0 516 1 0 1 1 0 8 0 pfstate 328 487 0 478 2 0 2 2 0 8 0 pfrule 1360 443 0 422 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 256 0 43 14 0 14 14 0 8 0 art_table 32 257 0 43 2 0 2 2 0 8 0 art_node 16 56 0 16 1 0 1 1 0 8 0 semapl 112 190 0 180 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 21004 0 19599 46 0 46 46 0 8 0 ffsino 272 21004 0 19599 95 0 95 95 0 8 0 nchpl 144 47747 0 46092 67 5 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 144372 0 144372 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 413 0 398 2 1 1 1 0 8 0 scxspl 192 106344 0 106344 9 8 1 7 0 8 1 plimitpl 152 124 0 116 1 0 1 1 0 8 0 sigapl 432 15710 0 15695 3 1 2 3 0 8 0 futexpl 56 127001 0 127000 1 0 1 1 0 8 0 knotepl 112 1047 0 1028 1 0 1 1 0 8 0 kqueuepl 104 10361 0 10359 1 0 1 1 0 8 0 pipepl 112 7946 0 7927 6 5 1 2 0 8 0 fdescpl 488 15711 0 15695 3 0 3 3 0 8 0 filepl 152 104134 0 104031 29 23 6 7 0 8 2 lockfpl 104 3444 0 3443 1 0 1 1 0 8 0 lockfspl 48 1646 0 1645 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 147 0 136 1 0 1 1 0 8 0 ucredpl 96 20178 0 20169 1 0 1 1 0 8 0 zombiepl 144 15695 0 15695 1 0 1 1 0 8 1 processpl 904 15727 0 15695 4 0 4 4 0 8 0 procpl 632 36076 0 36034 20 15 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sockpl 384 8511 0 8492 24 20 4 4 0 8 2 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 33 0 0 5 2 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 49 0 0 6 3 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 205 0 0 15 7 8 15 0 8 0 mtagpl 80 72 0 0 2 0 2 2 0 8 0 mbufpl 256 801 0 0 17 1 16 16 0 8 0 bufpl 280 22584 0 15514 506 0 506 506 0 8 0 anonpl 16 946755 0 941530 56 31 25 39 0 125 0 amapchunkpl 152 57224 0 57128 6 1 5 6 0 158 0 amappl16 192 62510 0 62231 43 28 15 27 0 8 1 amappl15 184 71 0 67 1 0 1 1 0 8 0 amappl14 176 45 0 41 1 0 1 1 0 8 0 amappl13 168 2 0 1 1 0 1 1 0 8 0 amappl12 160 7652 0 7650 2 1 1 1 0 8 0 amappl11 152 63 0 48 1 0 1 1 0 8 0 amappl10 144 2051 0 2047 1 0 1 1 0 8 0 amappl9 136 6395 0 6391 1 0 1 1 0 8 0 amappl8 128 6141 0 6080 3 0 3 3 0 8 0 amappl7 120 2148 0 2137 1 0 1 1 0 8 0 amappl6 112 63 0 54 1 0 1 1 0 8 0 amappl5 104 8151 0 8135 1 0 1 1 0 8 0 amappl4 96 8422 0 8389 2 1 1 2 0 8 0 amappl3 88 8501 0 8493 1 0 1 1 0 8 0 amappl2 80 123481 0 123407 3 1 2 3 0 8 0 amappl1 72 281035 0 280573 26 15 11 21 0 8 0 amappl 80 36324 0 36285 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 15711 0 15695 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 15711 0 15695 1 0 1 1 0 8 0 vmmpekpl 168 79526 0 79494 2 0 2 2 0 8 0 vmmpepl 168 1762409 0 1760907 139 67 72 82 0 357 2 vmsppl 368 15710 0 15695 2 0 2 2 0 8 0 pdppl 4096 31429 0 31390 6 0 6 6 0 8 0 pvpl 32 3099840 0 3091342 240 165 75 118 0 265 0 pmappl 232 15710 0 15695 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 183 0 18 5 0 5 5 0 8 0