panic: unhandled af 3 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 23032 85481 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d259c) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(3) at unhandled_af+0x16 pf_build_tcp(ffffffff82813cd8,3,fffffd8057ddda90,fffffd8057ddda80,0,9c64) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff8000006b5500,3,ffff80001d70a3a0) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dcb2340,c0e04412,ffff8000006b5500,3,fffffd806c3bfa20,ffff80001d70a3a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80577ae088,c0e04412,ffff8000006b5500,ffff80001d70a3a0) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d70a3a0,ffff8000209ef528,ffff8000209ef570) at sys_ioctl+0x4a1 syscall(ffff8000209ef5f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10f023cd410, 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 3 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d259c) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(3) at unhandled_af+0x16 pf_build_tcp(ffffffff82813cd8,3,fffffd8057ddda90,fffffd8057ddda80,0,9c64) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff8000006b5500,3,ffff80001d70a3a0) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dcb2340,c0e04412,ffff8000006b5500,3,fffffd806c3bfa20,ffff80001d70a3a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80577ae088,c0e04412,ffff8000006b5500,ffff80001d70a3a0) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d70a3a0,ffff8000209ef528,ffff8000209ef570) at sys_ioctl+0x4a1 syscall(ffff8000209ef5f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10f023cd410, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000209eeed0 rbx 0xffff8000209eef80 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81c35ebf kprintf+0x15f r9 0x1 r10 0x2 r11 0xe53cbea9d966e7de r12 0x3000000008 r13 0xffff8000209eeee0 r14 0x100 r15 0x1 rip 0xffffffff815297e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000209eeec0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=23032 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=68, nice=20 forw=0xffffffffffffffff, list=0xffff80001d709500,0xffffffff8280e640 process=0xffff8000209bce90 user=0xffff8000209ea000, vmspace=0xfffffd8053997ab0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 85481 39782 93132 0 2 0 syz-executor.0 *85481 23032 93132 0 7 0x4000000 syz-executor.0 74459 148925 0 0 3 0x14280 nfsidl nfsio 36823 166083 0 0 3 0x14280 nfsidl nfsio 53971 282857 0 0 3 0x14280 nfsidl nfsio 4453 375641 0 0 3 0x14280 nfsidl nfsio 87053 404365 0 0 3 0x14280 nfsidl nfsio 9365 495306 0 0 3 0x14280 nfsidl nfsio 6213 282802 0 0 3 0x14280 nfsidl nfsio 80499 346708 0 0 3 0x14280 nfsidl nfsio 34762 214424 0 0 3 0x14280 nfsidl nfsio 86574 173978 0 0 3 0x14280 nfsidl nfsio 51100 343803 0 0 3 0x14280 nfsidl nfsio 29669 443919 0 0 3 0x14280 nfsidl nfsio 45835 161328 0 0 3 0x14280 nfsidl nfsio 31895 303336 0 0 3 0x14280 nfsidl nfsio 16229 409031 0 0 3 0x14280 nfsidl nfsio 25092 371990 0 0 3 0x14280 nfsidl nfsio 19053 391681 0 0 3 0x14280 nfsidl nfsio 1710 495445 0 0 3 0x14280 nfsidl nfsio 76164 32826 0 0 3 0x14280 nfsidl nfsio 77614 286251 0 0 3 0x14280 nfsidl nfsio 10669 180480 0 0 3 0x14200 acct acct 93132 321401 2835 0 3 0x82 nanosleep syz-executor.0 30632 72080 0 0 3 0x14200 bored sosplice 89792 315241 2835 0 3 0x82 nanosleep syz-executor.1 2835 221910 71385 0 3 0x82 kqread syz-fuzzer 2835 114231 71385 0 3 0x4000082 nanosleep syz-fuzzer 2835 402926 71385 0 3 0x4000082 thrsleep syz-fuzzer 2835 56415 71385 0 3 0x4000082 thrsleep syz-fuzzer 2835 26352 71385 0 3 0x4000082 thrsleep syz-fuzzer 2835 204860 71385 0 3 0x4000082 thrsleep syz-fuzzer 2835 489687 71385 0 3 0x4000082 thrsleep syz-fuzzer 2835 135431 71385 0 3 0x4000082 thrsleep syz-fuzzer 71385 29097 40533 0 3 0x10008a pause ksh 40533 474091 93481 0 3 0x92 select sshd 46851 347296 1 0 3 0x100083 ttyin getty 93481 306020 1 0 3 0x80 select sshd 67465 433012 33736 73 3 0x100090 kqread syslogd 33736 462965 1 0 3 0x100082 netio syslogd 80322 409767 1 77 3 0x100090 poll dhclient 18815 184027 1 0 3 0x80 poll dhclient 90274 424163 0 0 3 0x14200 bored smr 82101 300877 0 0 2 0x14200 zerothread 32339 73712 0 0 3 0x14200 aiodoned aiodoned 96161 30569 0 0 3 0x14200 syncer update 88331 94819 0 0 3 0x14200 cleaner cleaner 3529 115815 0 0 3 0x14200 reaper reaper 92796 484632 0 0 3 0x14200 pgdaemon pagedaemon 30 230593 0 0 3 0x14200 bored crynlk 1356 61316 0 0 3 0x14200 bored crypto 76568 170702 0 0 3 0x40014200 acpi0 acpi0 94389 180651 0 0 3 0x14200 bored softnet 80502 484999 0 0 3 0x14200 bored systqmp 82996 214269 0 0 3 0x14200 bored systq 26205 469470 0 0 3 0x40014200 bored softclock 56995 225841 0 0 3 0x40014200 idle0 1 228357 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 9535 6548K 7064K 78643K 12907 0 pcb 13 8K 8K 78643K 188 0 rtable 108 9K 11K 78643K 1955 0 ifaddr 102 21K 21K 78643K 418 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 39 0 ioctlops 1 0K 4K 78643K 222 0 iov 0 0K 16K 78643K 184 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1931 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 188 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 1050 0 sigio 0 0K 0K 78643K 28 0 proc 51 38K 63K 78643K 474 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 68 0 in_multi 112 4K 4K 78643K 232 0 ether_multi 1 0K 0K 78643K 26 0 mrt 0 0K 0K 78643K 16 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 268 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 166 186K 191K 78643K 3287 0 UVM aobj 31 2K 2K 78643K 49 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 151 0 NDP 14 0K 0K 78643K 46 0 temp 137 3859K 3923K 78643K 22523 0 kqueue 3 4K 22K 78643K 100 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 15 0 8 1 0 1 1 0 8 0 rtpcb 80 1029 0 1027 1 0 1 1 0 8 0 rtentry 112 121 0 92 2 0 2 2 0 8 0 unpcb 120 339 0 331 1 0 1 1 0 8 0 syncache 264 12 0 12 4 4 0 1 0 8 0 tcpqe 32 328 0 328 1 1 0 1 0 8 0 tcpcb 544 479 0 475 1 0 1 1 0 8 0 ipq 40 76 0 76 3 2 1 1 0 8 1 ipqe 40 373 0 373 3 2 1 1 0 8 1 inpcb 280 1135 0 1128 4 3 1 2 0 8 0 rttmr 72 7 0 7 4 4 0 1 0 8 0 nd6 48 20 0 18 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 2 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 7 0 7 4 4 0 1 0 8 0 pfstscr 40 5 0 0 1 0 1 1 0 8 0 pfrktable 1344 313 0 301 5 3 2 2 0 8 1 pftag 88 77 0 70 2 1 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 7 0 0 1 0 1 1 0 8 0 pfstkey 112 7 0 0 1 0 1 1 0 8 0 pfstate 328 5 0 0 1 0 1 1 0 8 0 pfrule 1360 83 0 54 3 0 3 3 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 603 0 456 15 4 11 14 0 8 0 art_table 32 605 0 456 2 0 2 2 0 8 0 art_node 16 118 0 94 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 9 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 185 0 175 1 0 1 1 0 8 0 shmpl 112 47 0 18 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2970 0 1575 88 0 88 88 0 8 0 ffsino 240 2970 0 1575 83 0 83 83 0 8 0 nchpl 144 4830 0 3251 60 0 60 60 0 8 0 uvmvnodes 72 3536 0 0 65 0 65 65 0 8 0 vnodes 208 3536 0 0 187 0 187 187 0 8 0 namei 1024 14184 0 14184 5 4 1 1 0 8 1 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 528 27 0 9 2 0 2 2 0 8 0 pfiaddrpl 120 110 0 96 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 15101 0 15101 1 0 1 1 0 8 1 plimitpl 152 132 0 125 1 0 1 1 0 8 0 sigapl 424 1256 0 1206 6 0 6 6 0 8 0 futexpl 56 22928 0 22928 5 4 1 1 0 8 1 knotepl 112 256 0 237 2 1 1 2 0 8 0 kqueuepl 144 201 0 199 1 0 1 1 0 8 0 pipelkpl 16 221 0 211 1 0 1 1 0 8 0 pipepl 120 442 0 423 1 0 1 1 0 8 0 fdescpl 432 1219 0 1205 2 0 2 2 0 8 0 filepl 120 8745 0 8647 5 1 4 4 0 8 1 lockfpl 104 295 0 293 1 0 1 1 0 8 0 lockfspl 48 104 0 102 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 1135 0 1128 1 0 1 1 0 8 0 zombiepl 144 1206 0 1205 2 1 1 1 0 8 0 processpl 920 1256 0 1205 7 0 7 7 0 8 0 procpl 624 2471 0 2412 5 0 5 5 0 8 0 sosppl 128 21 0 21 4 4 0 1 0 8 0 sockpl 400 2518 0 2501 10 6 4 4 0 8 2 mcl64k 65536 83 0 83 5 4 1 1 0 8 1 mcl16k 16384 19 0 19 5 4 1 1 0 8 1 mcl12k 12288 37 0 37 5 4 1 1 0 8 1 mcl9k 9216 20 0 20 5 5 0 1 0 8 0 mcl8k 8192 59 0 59 5 4 1 1 0 8 1 mcl4k 4096 142 0 142 6 5 1 1 0 8 1 mcl2k2 2112 10 0 10 4 4 0 1 0 8 0 mcl2k 2048 72999 0 72942 20 11 9 18 0 8 1 mtagpl 80 247 0 124 4 1 3 3 0 8 0 mbufpl 256 136235 0 135720 261 219 42 227 0 8 0 bufpl 280 6220 0 868 383 0 383 383 0 8 0 anonpl 16 137051 0 121067 113 38 75 90 0 107 0 amapchunkpl 152 5576 0 5438 36 28 8 20 0 158 1 amappl16 192 6421 0 5400 81 28 53 64 0 8 1 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 306 0 300 1 0 1 1 0 8 0 amappl13 168 477 0 474 1 0 1 1 0 8 0 amappl12 160 293 0 289 1 0 1 1 0 8 0 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 15 0 9 1 0 1 1 0 8 0 amappl9 136 365 0 364 1 0 1 1 0 8 0 amappl8 128 392 0 337 2 0 2 2 0 8 0 amappl7 120 119 0 106 1 0 1 1 0 8 0 amappl6 112 31 0 21 1 0 1 1 0 8 0 amappl5 104 959 0 945 1 0 1 1 0 8 0 amappl4 96 673 0 643 1 0 1 1 0 8 0 amappl3 88 415 0 409 1 0 1 1 0 8 0 amappl2 80 9212 0 9142 2 0 2 2 0 8 0 amappl1 72 30629 0 30216 24 15 9 17 0 8 0 amappl 80 2712 0 2660 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 48 0 18 1 0 1 1 0 8 0 uaddrrnd 24 1246 0 1214 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1246 0 1214 1 0 1 1 0 8 0 vmmpekpl 168 10477 0 10441 2 0 2 2 0 8 0 vmmpepl 168 148899 0 146732 150 49 101 125 0 357 6 vmsppl 272 1245 0 1214 3 0 3 3 0 8 0 pdppl 4096 2498 0 2446 9 2 7 7 0 8 0 pvpl 32 367393 0 348314 234 55 179 204 0 265 5 pmappl 200 1245 0 1214 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 531 0 265 13 3 10 13 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(ffffffff823d259c) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(3) at unhandled_af+0x16 pf_build_tcp(ffffffff82813cd8,3,fffffd8057ddda90,fffffd8057ddda80,0,9c64) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff8000006b5500,3,ffff80001d70a3a0) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dcb2340,c0e04412,ffff8000006b5500,3,fffffd806c3bfa20,ffff80001d70a3a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80577ae088,c0e04412,ffff8000006b5500,ffff80001d70a3a0) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d70a3a0,ffff8000209ef528,ffff8000209ef570) at sys_ioctl+0x4a1 syscall(ffff8000209ef5f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10f023cd410, 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(ffffffff823d259c) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(3) at unhandled_af+0x16 pf_build_tcp(ffffffff82813cd8,3,fffffd8057ddda90,fffffd8057ddda80,0,9c64) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805c7dc7b0) at pf_remove_state+0x9a sys/net/pf.c:1382 pfioctl(4900,c0e04412,ffff8000006b5500,3,ffff80001d70a3a0) at pfioctl+0x1352 sys/net/pf_ioctl.c:1531 VOP_IOCTL(fffffd805dcb2340,c0e04412,ffff8000006b5500,3,fffffd806c3bfa20,ffff80001d70a3a0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80577ae088,c0e04412,ffff8000006b5500,ffff80001d70a3a0) at vn_ioctl+0xb5 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80001d70a3a0,ffff8000209ef528,ffff8000209ef570) at sys_ioctl+0x4a1 syscall(ffff8000209ef5f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10f023cd410, count: -11