panic: unhandled af 39 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *169558 37217 0 0x10 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b6e57) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(27) at unhandled_af+0x16 pf_build_tcp(ffffffff82566cd8,27,fffffd806ae77e10,fffffd806ae77e00,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8056a4b3e8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8056a4b3e8) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000a2f400,2,ffff8000ffff2508) at pfioctl+0x13a2 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dfd2820,c0e04412,ffff800000a2f400,2,fffffd806c3be8a0,ffff8000ffff2508) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806721ce88,c0e04412,ffff800000a2f400,ffff8000ffff2508) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2508,ffff80001d442938,ffff80001d442980) at sys_ioctl+0x5b9 syscall(ffff80001d442a00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3afb20f92d0, count: 4 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 39 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b6e57) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(27) at unhandled_af+0x16 pf_build_tcp(ffffffff82566cd8,27,fffffd806ae77e10,fffffd806ae77e00,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8056a4b3e8) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8056a4b3e8) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000a2f400,2,ffff8000ffff2508) at pfioctl+0x13a2 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dfd2820,c0e04412,ffff800000a2f400,2,fffffd806c3be8a0,ffff8000ffff2508) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806721ce88,c0e04412,ffff800000a2f400,ffff8000ffff2508) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff8000ffff2508,ffff80001d442938,ffff80001d442980) at sys_ioctl+0x5b9 syscall(ffff80001d442a00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3afb20f92d0, count: -11 ddb> show registers rdi 0xffffffff817dfeb7 db_enter+0x17 rsi 0x2657 __ALIGN_SIZE+0x1657 rbp 0xffff80001d4422e0 rbx 0xffff80001d442390 rdx 0x2658 __ALIGN_SIZE+0x1658 rcx 0xffff80001e44b000 rax 0xffff80001e44b000 r8 0xffff80001d4422a0 r9 0x1 r10 0xffff8000009ede80 r11 0xc4c4ff5f5af4023d r12 0x3000000008 r13 0xffff80001d4422f0 r14 0x100 r15 0x1 rip 0xffffffff817dfeb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d4422d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=169558 stat=onproc flags process=10 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff8256b150 process=0xffff8000ffff6010 user=0xffff80001d43d000, vmspace=0xfffffd806bc09330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 37217 243427 39867 0 2 0x10 syz-executor.0 *37217 169558 39867 0 7 0x4000010 syz-executor.0 3907 482981 11173 0 2 0x2 syz-executor.1 39867 99539 11173 0 3 0x82 nanosleep syz-executor.0 11173 460779 67404 0 3 0x82 thrsleep syz-fuzzer 11173 100897 67404 0 3 0x4000082 nanosleep syz-fuzzer 11173 347762 67404 0 3 0x4000082 thrsleep syz-fuzzer 11173 463310 67404 0 3 0x4000082 thrsleep syz-fuzzer 11173 339921 67404 0 3 0x4000082 kqread syz-fuzzer 11173 85707 67404 0 3 0x4000082 thrsleep syz-fuzzer 11173 143406 67404 0 3 0x4000082 thrsleep syz-fuzzer 11173 216361 67404 0 3 0x4000082 thrsleep syz-fuzzer 11173 234734 67404 0 3 0x4000082 thrsleep syz-fuzzer 67404 51937 48426 0 3 0x10008a pause ksh 48426 80005 81941 0 3 0x92 select sshd 47000 513319 1 0 3 0x100083 ttyin getty 81941 374157 1 0 3 0x80 select sshd 38139 475461 35061 73 3 0x100090 kqread syslogd 35061 361516 1 0 3 0x100082 netio syslogd 64216 10381 1 77 3 0x100090 poll dhclient 62614 100651 1 0 3 0x80 poll dhclient 12665 469651 0 0 2 0x14200 zerothread 75228 50249 0 0 3 0x14200 aiodoned aiodoned 53797 289266 0 0 3 0x14200 syncer update 58693 394215 0 0 3 0x14200 cleaner cleaner 63137 373828 0 0 3 0x14200 reaper reaper 56327 381245 0 0 3 0x14200 pgdaemon pagedaemon 29140 368492 0 0 3 0x14200 bored crynlk 67362 33770 0 0 3 0x14200 bored crypto 8280 466613 0 0 3 0x40014200 acpi0 acpi0 61400 224445 0 0 3 0x14200 bored softnet 47021 79093 0 0 3 0x14200 bored systqmp 97827 356150 0 0 3 0x14200 bored systq 30302 451624 0 0 3 0x40014200 bored softclock 48152 259419 0 0 3 0x40014200 idle0 30245 379075 0 0 3 0x14200 bored smr 1 447154 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 9450 6324K 6455K 78643K 10682 0 pcb 13 8K 8K 78643K 27 0 rtable 108 3K 4K 78643K 242 0 ifaddr 158 39K 39K 78643K 173 0 counters 19 16K 16K 78643K 19 0 ioctlops 1 0K 4K 78643K 484 0 iov 0 0K 16K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1322 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 34 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 1025 0 sigio 0 0K 0K 78643K 46 0 proc 48 38K 63K 78643K 410 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 18 0 in_multi 33 2K 2K 78643K 49 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 198 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 101 21K 21K 78643K 2688 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 5 0K 0K 78643K 13 0 temp 103 3017K 3081K 78643K 7306 0 kqueue 0 0K 0K 78643K 2 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 8 0 2 1 0 1 1 0 8 0 rtpcb 80 199 0 197 1 0 1 1 0 8 0 rtentry 112 55 0 11 2 0 2 2 0 8 0 unpcb 120 2175 0 2163 2 0 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 64 0 64 1 1 0 1 0 8 0 tcpcb 544 114 0 110 2 0 2 2 0 8 1 ipq 40 4 0 4 1 1 0 1 0 8 0 ipqe 40 20 0 20 1 1 0 1 0 8 0 inpcb 280 418 0 411 2 0 2 2 0 8 1 nd6 48 6 0 2 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 6 0 5 2 1 1 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 186 0 176 1 0 1 1 0 8 0 pfstkey 112 254 0 253 1 0 1 1 0 8 0 pfstate 328 250 0 208 4 0 4 4 0 8 0 pfrule 1360 2 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 255 0 43 14 0 14 14 0 8 0 art_table 32 256 0 43 2 0 2 2 0 8 0 art_node 16 54 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2448 0 1044 46 0 46 46 0 8 0 ffsino 240 2448 0 1044 83 0 83 83 0 8 0 nchpl 144 3760 0 2156 60 0 60 60 0 8 0 uvmvnodes 72 2581 0 0 47 0 47 47 0 8 0 vnodes 208 2581 0 0 136 0 136 136 0 8 0 namei 1024 9720 0 9720 1 0 1 1 0 8 1 scxspl 192 10601 0 10601 1 0 1 1 0 8 1 plimitpl 152 31 0 24 1 0 1 1 0 8 0 sigapl 432 1193 0 1180 2 0 2 2 0 8 0 futexpl 56 9000 0 9000 1 0 1 1 0 8 1 knotepl 112 77 0 58 1 0 1 1 0 8 0 kqueuepl 104 30 0 28 1 0 1 1 0 8 0 pipepl 112 214 0 195 1 0 1 1 0 8 0 fdescpl 424 1194 0 1180 2 0 2 2 0 8 0 filepl 120 6278 0 6178 5 0 5 5 0 8 1 lockfpl 104 71 0 70 1 0 1 1 0 8 0 lockfspl 48 23 0 22 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 683 0 675 1 0 1 1 0 8 0 zombiepl 144 1180 0 1180 1 0 1 1 0 8 1 processpl 872 1208 0 1180 4 0 4 4 0 8 0 procpl 632 1954 0 1917 4 0 4 4 0 8 0 sockpl 384 2794 0 2773 7 0 7 7 0 8 4 mcl64k 65536 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 1 1 0 1 0 8 0 mcl8k 8192 11 0 11 1 0 1 1 0 8 1 mcl4k 4096 25 0 25 3 2 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 66036 0 65992 17 10 7 14 0 8 1 mtagpl 80 4 0 2 2 1 1 1 0 8 0 mbufpl 256 109062 0 108978 14 6 8 10 0 8 0 bufpl 280 7230 0 1326 422 0 422 422 0 8 0 anonpl 16 82352 0 66739 67 4 63 65 0 107 0 amapchunkpl 152 3638 0 3508 8 1 7 8 0 158 0 amappl16 192 4246 0 3396 50 7 43 50 0 8 0 amappl15 184 53 0 49 1 0 1 1 0 8 0 amappl14 176 634 0 628 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 161 0 160 2 1 1 1 0 8 0 amappl11 152 52 0 41 1 0 1 1 0 8 0 amappl10 144 20 0 17 1 0 1 1 0 8 0 amappl9 136 567 0 564 1 0 1 1 0 8 0 amappl8 128 114 0 94 1 0 1 1 0 8 0 amappl7 120 99 0 87 1 0 1 1 0 8 0 amappl6 112 52 0 48 1 0 1 1 0 8 0 amappl5 104 320 0 306 1 0 1 1 0 8 0 amappl4 96 1027 0 1001 1 0 1 1 0 8 0 amappl3 88 225 0 217 1 0 1 1 0 8 0 amappl2 80 6559 0 6491 3 1 2 3 0 8 0 amappl1 72 25200 0 24776 26 16 10 20 0 8 0 amappl 80 2187 0 2146 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1194 0 1180 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1194 0 1180 1 0 1 1 0 8 0 vmmpekpl 168 9294 0 9274 2 0 2 2 0 8 0 vmmpepl 168 129821 0 127882 114 12 102 109 0 357 17 vmsppl 272 1193 0 1180 2 1 1 2 0 8 0 pdppl 4096 2394 0 2360 6 1 5 6 0 8 0 pvpl 32 255943 0 237328 161 7 154 158 0 265 3 pmappl 200 1193 0 1180 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 152 0 23 4 0 4 4 0 8 0