panic: unhandled af 228 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 330917 10976 0 0 0x480 1 syz-executor.0 *306161 7363 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(e4) at unhandled_af+0x16 pf_build_tcp(ffffffff826223c0,e4,fffffd80796b1c50,fffffd80796b1c40,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8076a19e48) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8076a19e48) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(2) 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 228 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(e4) at unhandled_af+0x16 pf_build_tcp(ffffffff826223c0,e4,fffffd80796b1c50,fffffd80796b1c40,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8076a19e48) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8076a19e48) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(2) 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 0xffff800020a4f0d0 rbx 0xffff800020a4f180 rdx 0xffff800020a284f0 rcx 0 rax 0 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf90de952919804a6 r12 0x3000000008 r13 0xffff800020a4f0e0 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a4f0c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=306161 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a28768,0xffff800020a28010 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 10976 330917 80596 0 7 0x480 syz-executor.0 10976 321211 80596 0 3 0x4000080 select syz-executor.0 10976 407040 80596 0 3 0x4000080 fsleep syz-executor.0 96330 473489 10588 0 3 0x82 piperd syz-executor.1 80596 307131 10588 0 3 0x82 nanosleep syz-executor.0 18019 234841 0 0 3 0x14200 bored sosplice 10588 106464 61187 0 3 0x82 thrsleep syz-fuzzer 10588 128658 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 280272 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 300955 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 89252 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 208056 61187 0 3 0x4000082 kqread syz-fuzzer 10588 267803 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 444571 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 245723 61187 0 3 0x4000082 thrsleep syz-fuzzer 10588 326038 61187 0 3 0x4000082 thrsleep syz-fuzzer 61187 257619 4285 0 3 0x10008a pause ksh 4285 489843 10049 0 3 0x92 select sshd 12716 360460 1 0 3 0x100083 ttyin getty 10049 228785 1 0 3 0x80 select sshd 59839 162347 55023 74 3 0x100092 bpf pflogd 55023 415734 1 0 3 0x80 netio pflogd 19646 223034 57716 73 3 0x100090 kqread syslogd 57716 200229 1 0 3 0x100082 netio syslogd 67621 494187 1 77 3 0x100090 poll dhclient 4289 309677 1 0 3 0x80 poll dhclient 95340 277649 0 0 3 0x14200 pgzero zerothread 68979 115273 0 0 3 0x14200 aiodoned aiodoned 86419 34743 0 0 3 0x14200 syncer update 51342 399368 0 0 3 0x14200 cleaner cleaner 11378 423222 0 0 3 0x14200 reaper reaper 35957 521215 0 0 3 0x14200 pgdaemon pagedaemon 24996 205906 0 0 3 0x14200 bored crynlk 90383 391003 0 0 3 0x14200 bored crypto 53929 43369 0 0 3 0x40014200 acpi0 acpi0 63003 44560 0 0 3 0x40014200 idle1 * 7363 306161 0 0 7 0x14200 softnet 53399 301190 0 0 3 0x14200 bored systqmp 5159 429433 0 0 3 0x14200 bored systq 63110 100654 0 0 3 0x40014200 bored softclock 94645 111738 0 0 3 0x40014200 idle0 25457 323115 0 0 3 0x14200 bored smr 1 233385 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 7363 (softnet) thread 0xffff800020a284f0 (306161) 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 9478 6415K 6431K 78643K 21820 0 pcb 13 8K 8K 78643K 1870 0 rtable 111 4K 4K 78643K 601 0 ifaddr 50 13K 13K 78643K 298 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 4393 0 iov 0 0K 32K 78643K 2297 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 10194 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 544 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 58 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 51504 0 sigio 1 0K 0K 78643K 3722 0 proc 272 76K 96K 78643K 5467 0 subproc 32 2K 2K 78643K 102 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1753 0 in_multi 33 2K 2K 78643K 507 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 977 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 180 57K 78K 78643K 132165 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 38 0 NDP 6 0K 0K 78643K 61 0 temp 111 3026K 3134K 78643K 142835 0 kqueue 0 0K 0K 78643K 51 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 14 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 106 0 104 1 0 1 1 0 8 0 rtentry 112 85 0 41 2 0 2 2 0 8 0 unpcb 120 130175 0 130143 76 74 2 5 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 5 0 5 2 2 0 1 0 8 0 tcpqe 32 143 0 143 1 1 0 1 0 8 0 tcpcb 544 5072 0 5068 1 0 1 1 0 8 0 inpcb 280 25706 0 25699 10 9 1 2 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 66 0 66 2 2 0 1 0 8 0 ppxss 1128 39 0 39 2 2 0 1 0 8 0 pfstscr 40 110 0 108 1 0 1 1 0 8 0 pffrag 232 109 0 109 1 1 0 1 0 482 0 pffrnode 88 109 0 109 1 1 0 1 0 8 0 pffrent 40 4890 0 4890 1 1 0 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 pfstitem 24 199 0 188 1 0 1 1 0 8 0 pfstkey 112 700 0 690 2 1 1 2 0 8 0 pfstate 328 665 0 655 7 5 2 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 393 0 178 17 3 14 14 0 8 0 art_table 32 394 0 178 2 0 2 2 0 8 0 art_node 16 84 0 44 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 0 1 0 1 1 0 8 0 semapl 112 56 0 46 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 63244 0 61802 47 0 47 47 0 8 0 ffsino 272 63244 0 61802 98 1 97 97 0 8 0 nchpl 144 128124 0 126427 63 0 63 63 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 330103 0 330103 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 3 2 1 1 1 0 8 0 scxspl 192 346743 0 346743 5 4 1 4 0 8 1 plimitpl 152 1028 0 1020 1 0 1 1 0 8 0 sigapl 432 51691 0 51676 3 1 2 3 0 8 0 futexpl 56 375778 0 375777 1 0 1 1 0 8 0 knotepl 112 1013 0 994 1 0 1 1 0 8 0 kqueuepl 104 18852 0 18849 1 0 1 1 0 8 0 pipepl 112 10686 0 10667 1 0 1 1 0 8 0 fdescpl 488 51692 0 51676 3 0 3 3 0 8 0 filepl 152 304935 0 304807 110 104 6 10 0 8 0 lockfpl 104 2956 0 2955 1 0 1 1 0 8 0 lockfspl 48 1258 0 1257 1 0 1 1 0 8 0 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 865 0 854 1 0 1 1 0 8 0 ucredpl 96 23793 0 23784 1 0 1 1 0 8 0 zombiepl 144 51676 0 51676 1 0 1 1 0 8 1 processpl 904 51708 0 51676 4 0 4 4 0 8 0 procpl 632 127225 0 127182 41 37 4 5 0 8 0 srpgc 64 6 0 6 2 2 0 1 0 8 0 sosppl 128 742 0 742 5 5 0 1 0 8 0 sockpl 384 156611 0 156570 241 234 7 15 0 8 2 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 3 0 3 3 0 8 0 mcl12k 12288 65 0 0 2 0 2 2 0 8 0 mcl9k 9216 65 0 0 4 2 2 2 0 8 0 mcl8k 8192 37 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 234 0 0 18 10 8 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1099 0 0 21 0 21 21 0 8 0 bufpl 280 62177 0 55107 506 0 506 506 0 8 0 anonpl 16 3176372 0 3170043 124 92 32 41 0 125 0 amapchunkpl 152 245400 0 245306 30 24 6 22 0 158 0 amappl16 192 211139 0 210802 97 79 18 28 0 8 1 amappl15 184 1766 0 1762 1 0 1 1 0 8 0 amappl14 176 62 0 59 1 0 1 1 0 8 0 amappl13 168 11 0 11 3 3 0 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 99 0 84 1 0 1 1 0 8 0 amappl10 144 25594 0 25589 1 0 1 1 0 8 0 amappl9 136 21269 0 21265 1 0 1 1 0 8 0 amappl8 128 21340 0 21243 4 0 4 4 0 8 0 amappl7 120 25712 0 25698 1 0 1 1 0 8 0 amappl6 112 95 0 80 1 0 1 1 0 8 0 amappl5 104 994 0 979 1 0 1 1 0 8 0 amappl4 96 60170 0 60136 1 0 1 1 0 8 0 amappl3 88 1653 0 1646 1 0 1 1 0 8 0 amappl2 80 413119 0 413038 3 1 2 3 0 8 0 amappl1 72 923737 0 923278 26 16 10 21 0 8 0 amappl 80 127913 0 127873 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 51698 0 51679 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 51698 0 51679 1 0 1 1 0 8 0 vmmpekpl 168 262425 0 262391 2 0 2 2 0 8 0 vmmpepl 168 5916237 0 5914632 218 135 83 95 0 357 8 vmsppl 368 51697 0 51679 2 0 2 2 0 8 0 pdppl 4096 103403 0 103361 6 0 6 6 0 8 0 pvpl 32 8981988 0 8972397 396 311 85 118 0 265 2 pmappl 232 51697 0 51679 4 2 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 189 0 18 5 0 5 5 0 8 0