panic: unhandled af 101 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *458403 21361 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823cedb8) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff828390e8,65,fffffd8057787d30,fffffd8057787d20,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b6d200,3,ffff80001d6c1018) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd80695344e0,c0e04412,ffff800000b6d200,3,fffffd806c3bf8a0,ffff80001d6c1018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd805d880da0,c0e04412,ffff800000b6d200,ffff80001d6c1018) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6c1018,ffff8000209cfe78,ffff8000209cfec0) at sys_ioctl+0x4a1 syscall(ffff8000209cff40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb17c3e85c10, 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(ffffffff823cedb8) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff828390e8,65,fffffd8057787d30,fffffd8057787d20,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b6d200,3,ffff80001d6c1018) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd80695344e0,c0e04412,ffff800000b6d200,3,fffffd806c3bf8a0,ffff80001d6c1018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd805d880da0,c0e04412,ffff800000b6d200,ffff80001d6c1018) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6c1018,ffff8000209cfe78,ffff8000209cfec0) at sys_ioctl+0x4a1 syscall(ffff8000209cff40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb17c3e85c10, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000209cf820 rbx 0xffff8000209cf8d0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8155d16f kprintf+0x15f r9 0x1 r10 0x2 r11 0xba6b5fdc6a1e6105 r12 0x3000000008 r13 0xffff8000209cf830 r14 0x100 r15 0x1 rip 0xffffffff81ac0cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000209cf810 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=458403 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6c1c48,0xffffffff827f7a58 process=0xffff8000ffff9210 user=0xffff8000209ca000, vmspace=0xfffffd8057694448 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21361 315830 19806 0 2 0 syz-executor.0 *21361 458403 19806 0 7 0x4000000 syz-executor.0 20654 255006 1 0 3 0x100083 ttyin getty 19806 293131 99079 0 3 0x82 nanosleep syz-executor.0 25554 110716 99079 0 2 0x2 syz-executor.1 80568 54355 0 0 3 0x14200 acct acct 54866 183201 0 0 3 0x14200 bored sosplice 99079 307165 83693 0 3 0x82 thrsleep syz-fuzzer 99079 274273 83693 0 3 0x4000082 nanosleep syz-fuzzer 99079 167023 83693 0 3 0x4000082 thrsleep syz-fuzzer 99079 209826 83693 0 3 0x4000082 thrsleep syz-fuzzer 99079 113819 83693 0 3 0x4000082 thrsleep syz-fuzzer 99079 495324 83693 0 3 0x4000082 thrsleep syz-fuzzer 99079 75628 83693 0 3 0x4000082 thrsleep syz-fuzzer 99079 130947 83693 0 3 0x4000082 kqread syz-fuzzer 83693 360433 9094 0 3 0x10008a pause ksh 9094 253758 33976 0 3 0x92 select sshd 33976 239506 1 0 3 0x80 select sshd 75794 315817 68609 73 3 0x100090 kqread syslogd 68609 12986 1 0 3 0x100082 netio syslogd 46313 247560 1 77 3 0x100090 poll dhclient 10672 46389 1 0 3 0x80 poll dhclient 65942 69509 0 0 3 0x14200 bored smr 25009 329602 0 0 2 0x14200 zerothread 12851 340531 0 0 3 0x14200 aiodoned aiodoned 60690 73682 0 0 3 0x14200 syncer update 7439 89515 0 0 3 0x14200 cleaner cleaner 71984 336999 0 0 3 0x14200 reaper reaper 58882 438299 0 0 3 0x14200 pgdaemon pagedaemon 77899 234597 0 0 3 0x14200 bored crynlk 68356 279107 0 0 3 0x14200 bored crypto 15956 149741 0 0 3 0x40014200 acpi0 acpi0 6443 366242 0 0 3 0x14200 bored softnet 52919 142514 0 0 3 0x14200 bored systqmp 69907 165752 0 0 3 0x14200 bored systq 43527 106808 0 0 3 0x40014200 bored softclock 71080 8640 0 0 3 0x40014200 idle0 1 87048 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 9512 6363K 7006K 78643K 12135 0 pcb 13 8K 8K 78643K 173 0 rtable 118 8K 12K 78643K 885 0 ifaddr 99 20K 21K 78643K 281 0 sysctl 2 0K 0K 78643K 4 0 counters 21 16K 16K 78643K 41 0 ioctlops 1 0K 4K 78643K 800 0 iov 0 0K 16K 78643K 116 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1743 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 0K 0K 78643K 2 0 sem 11 1K 1K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 1009 0 sigio 0 0K 0K 78643K 4 0 proc 50 38K 63K 78643K 585 0 subproc 32 2K 2K 78643K 102 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 101 0 in_multi 105 5K 5K 78643K 272 0 ether_multi 1 0K 0K 78643K 39 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 308 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 138 72K 73K 78643K 3306 0 UVM aobj 45 4K 5K 78643K 50 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 156 0 NDP 13 0K 0K 78643K 47 0 temp 114 3847K 3927K 78643K 54692 0 kqueue 3 4K 10K 78643K 34 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 19 0 11 1 0 1 1 0 8 0 rtpcb 80 77 0 75 1 0 1 1 0 8 0 rtentry 112 128 0 92 2 0 2 2 0 8 0 unpcb 120 327 0 318 1 0 1 1 0 8 0 syncache 264 14 0 14 4 3 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 132 0 132 1 1 0 1 0 8 0 tcpcb 544 337 0 333 2 1 1 2 0 8 0 ipq 40 4 0 2 2 1 1 1 0 8 0 ipqe 40 94 0 92 2 1 1 1 0 8 0 inpcb 280 878 0 871 6 4 2 2 0 8 1 rttmr 72 2 0 1 1 0 1 1 0 8 0 nd6 48 24 0 20 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pfosfp 40 1 0 1 1 1 0 1 0 8 0 pfosfpen 112 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 143 0 133 4 2 2 2 0 8 1 pftag 88 24 0 22 4 3 1 1 0 8 0 pfstitem 24 4 0 2 1 0 1 1 0 8 0 pfstkey 112 4 0 2 1 0 1 1 0 8 0 pfstate 328 2 0 0 1 0 1 1 0 8 0 pfrule 1360 103 0 21 7 0 7 7 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 544 0 348 17 4 13 14 0 8 0 art_table 32 547 0 348 2 0 2 2 0 8 0 art_node 16 125 0 93 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 11 0 2 1 0 1 1 0 8 0 shmpl 112 48 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2832 0 1433 88 0 88 88 0 8 0 ffsino 240 2832 0 1433 83 0 83 83 0 8 0 nchpl 144 4441 0 2851 60 0 60 60 0 8 0 uvmvnodes 72 3273 0 0 60 0 60 60 0 8 0 vnodes 208 3273 0 0 173 0 173 173 0 8 0 namei 1024 13950 0 13950 2 1 1 1 0 8 1 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 528 8 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 49 0 38 1 0 1 1 0 8 0 scxspl 192 14322 0 14322 1 0 1 1 0 8 1 plimitpl 152 72 0 65 1 0 1 1 0 8 0 sigapl 424 1186 0 1156 4 0 4 4 0 8 0 futexpl 56 18591 0 18591 3 2 1 1 0 8 1 knotepl 112 159 0 140 1 0 1 1 0 8 0 kqueuepl 144 106 0 102 1 0 1 1 0 8 0 pipelkpl 16 231 0 221 1 0 1 1 0 8 0 pipepl 120 462 0 443 1 0 1 1 0 8 0 fdescpl 432 1170 0 1156 2 0 2 2 0 8 0 filepl 120 7725 0 7627 4 0 4 4 0 8 1 lockfpl 104 1220 0 1219 1 0 1 1 0 8 0 lockfspl 48 264 0 263 1 0 1 1 0 8 0 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 853 0 845 1 0 1 1 0 8 0 zombiepl 144 1156 0 1156 1 0 1 1 0 8 1 processpl 920 1186 0 1156 4 0 4 4 0 8 0 procpl 624 2369 0 2331 4 0 4 4 0 8 0 sosppl 128 10 0 10 2 2 0 1 0 8 0 sockpl 400 1286 0 1268 5 2 3 4 0 8 0 mcl64k 65536 132 0 132 3 2 1 1 0 8 1 mcl16k 16384 150 0 150 3 2 1 1 0 8 1 mcl12k 12288 57 0 57 3 2 1 1 0 8 1 mcl9k 9216 19 0 19 5 4 1 1 0 8 1 mcl8k 8192 66 0 66 3 2 1 1 0 8 1 mcl4k 4096 70 0 70 3 2 1 1 0 8 1 mcl2k2 2112 9 0 9 5 5 0 1 0 8 0 mcl2k 2048 75787 0 75744 18 11 7 13 0 8 0 mtagpl 80 160 0 52 4 1 3 3 0 8 0 mbufpl 256 131628 0 131284 39 15 24 24 0 8 0 bufpl 280 7241 0 1889 383 0 383 383 0 8 0 anonpl 16 131079 0 115171 87 6 81 82 0 107 7 amapchunkpl 152 6623 0 6478 38 30 8 20 0 158 1 amappl16 192 5643 0 4642 77 18 59 64 0 8 8 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 541 0 536 1 0 1 1 0 8 0 amappl13 168 54 0 51 1 0 1 1 0 8 0 amappl12 160 300 0 296 2 1 1 1 0 8 0 amappl11 152 330 0 319 1 0 1 1 0 8 0 amappl10 144 80 0 75 1 0 1 1 0 8 0 amappl9 136 444 0 443 1 0 1 1 0 8 0 amappl8 128 495 0 450 2 0 2 2 0 8 0 amappl7 120 177 0 162 1 0 1 1 0 8 0 amappl6 112 299 0 291 1 0 1 1 0 8 0 amappl5 104 1174 0 1160 1 0 1 1 0 8 0 amappl4 96 638 0 612 1 0 1 1 0 8 0 amappl3 88 407 0 402 1 0 1 1 0 8 0 amappl2 80 8595 0 8525 2 0 2 2 0 8 0 amappl1 72 30083 0 29675 23 14 9 17 0 8 0 amappl 80 2685 0 2641 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 49 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1178 0 1157 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1178 0 1157 1 0 1 1 0 8 0 vmmpekpl 168 11025 0 10997 2 0 2 2 0 8 0 vmmpepl 168 144595 0 142494 144 36 108 131 0 357 14 vmsppl 272 1177 0 1157 2 0 2 2 0 8 0 pdppl 4096 2362 0 2321 7 1 6 6 0 8 0 pvpl 32 356726 0 337802 205 12 193 196 0 265 22 pmappl 200 1177 0 1157 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 294 0 45 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(ffffffff823cedb8) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff828390e8,65,fffffd8057787d30,fffffd8057787d20,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b6d200,3,ffff80001d6c1018) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd80695344e0,c0e04412,ffff800000b6d200,3,fffffd806c3bf8a0,ffff80001d6c1018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd805d880da0,c0e04412,ffff800000b6d200,ffff80001d6c1018) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6c1018,ffff8000209cfe78,ffff8000209cfec0) at sys_ioctl+0x4a1 syscall(ffff8000209cff40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb17c3e85c10, 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(ffffffff823cedb8) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(65) at unhandled_af+0x16 pf_build_tcp(ffffffff828390e8,65,fffffd8057787d30,fffffd8057787d20,7973,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd8057788e18) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff800000b6d200,3,ffff80001d6c1018) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd80695344e0,c0e04412,ffff800000b6d200,3,fffffd806c3bf8a0,ffff80001d6c1018) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd805d880da0,c0e04412,ffff800000b6d200,ffff80001d6c1018) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d6c1018,ffff8000209cfe78,ffff8000209cfec0) at sys_ioctl+0x4a1 syscall(ffff8000209cff40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb17c3e85c10, count: -11