panic: unhandled af 101 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *103626 46199 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d308f) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff82815ee8,65,fffffd8063c06da0,fffffd8063c06d90,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b13500,3,ffff80001d6f3290) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805d8085b0,c0e04412,ffff800000b13500,3,fffffd806c3bf780,ffff80001d6f3290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8057789e20,c0e04412,ffff800000b13500,ffff80001d6f3290) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6f3290,ffff80001d7962f8,ffff80001d796340) at sys_ioctl+0x4a1 syscall(ffff80001d7963c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6980b34b40, 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 101 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d308f) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff82815ee8,65,fffffd8063c06da0,fffffd8063c06d90,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b13500,3,ffff80001d6f3290) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805d8085b0,c0e04412,ffff800000b13500,3,fffffd806c3bf780,ffff80001d6f3290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8057789e20,c0e04412,ffff800000b13500,ffff80001d6f3290) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6f3290,ffff80001d7962f8,ffff80001d796340) at sys_ioctl+0x4a1 syscall(ffff80001d7963c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6980b34b40, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d795ca0 rbx 0xffff80001d795d50 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81b1966f kprintf+0x15f r9 0x1 r10 0x2 r11 0x9210b70955f5de9 r12 0x3000000008 r13 0xffff80001d795cb0 r14 0x100 r15 0x1 rip 0xffffffff81224c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d795c90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=103626 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6f3c50,0xffffffff82807048 process=0xffff800020a483c8 user=0xffff80001d791000, vmspace=0xfffffd8053981010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46199 344669 32493 0 2 0 syz-executor.0 *46199 103626 32493 0 7 0x4000000 syz-executor.0 27801 201537 0 0 3 0x14280 nfsidl nfsio 59112 56230 0 0 3 0x14280 nfsidl nfsio 79768 485246 0 0 3 0x14280 nfsidl nfsio 98613 512552 0 0 3 0x14280 nfsidl nfsio 3220 345492 0 0 3 0x14280 nfsidl nfsio 45839 205208 0 0 3 0x14280 nfsidl nfsio 79443 203375 0 0 3 0x14280 nfsidl nfsio 48706 452223 0 0 3 0x14280 nfsidl nfsio 15777 264353 0 0 3 0x14280 nfsidl nfsio 37806 50000 0 0 3 0x14280 nfsidl nfsio 59182 283187 0 0 3 0x14280 nfsidl nfsio 96276 46438 0 0 3 0x14280 nfsidl nfsio 10788 150796 0 0 3 0x14280 nfsidl nfsio 48865 39317 0 0 3 0x14280 nfsidl nfsio 5183 255585 0 0 3 0x14280 nfsidl nfsio 60878 470597 0 0 3 0x14280 nfsidl nfsio 85911 66023 0 0 3 0x14280 nfsidl nfsio 7650 61773 0 0 3 0x14280 nfsidl nfsio 43938 162976 0 0 3 0x14280 nfsidl nfsio 6946 378473 0 0 3 0x14280 nfsidl nfsio 61717 55453 0 0 3 0x14200 acct acct 79286 195698 0 0 3 0x14200 bored sosplice 88250 460731 44658 0 2 0x2 syz-executor.1 32493 173821 44658 0 3 0x82 nanosleep syz-executor.0 44658 209258 69430 0 3 0x82 thrsleep syz-fuzzer 44658 295956 69430 0 3 0x4000082 thrsleep syz-fuzzer 44658 417509 69430 0 3 0x4000082 thrsleep syz-fuzzer 44658 467975 69430 0 3 0x4000082 thrsleep syz-fuzzer 44658 520515 69430 0 3 0x4000082 thrsleep syz-fuzzer 44658 202460 69430 0 3 0x4000082 kqread syz-fuzzer 44658 217355 69430 0 3 0x4000082 thrsleep syz-fuzzer 44658 46695 69430 0 3 0x4000082 thrsleep syz-fuzzer 69430 134046 18780 0 3 0x10008a pause ksh 18780 18521 28009 0 3 0x92 select sshd 22442 104379 1 0 3 0x100083 ttyin getty 28009 30472 1 0 3 0x80 select sshd 52096 448375 47467 73 3 0x100090 kqread syslogd 47467 118680 1 0 3 0x100082 netio syslogd 88215 7284 1 77 3 0x100090 poll dhclient 22257 252556 1 0 3 0x80 poll dhclient 70577 134629 0 0 3 0x14200 bored smr 87277 49760 0 0 2 0x14200 zerothread 24568 458845 0 0 3 0x14200 aiodoned aiodoned 6968 258926 0 0 3 0x14200 syncer update 94575 185899 0 0 3 0x14200 cleaner cleaner 15328 86309 0 0 3 0x14200 reaper reaper 91910 153597 0 0 3 0x14200 pgdaemon pagedaemon 13335 510302 0 0 3 0x14200 bored crynlk 30388 42438 0 0 3 0x14200 bored crypto 77938 371419 0 0 3 0x40014200 acpi0 acpi0 68515 451601 0 0 3 0x14200 bored softnet 59328 205962 0 0 3 0x14200 bored systqmp 25828 56056 0 0 3 0x14200 bored systq 11889 247165 0 0 3 0x40014200 bored softclock 20734 285926 0 0 3 0x40014200 idle0 1 353748 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 9491 6347K 6725K 78643K 11082 0 pcb 13 8K 8K 78643K 82 0 rtable 124 8K 10K 78643K 579 0 ifaddr 73 15K 16K 78643K 198 0 counters 21 16K 16K 78643K 28 0 ioctlops 1 0K 4K 78643K 266 0 iov 0 0K 16K 78643K 92 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 1381 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 119 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 501 0 proc 51 38K 63K 78643K 388 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 47 0 in_multi 49 2K 2K 78643K 105 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 8 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 227 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 126 71K 92K 78643K 1997 0 UVM aobj 18 2K 3K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 76 0 NDP 10 0K 0K 78643K 23 0 temp 95 3845K 3919K 78643K 8026 0 kqueue 3 4K 12K 78643K 31 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 7 0 1 1 0 1 1 0 8 0 rtpcb 80 51 0 49 1 0 1 1 0 8 0 rtentry 112 59 0 18 2 0 2 2 0 8 0 unpcb 120 237 0 228 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 sackhl 24 2 0 2 2 1 1 1 0 8 1 tcpqe 32 228 0 228 1 1 0 1 0 8 0 tcpcb 544 200 0 196 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 4 0 4 1 0 1 1 0 8 1 inpcb 280 451 0 444 2 0 2 2 0 8 1 rttmr 72 3 0 3 2 1 1 1 0 8 1 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 pfosfp 40 2 0 1 1 0 1 1 0 8 0 pfosfpen 112 3 0 2 1 0 1 1 0 8 0 pfrktable 1344 133 0 123 3 1 2 2 0 8 1 pftag 88 18 0 14 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 2 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 pfrule 1360 56 0 23 3 0 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 243 0 66 13 0 13 13 0 8 0 art_table 32 244 0 66 2 0 2 2 0 8 0 art_node 16 58 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 11 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 115 0 105 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2048 0 649 88 0 88 88 0 8 0 ffsino 240 2048 0 649 83 0 83 83 0 8 0 nchpl 144 2892 0 1294 60 0 60 60 0 8 0 uvmvnodes 72 2191 0 0 40 0 40 40 0 8 0 vnodes 208 2191 0 0 116 0 116 116 0 8 0 namei 1024 9470 0 9470 1 0 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 528 9 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 46 0 38 1 0 1 1 0 8 0 scxspl 192 9035 0 9035 1 0 1 1 0 8 1 plimitpl 152 58 0 51 1 0 1 1 0 8 0 sigapl 424 709 0 659 6 0 6 6 0 8 0 futexpl 56 9775 0 9775 1 0 1 1 0 8 1 knotepl 112 101 0 82 1 0 1 1 0 8 0 kqueuepl 144 74 0 69 1 0 1 1 0 8 0 pipepl 272 122 0 112 2 1 1 2 0 8 0 fdescpl 432 673 0 659 2 0 2 2 0 8 0 filepl 120 4178 0 4081 4 0 4 4 0 8 1 lockfpl 104 128 0 127 1 0 1 1 0 8 0 lockfspl 48 49 0 48 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 408 0 401 1 0 1 1 0 8 0 zombiepl 144 659 0 659 1 0 1 1 0 8 1 processpl 920 709 0 659 7 0 7 7 0 8 0 procpl 624 1289 0 1231 5 0 5 5 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 753 0 735 5 1 4 4 0 8 1 mcl64k 65536 48 0 48 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl12k 12288 12 0 12 2 1 1 1 0 8 1 mcl9k 9216 7 0 7 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 1 0 1 1 0 8 1 mcl4k 4096 43 0 43 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 76751 0 76687 18 9 9 16 0 8 0 mtagpl 80 48 0 9 2 1 1 1 0 8 0 mbufpl 256 124369 0 124181 20 3 17 17 0 8 1 bufpl 280 5890 0 538 383 0 383 383 0 8 0 anonpl 16 75642 0 59546 82 1 81 81 0 107 16 amapchunkpl 152 3421 0 3296 21 2 19 19 0 158 13 amappl16 192 3166 0 2280 48 0 48 48 0 8 3 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 29 0 25 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 21 0 15 1 0 1 1 0 8 0 amappl11 152 303 0 292 1 0 1 1 0 8 0 amappl10 144 11 0 6 1 0 1 1 0 8 0 amappl9 136 342 0 340 1 0 1 1 0 8 0 amappl8 128 529 0 490 2 0 2 2 0 8 0 amappl7 120 105 0 94 1 0 1 1 0 8 0 amappl6 112 287 0 278 1 0 1 1 0 8 0 amappl5 104 1093 0 1082 1 0 1 1 0 8 0 amappl4 96 422 0 396 1 0 1 1 0 8 0 amappl3 88 120 0 115 1 0 1 1 0 8 0 amappl2 80 4549 0 4480 2 0 2 2 0 8 0 amappl1 72 20741 0 20327 24 15 9 17 0 8 0 amappl 80 1510 0 1468 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 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 682 0 662 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 682 0 662 1 0 1 1 0 8 0 vmmpekpl 168 7950 0 7916 2 0 2 2 0 8 0 vmmpepl 168 84894 0 82910 114 22 92 107 0 357 4 vmsppl 272 681 0 662 3 1 2 2 0 8 0 pdppl 4096 1370 0 1330 7 1 6 6 0 8 0 pvpl 32 252306 0 233095 243 1 242 242 0 265 86 pmappl 200 681 0 662 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 261 0 20 7 0 7 7 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(ffffffff823d308f) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff82815ee8,65,fffffd8063c06da0,fffffd8063c06d90,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b13500,3,ffff80001d6f3290) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805d8085b0,c0e04412,ffff800000b13500,3,fffffd806c3bf780,ffff80001d6f3290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8057789e20,c0e04412,ffff800000b13500,ffff80001d6f3290) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6f3290,ffff80001d7962f8,ffff80001d796340) at sys_ioctl+0x4a1 syscall(ffff80001d7963c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6980b34b40, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d308f) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff82815ee8,65,fffffd8063c06da0,fffffd8063c06d90,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8053dc7cd0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b13500,3,ffff80001d6f3290) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805d8085b0,c0e04412,ffff800000b13500,3,fffffd806c3bf780,ffff80001d6f3290) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8057789e20,c0e04412,ffff800000b13500,ffff80001d6f3290) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6f3290,ffff80001d7962f8,ffff80001d796340) at sys_ioctl+0x4a1 syscall(ffff80001d7963c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6980b34b40, count: -11