panic: unhandled af 228 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 494 98770 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b8c65) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(e4) at unhandled_af+0x16 pf_build_tcp(ffffffff82576208,e4,fffffd8057018ef8,fffffd8057018ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057019e20) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057019e20) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8256eb28) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002a080) at taskq_thread+0x52 sys/kern/kern_task.c:370 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic unhandled af 228 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b8c65) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(e4) at unhandled_af+0x16 pf_build_tcp(ffffffff82576208,e4,fffffd8057018ef8,fffffd8057018ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057019e20) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057019e20) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8256eb28) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002a080) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d31c3c0 rbx 0xffff80001d31c470 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d31c380 r9 0x1 r10 0 r11 0xb217badac8d118c4 r12 0x3000000008 r13 0xffff80001d31c3d0 r14 0x100 r15 0x1 rip 0xffffffff817e67d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d31c3b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=494 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffffe000,0xffff8000ffffe778 process=0xffff8000ffffc6d0 user=0xffff80001d317000, vmspace=0xffffffff82573698 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 175 395766 44004 0 3 0x80 nanosleep syz-executor.1 175 303828 44004 0 3 0x4000080 ttyout syz-executor.1 175 158750 44004 0 3 0x4000080 select syz-executor.1 10132 123848 53007 0 3 0x82 piperd syz-executor.0 44004 260451 53007 0 2 0x482 syz-executor.1 12445 65883 0 0 3 0x14200 acct acct 55521 99922 0 0 3 0x14200 bored sosplice 53007 292547 38075 0 3 0x82 thrsleep syz-fuzzer 53007 36182 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 410009 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 346855 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 92824 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 26420 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 221367 38075 0 3 0x4000082 thrsleep syz-fuzzer 53007 209333 38075 0 3 0x4000082 kqread syz-fuzzer 38075 184522 83458 0 3 0x10008a pause ksh 83458 166173 29143 0 3 0x92 select sshd 96867 46592 1 0 3 0x100083 ttyin getty 29143 64051 1 0 3 0x80 select sshd 44673 218260 42691 73 3 0x100090 kqread syslogd 42691 463537 1 0 3 0x100082 netio syslogd 93673 54530 1 77 3 0x100090 poll dhclient 82144 359415 1 0 3 0x80 poll dhclient 68755 248690 0 0 3 0x14200 pgzero zerothread 12560 460286 0 0 3 0x14200 aiodoned aiodoned 17958 198762 0 0 3 0x14200 syncer update 84535 108912 0 0 3 0x14200 cleaner cleaner 66558 33552 0 0 3 0x14200 reaper reaper 50573 204234 0 0 3 0x14200 pgdaemon pagedaemon 20088 414141 0 0 3 0x14200 bored crynlk 73060 143141 0 0 3 0x14200 bored crypto 94273 320548 0 0 3 0x40014200 acpi0 acpi0 *98770 494 0 0 7 0x14200 softnet 67168 71943 0 0 3 0x14200 bored systqmp 65344 514339 0 0 3 0x14200 bored systq 36506 296097 0 0 3 0x40014200 bored softclock 57669 1102 0 0 3 0x40014200 idle0 12307 108157 0 0 3 0x14200 bored smr 1 476091 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9468 6338K 6843K 78643K 23089 0 pcb 13 8K 8K 78643K 724 0 rtable 112 4K 4K 78643K 876 0 ifaddr 49 11K 11K 78643K 1107 0 counters 19 16K 16K 78643K 19 0 ioctlops 0 0K 4K 78643K 6013 0 iov 0 0K 24K 78643K 3142 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 11445 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 278 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 486 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 45709 0 sigio 0 0K 0K 78643K 547 0 proc 1065 102K 115K 78643K 1869 0 subproc 32 2K 2K 78643K 153 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 762 0 in_multi 33 2K 2K 78643K 142 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 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 1495 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 159 23K 33K 78643K 105361 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 327 0 NDP 7 0K 0K 78643K 32 0 temp 113 3020K 3088K 78643K 735534 0 kqueue 0 0K 0K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 20 0 14 1 0 1 1 0 8 0 rtpcb 80 403 0 401 1 0 1 1 0 8 0 rtentry 112 115 0 71 2 0 2 2 0 8 0 unpcb 120 48257 0 48247 29 28 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 13 0 13 4 4 0 1 0 8 0 tcpcb 544 41498 0 41494 97 96 1 4 0 8 0 inpcb 280 52406 0 52399 104 102 2 4 0 8 1 nd6 48 18 0 14 2 1 1 1 0 8 0 pkpcb 40 28 0 28 6 6 0 1 0 8 0 pfosfp 40 10 0 6 1 0 1 1 0 8 0 pfosfpen 112 20 0 6 1 0 1 1 0 8 0 pfrktable 1344 161 0 161 3 3 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 6 0 0 1 0 1 1 0 8 0 pfstitem 24 131 0 130 2 1 1 1 0 8 0 pfstkey 112 350 0 349 2 1 1 1 0 8 0 pfstate 328 350 0 349 2 1 1 1 0 8 0 pfrule 1360 513 0 501 9 8 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 530 0 317 18 4 14 14 0 8 0 art_table 32 531 0 317 2 0 2 2 0 8 0 art_node 16 114 0 74 1 0 1 1 0 8 0 semapl 112 484 0 474 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 54568 0 53060 51 2 49 49 0 8 0 ffsino 240 54568 0 53060 89 0 89 89 0 8 0 nchpl 144 110520 0 108752 68 2 66 66 0 8 0 uvmvnodes 72 6147 0 0 112 0 112 112 0 8 0 vnodes 208 6147 0 0 324 0 324 324 0 8 0 namei 1024 310960 0 310960 1 0 1 1 0 8 1 vmpool 528 5 0 5 1 1 0 1 0 8 0 scxspl 192 307340 0 307340 1 0 1 1 0 8 1 plimitpl 152 193 0 186 1 0 1 1 0 8 0 sigapl 432 45859 0 45846 2 0 2 2 0 8 0 futexpl 56 426466 0 426466 1 0 1 1 0 8 1 knotepl 112 316 0 297 1 0 1 1 0 8 0 kqueuepl 104 6548 0 6544 1 0 1 1 0 8 0 pipepl 112 8824 0 8805 2 1 1 2 0 8 0 fdescpl 424 45860 0 45846 2 0 2 2 0 8 0 filepl 120 250044 0 249940 58 54 4 6 0 8 0 lockfpl 104 3474 0 3473 1 0 1 1 0 8 0 lockfspl 48 1477 0 1476 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 223 0 213 1 0 1 1 0 8 0 ucredpl 96 46467 0 46460 1 0 1 1 0 8 0 zombiepl 144 45847 0 45847 1 0 1 1 0 8 1 processpl 872 45877 0 45847 4 0 4 4 0 8 0 procpl 632 104172 0 104133 82 78 4 5 0 8 0 sosppl 128 26 0 26 7 7 0 1 0 8 0 sockpl 384 101429 0 101410 241 238 3 10 0 8 1 mcl64k 65536 116 0 116 57 57 0 1 0 8 0 mcl16k 16384 104 0 104 39 39 0 1 0 8 0 mcl12k 12288 392 0 392 94 94 0 1 0 8 0 mcl9k 9216 197 0 197 76 76 0 1 0 8 0 mcl8k 8192 1286 0 1286 63 63 0 1 0 8 0 mcl4k 4096 1969 0 1969 88 88 0 1 0 8 0 mcl2k2 2112 72 0 72 44 44 0 1 0 8 0 mcl2k 2048 78230 0 78197 44 38 6 9 0 8 0 mtagpl 80 221 0 221 6 6 0 5 0 8 0 mbufpl 256 339821 0 339707 63 54 9 34 0 8 0 bufpl 280 64640 0 58456 442 0 442 442 0 8 0 anonpl 16 2533210 0 2528263 30 6 24 25 0 107 0 amapchunkpl 152 163417 0 163323 15 10 5 11 0 158 0 amappl16 192 173942 0 173671 24 10 14 15 0 8 0 amappl15 184 10411 0 10403 1 0 1 1 0 8 0 amappl14 176 71 0 70 1 0 1 1 0 8 0 amappl13 168 7719 0 7719 1 1 0 1 0 8 0 amappl12 160 12070 0 12068 1 0 1 1 0 8 0 amappl11 152 382 0 371 1 0 1 1 0 8 0 amappl10 144 205 0 202 1 0 1 1 0 8 0 amappl9 136 19248 0 19245 1 0 1 1 0 8 0 amappl8 128 18777 0 18691 3 0 3 3 0 8 0 amappl7 120 320 0 306 1 0 1 1 0 8 0 amappl6 112 379 0 370 1 0 1 1 0 8 0 amappl5 104 12339 0 12330 1 0 1 1 0 8 0 amappl4 96 37422 0 37390 1 0 1 1 0 8 0 amappl3 88 12260 0 12253 1 0 1 1 0 8 0 amappl2 80 375920 0 375843 3 1 2 3 0 8 0 amappl1 72 759339 0 758919 26 17 9 20 0 8 0 amappl 80 103970 0 103933 2 0 2 2 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 45865 0 45851 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 45865 0 45851 1 0 1 1 0 8 0 vmmpekpl 168 249864 0 249840 2 0 2 2 0 8 0 vmmpepl 168 5119189 0 5117760 227 159 68 78 0 357 0 vmsppl 272 45864 0 45851 5 4 1 2 0 8 0 pdppl 4096 91736 0 91702 6 1 5 6 0 8 0 pvpl 32 7283523 0 7275493 286 214 72 115 0 265 0 pmappl 200 45864 0 45851 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 585 0 454 5 0 5 5 0 8 0