panic: unhandled af 1 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *220098 41776 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d2f35) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(1) at unhandled_af+0x16 pf_build_tcp(ffffffff827e7518,1,fffffd8058594ef8,fffffd8058594ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff827ff118) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 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 1 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d2f35) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(1) at unhandled_af+0x16 pf_build_tcp(ffffffff827e7518,1,fffffd8058594ef8,fffffd8058594ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff827ff118) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6784e0 rbx 0xffff80001d678590 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81203d6f kprintf+0x15f r9 0x1 r10 0x2 r11 0x5e896c53422065ba r12 0x3000000008 r13 0xffff80001d6784f0 r14 0x100 r15 0x1 rip 0xffffffff81869548 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6784d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=220098 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d651c30,0xffff80001d6514f0 process=0xffff8000ffffeac8 user=0xffff80001d673000, vmspace=0xffffffff827ea8f8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 83406 125975 54562 0 2 0 syz-executor.1 83406 175360 54562 0 2 0x4000000 syz-executor.1 54562 354688 61447 0 3 0x82 nanosleep syz-executor.1 83560 95780 0 0 3 0x14280 nfsidl nfsio 57299 357640 0 0 3 0x14280 nfsidl nfsio 12535 9390 0 0 3 0x14280 nfsidl nfsio 51770 506699 0 0 3 0x14280 nfsidl nfsio 31011 18929 0 0 3 0x14280 nfsidl nfsio 19423 220394 0 0 3 0x14280 nfsidl nfsio 21543 22649 0 0 3 0x14280 nfsidl nfsio 41421 500470 0 0 3 0x14280 nfsidl nfsio 96613 55328 0 0 3 0x14280 nfsidl nfsio 46011 336236 0 0 3 0x14280 nfsidl nfsio 21138 31964 0 0 3 0x14280 nfsidl nfsio 30016 153056 0 0 3 0x14280 nfsidl nfsio 7519 4575 0 0 3 0x14280 nfsidl nfsio 90706 47474 0 0 3 0x14280 nfsidl nfsio 63025 306763 0 0 3 0x14280 nfsidl nfsio 74011 419285 0 0 3 0x14280 nfsidl nfsio 92430 225985 0 0 3 0x14280 nfsidl nfsio 18890 92549 0 0 3 0x14280 nfsidl nfsio 99999 259259 0 0 3 0x14280 nfsidl nfsio 63079 5467 0 0 3 0x14280 nfsidl nfsio 32661 396955 0 0 3 0x14200 bored sosplice 88618 2026 61447 0 3 0x82 piperd syz-executor.0 61447 264161 89099 0 2 0x2 syz-fuzzer 61447 234534 89099 0 3 0x4000082 nanosleep syz-fuzzer 61447 118415 89099 0 3 0x4000082 thrsleep syz-fuzzer 61447 157008 89099 0 3 0x4000082 thrsleep syz-fuzzer 61447 478359 89099 0 3 0x4000082 thrsleep syz-fuzzer 61447 63692 89099 0 3 0x4000082 thrsleep syz-fuzzer 61447 299940 89099 0 3 0x4000082 thrsleep syz-fuzzer 61447 49060 89099 0 3 0x4000082 thrsleep syz-fuzzer 89099 231882 75163 0 3 0x10008a pause ksh 75163 316092 1685 0 3 0x92 select sshd 16933 301360 1 0 3 0x100083 ttyin getty 1685 421144 1 0 3 0x80 select sshd 75857 349801 3781 73 3 0x100090 kqread syslogd 3781 252826 1 0 3 0x100082 netio syslogd 3195 335160 1 77 3 0x100090 poll dhclient 91136 243480 1 0 3 0x80 poll dhclient 71751 7485 0 0 3 0x14200 bored smr 86917 310981 0 0 2 0x14200 zerothread 65595 198489 0 0 3 0x14200 aiodoned aiodoned 38625 63923 0 0 3 0x14200 syncer update 17208 169753 0 0 3 0x14200 cleaner cleaner 27534 12124 0 0 3 0x14200 reaper reaper 72184 241941 0 0 3 0x14200 pgdaemon pagedaemon 44723 328887 0 0 3 0x14200 bored crynlk 25509 267523 0 0 3 0x14200 bored crypto 74592 267893 0 0 3 0x40014200 acpi0 acpi0 *41776 220098 0 0 7 0x14200 softnet 16503 14521 0 0 3 0x14200 bored systqmp 31214 238326 0 0 3 0x14200 bored systq 42545 293445 0 0 3 0x40014200 bored softclock 31973 420581 0 0 3 0x40014200 idle0 1 404711 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 9506 6352K 6544K 78643K 11075 0 pcb 13 8K 8K 78643K 95 0 rtable 106 4K 8K 78643K 579 0 ifaddr 75 15K 15K 78643K 200 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 31 0 ioctlops 0 0K 4K 78643K 1497 0 iov 0 0K 16K 78643K 1100 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1521 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 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 132 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 1643 0 sigio 0 0K 0K 78643K 6 0 proc 49 38K 63K 78643K 498 0 subproc 32 2K 2K 78643K 85 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 45 0 in_multi 41 2K 2K 78643K 131 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 5 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 274 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 128 104K 104K 78643K 5422 0 UVM aobj 35 6K 6K 78643K 35 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 59 0 NDP 12 0K 0K 78643K 33 0 temp 109 3850K 3914K 78643K 30023 0 kqueue 3 4K 8K 78643K 32 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 13 0 9 1 0 1 1 0 8 0 rtpcb 80 61 0 59 1 0 1 1 0 8 0 rtentry 112 92 0 51 2 0 2 2 0 8 0 unpcb 120 359 0 351 1 0 1 1 0 8 0 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 322 0 322 3 3 0 1 0 8 0 tcpcb 544 191 0 187 1 0 1 1 0 8 0 inpcb 280 515 0 508 5 4 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 19 0 12 1 0 1 1 0 8 0 pkpcb 40 10 0 10 3 3 0 1 0 8 0 pfstscr 40 98 0 98 1 1 0 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 81 0 78 1 0 1 1 0 8 0 pftag 88 17 0 14 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 48 0 47 2 1 1 1 0 8 0 pfstkey 112 142 0 141 2 1 1 1 0 8 0 pfstate 328 99 0 98 2 1 1 1 0 8 0 pfrule 1360 28 0 16 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 404 0 215 17 5 12 13 0 8 0 art_table 32 405 0 215 2 0 2 2 0 8 0 art_node 16 91 0 54 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 8 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 126 0 116 1 0 1 1 0 8 0 shmpl 112 33 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4443 0 3043 88 0 88 88 0 8 0 ffsino 240 4443 0 3043 83 0 83 83 0 8 0 nchpl 144 7373 0 5786 60 0 60 60 0 8 0 uvmvnodes 72 4655 0 0 85 0 85 85 0 8 0 vnodes 208 4655 0 0 245 0 245 245 0 8 0 namei 1024 20966 0 20966 9 8 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 528 10 0 4 2 1 1 1 0 8 0 pfiaddrpl 120 24 0 22 1 0 1 1 0 8 0 scxspl 192 21806 0 21806 8 7 1 1 0 8 1 plimitpl 152 63 0 56 1 0 1 1 0 8 0 sigapl 424 1841 0 1792 6 0 6 6 0 8 0 futexpl 56 25719 0 25719 9 8 1 1 0 8 1 knotepl 112 133 0 114 1 0 1 1 0 8 0 kqueuepl 144 120 0 118 1 0 1 1 0 8 0 pipepl 272 194 0 184 2 1 1 2 0 8 0 fdescpl 432 1806 0 1792 2 0 2 2 0 8 0 filepl 120 10260 0 10165 8 4 4 4 0 8 1 lockfpl 104 157 0 156 1 0 1 1 0 8 0 lockfspl 48 58 0 57 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 28 0 18 1 0 1 1 0 8 0 ucredpl 96 1812 0 1805 1 0 1 1 0 8 0 zombiepl 144 1792 0 1792 3 2 1 1 0 8 1 processpl 920 1841 0 1792 7 0 7 7 0 8 0 procpl 624 3583 0 3526 5 0 5 5 0 8 0 sosppl 128 11 0 11 4 4 0 1 0 8 0 sockpl 400 949 0 932 18 16 2 4 0 8 0 mcl64k 65536 548 0 548 48 48 0 33 0 8 0 mcl16k 16384 4 0 4 4 4 0 1 0 8 0 mcl12k 12288 25 0 25 13 13 0 1 0 8 0 mcl9k 9216 9 0 9 6 6 0 1 0 8 0 mcl8k 8192 31 0 31 16 16 0 1 0 8 0 mcl4k 4096 459 0 459 13 13 0 1 0 8 0 mcl2k2 2112 134 0 134 9 9 0 1 0 8 0 mcl2k 2048 76716 0 76663 28 20 8 22 0 8 0 mtagpl 80 36 0 11 2 1 1 1 0 8 0 mbufpl 256 131208 0 131085 44 31 13 23 0 8 0 bufpl 280 7361 0 2009 383 0 383 383 0 8 0 anonpl 16 157951 0 142118 93 27 66 78 0 107 0 amapchunkpl 152 7503 0 7377 27 21 6 19 0 158 0 amappl16 192 8772 0 7835 78 31 47 56 0 8 0 amappl15 184 102 0 100 1 0 1 1 0 8 0 amappl14 176 1286 0 1278 1 0 1 1 0 8 0 amappl13 168 47 0 44 1 0 1 1 0 8 0 amappl12 160 23 0 21 2 1 1 1 0 8 0 amappl11 152 55 0 46 1 0 1 1 0 8 0 amappl10 144 21 0 15 1 0 1 1 0 8 0 amappl9 136 384 0 381 1 0 1 1 0 8 0 amappl8 128 373 0 336 2 0 2 2 0 8 0 amappl7 120 135 0 121 1 0 1 1 0 8 0 amappl6 112 23 0 19 1 0 1 1 0 8 0 amappl5 104 1737 0 1726 1 0 1 1 0 8 0 amappl4 96 472 0 442 1 0 1 1 0 8 0 amappl3 88 1373 0 1367 1 0 1 1 0 8 0 amappl2 80 13513 0 13446 2 0 2 2 0 8 0 amappl1 72 38468 0 38059 23 14 9 17 0 8 0 amappl 80 3852 0 3808 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 34 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1816 0 1796 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1816 0 1796 1 0 1 1 0 8 0 vmmpekpl 168 13007 0 12971 2 0 2 2 0 8 0 vmmpepl 168 213288 0 211271 195 106 89 123 0 357 1 vmsppl 272 1815 0 1796 4 2 2 2 0 8 0 pdppl 4096 3638 0 3598 9 3 6 6 0 8 0 pvpl 32 449649 0 430713 219 63 156 186 0 265 0 pmappl 200 1815 0 1796 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 396 0 169 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d2f35) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(1) at unhandled_af+0x16 pf_build_tcp(ffffffff827e7518,1,fffffd8058594ef8,fffffd8058594ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff827ff118) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d2f35) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(1) at unhandled_af+0x16 pf_build_tcp(ffffffff827e7518,1,fffffd8058594ef8,fffffd8058594ee8,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80580d7cd8) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff827ff118) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8