panic: unhandled af 228 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 96354 71249 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,fffffd80542c1f00,fffffd80542c1ef0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8066d5de28) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8066d5de28) 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,fffffd80542c1f00,fffffd80542c1ef0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8066d5de28) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8066d5de28) 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 0xffff80001d31c280 rbx 0xffff80001d31c330 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d31c240 r9 0x1 r10 0 r11 0xdb59d94ddd6b828d r12 0x3000000008 r13 0xffff80001d31c290 r14 0x100 r15 0x1 rip 0xffffffff817e67d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d31c270 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=96354 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffffe000,0xffff8000ffffec68 process=0xffff8000ffffd470 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 2913 119492 76862 0 2 0x480 syz-executor.0 2913 475621 76862 0 3 0x4000080 kqread syz-executor.0 2913 192365 76862 0 3 0x4000080 fsleep syz-executor.0 56912 250417 93823 0 3 0x82 piperd syz-executor.1 76862 171124 93823 0 2 0x482 syz-executor.0 16665 90192 0 0 3 0x14200 bored sosplice 93823 125076 4031 0 3 0x82 thrsleep syz-fuzzer 93823 508531 4031 0 2 0x4000482 syz-fuzzer 93823 477186 4031 0 3 0x4000082 thrsleep syz-fuzzer 93823 456522 4031 0 3 0x4000082 thrsleep syz-fuzzer 93823 418052 4031 0 3 0x4000082 thrsleep syz-fuzzer 93823 263488 4031 0 3 0x4000082 thrsleep syz-fuzzer 93823 158852 4031 0 3 0x4000082 thrsleep syz-fuzzer 93823 30868 4031 0 3 0x4000082 kqread syz-fuzzer 4031 337127 60225 0 3 0x10008a pause ksh 60225 52568 19929 0 3 0x92 select sshd 11582 190483 1 0 3 0x100083 ttyin getty 19929 374489 1 0 3 0x80 select sshd 79569 304558 4492 73 3 0x100090 kqread syslogd 4492 106369 1 0 3 0x100082 netio syslogd 43930 303064 1 77 3 0x100090 poll dhclient 93957 338458 1 0 3 0x80 poll dhclient 84982 71066 0 0 3 0x14200 pgzero zerothread 1342 138677 0 0 3 0x14200 aiodoned aiodoned 90845 68444 0 0 3 0x14200 syncer update 31111 106043 0 0 3 0x14200 cleaner cleaner 19247 87060 0 0 3 0x14200 reaper reaper 15974 260774 0 0 3 0x14200 pgdaemon pagedaemon 27436 472030 0 0 3 0x14200 bored crynlk 41397 126128 0 0 3 0x14200 bored crypto 26228 469892 0 0 3 0x40014200 acpi0 acpi0 *71249 96354 0 0 7 0x14200 softnet 66598 248351 0 0 2 0x14200 systqmp 34308 458201 0 0 3 0x14200 bored systq 24823 35815 0 0 3 0x40014200 bored softclock 49606 3106 0 0 3 0x40014200 idle0 87982 443368 0 0 3 0x14200 bored smr 1 502837 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 9514 6361K 6603K 78643K 22822 0 pcb 13 8K 8K 78643K 1864 0 rtable 111 4K 5K 78643K 2938 0 ifaddr 54 15K 17K 78643K 2048 0 counters 19 16K 16K 78643K 19 0 ioctlops 0 0K 4K 78643K 7177 0 iov 0 0K 16K 78643K 919 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 10409 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 309 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 1196 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 65728 0 sigio 0 0K 0K 78643K 2604 0 proc 116 42K 66K 78643K 6625 0 subproc 32 2K 2K 78643K 238 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2261 0 in_multi 33 2K 2K 78643K 188 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 277 1235K 1235K 78643K 277 0 exec 0 0K 1K 78643K 2278 0 pfkey data 0 0K 0K 78643K 93 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 179 33K 40K 78643K 137476 0 UVM aobj 130 4K 4K 78643K 432 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 969 0 NDP 8 0K 0K 78643K 230 0 temp 117 3022K 3127K 78643K 302890 0 kqueue 0 0K 0K 78643K 165 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 30 0 24 1 0 1 1 0 8 0 rtpcb 80 118 0 116 1 0 1 1 0 8 0 rtentry 112 165 0 121 2 0 2 2 0 8 0 unpcb 120 53559 0 53551 41 40 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 13 0 13 9 9 0 1 0 8 0 tcpcb 544 6986 0 6982 1 0 1 1 0 8 0 inpcb 280 32919 0 32912 4 3 1 2 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 pkpcb 40 16579 0 16579 28 27 1 1 0 8 1 ppxss 1128 181 0 181 10 10 0 1 0 8 0 pfstscr 40 172 0 171 4 3 1 1 0 8 0 pfosfp 40 5 0 4 2 1 1 1 0 8 0 pfosfpen 112 8 0 7 2 1 1 1 0 8 0 pfrktable 1344 579 0 579 5 5 0 1 0 8 0 pftag 88 271 0 270 1 0 1 1 0 8 0 pfqueue 264 15 0 0 1 0 1 1 0 8 0 pfstitem 24 103 0 102 3 2 1 1 0 8 0 pfstkey 112 923 0 922 3 2 1 1 0 8 0 pfstate 328 919 0 918 3 2 1 1 0 8 0 pfrule 1360 893 0 877 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 737 0 522 14 0 14 14 0 8 0 art_table 32 738 0 522 2 0 2 2 0 8 0 art_node 16 164 0 124 1 0 1 1 0 8 0 semapl 112 1194 0 1184 1 0 1 1 0 8 0 shmpl 112 430 0 302 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 82204 0 80776 47 0 47 47 0 8 0 ffsino 240 82204 0 80776 85 0 85 85 0 8 0 nchpl 144 172888 0 171132 70 4 66 66 0 8 0 uvmvnodes 72 6311 0 0 115 0 115 115 0 8 0 vnodes 208 6311 0 0 333 0 333 333 0 8 0 namei 1024 566502 0 566502 1 0 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 3 0 2 2 1 1 1 0 8 0 pfiaddrpl 120 145 0 145 3 3 0 1 0 8 0 scsiplug 64 12 0 12 3 3 0 1 0 8 0 scxspl 192 457825 0 457825 1 0 1 1 0 8 1 plimitpl 152 633 0 626 1 0 1 1 0 8 0 sigapl 432 65863 0 65850 2 0 2 2 0 8 0 futexpl 56 677092 0 677091 1 0 1 1 0 8 0 knotepl 112 32913 0 32894 85 83 2 3 0 8 1 kqueuepl 104 38968 0 38961 4 3 1 2 0 8 0 pipepl 112 11098 0 11079 4 3 1 2 0 8 0 fdescpl 424 65864 0 65850 2 0 2 2 0 8 0 filepl 120 410703 0 410595 168 162 6 8 0 8 2 lockfpl 104 7273 0 7272 1 0 1 1 0 8 0 lockfspl 48 2983 0 2982 1 0 1 1 0 8 0 sessionpl 112 29 0 19 1 0 1 1 0 8 0 pgrppl 48 305 0 295 1 0 1 1 0 8 0 ucredpl 96 120916 0 120906 1 0 1 1 0 8 0 zombiepl 144 65850 0 65850 1 0 1 1 0 8 1 processpl 872 65879 0 65850 4 0 4 4 0 8 0 procpl 632 135625 0 135587 4 0 4 4 0 8 0 sosppl 128 21 0 21 1 1 0 1 0 8 0 sockpl 384 104257 0 104240 198 195 3 8 0 8 1 mcl64k 65536 789 0 789 48 48 0 1 0 8 0 mcl16k 16384 182 0 182 55 55 0 1 0 8 0 mcl12k 12288 1830 0 1830 71 71 0 1 0 8 0 mcl9k 9216 616 0 616 70 70 0 1 0 8 0 mcl8k 8192 2537 0 2537 86 85 1 1 0 8 1 mcl4k 4096 5119 0 5119 62 61 1 1 0 8 1 mcl2k2 2112 194 0 194 74 74 0 1 0 8 0 mcl2k 2048 114957 0 114920 52 46 6 10 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 559008 0 558965 65 61 4 12 0 8 0 bufpl 280 80913 0 74601 451 0 451 451 0 8 0 anonpl 16 3968947 0 3963580 187 163 24 41 0 107 0 amapchunkpl 152 225992 0 225900 86 81 5 18 0 158 0 amappl16 192 262376 0 262101 102 87 15 27 0 8 0 amappl15 184 18333 0 18328 1 0 1 1 0 8 0 amappl14 176 320 0 317 1 0 1 1 0 8 0 amappl13 168 3114 0 3114 2 2 0 1 0 8 0 amappl12 160 2368 0 2367 7 6 1 1 0 8 0 amappl11 152 23262 0 23251 1 0 1 1 0 8 0 amappl10 144 4177 0 4173 1 0 1 1 0 8 0 amappl9 136 14986 0 14982 1 0 1 1 0 8 0 amappl8 128 15162 0 15060 4 0 4 4 0 8 0 amappl7 120 4328 0 4314 1 0 1 1 0 8 0 amappl6 112 23150 0 23141 1 0 1 1 0 8 0 amappl5 104 3359 0 3350 1 0 1 1 0 8 0 amappl4 96 63110 0 63078 1 0 1 1 0 8 0 amappl3 88 5173 0 5165 1 0 1 1 0 8 0 amappl2 80 543161 0 543088 3 1 2 3 0 8 0 amappl1 72 1046423 0 1046006 25 15 10 20 0 8 0 amappl 80 136145 0 136108 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 431 0 302 3 0 3 3 0 8 0 uaddrrnd 24 65867 0 65852 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 65867 0 65852 1 0 1 1 0 8 0 vmmpekpl 168 285446 0 285420 2 0 2 2 0 8 0 vmmpepl 168 7297668 0 7296221 214 145 69 79 0 357 0 vmsppl 272 65866 0 65852 3 1 2 2 0 8 1 pdppl 4096 131740 0 131705 6 1 5 6 0 8 0 pvpl 32 12583658 0 12575099 748 674 74 171 0 265 0 pmappl 200 65866 0 65852 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 486 0 360 4 0 4 4 0 8 0