panic: unhandled af 12 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 123676 32849 0 0 0 1 syz-executor.1 *451016 32849 0 0 0x4000000 0K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7d9a) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(c) at unhandled_af+0x16 pf_addrcpy(ffff800021bb6b18,ffff800021bb6e10,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800021bb6e10,1,ffff800020ac93d8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6cc290,c0504417,ffff800021bb6e10,1,fffffd807f7be6c0,ffff800020ac93d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80648b5150,c0504417,ffff800021bb6e10,ffff800020ac93d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac93d8,ffff800021bb6f28,ffff800021bb6f70) at sys_ioctl+0x5b9 syscall(ffff800021bb6ff0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021bb6ff0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdc5a648f10, count: 5 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic unhandled af 12 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7d9a) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(c) at unhandled_af+0x16 pf_addrcpy(ffff800021bb6b18,ffff800021bb6e10,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800021bb6e10,1,ffff800020ac93d8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6cc290,c0504417,ffff800021bb6e10,1,fffffd807f7be6c0,ffff800020ac93d8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80648b5150,c0504417,ffff800021bb6e10,ffff800020ac93d8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac93d8,ffff800021bb6f28,ffff800021bb6f70) at sys_ioctl+0x5b9 syscall(ffff800021bb6ff0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021bb6ff0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdc5a648f10, count: -10 ddb{0}> show registers rdi 0xffffffff81f3d997 db_enter+0x17 rsi 0xb4a rbp 0xffff800021bb69d0 rbx 0xffff800021bb6a80 rdx 0xb4b rcx 0xffff800022f9a000 rax 0xffff800022f9a000 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3e524cae8d5264f r12 0x3000000008 r13 0xffff800021bb69e0 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021bb69c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=451016 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac8508,0xffffffff82623980 process=0xffff800020af4728 user=0xffff800021bb2000, vmspace=0xfffffd807efff8a0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32849 123676 21845 0 7 0 syz-executor.1 32849 394070 21845 0 2 0x4000000 syz-executor.1 *32849 451016 21845 0 7 0x4000000 syz-executor.1 92748 202083 73866 0 2 0 syz-executor.0 92748 295474 73866 0 3 0x4000080 poll syz-executor.0 92748 289728 73866 0 3 0x4000080 fsleep syz-executor.0 21845 278798 70332 0 3 0x82 nanosleep syz-executor.1 246 195616 0 0 3 0x14200 bored sosplice 73866 189798 70332 0 3 0x82 nanosleep syz-executor.0 70332 183801 31333 0 3 0x82 kqread syz-fuzzer 70332 340511 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 180809 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 235815 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 71936 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 384910 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 249655 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 240442 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 309283 31333 0 3 0x4000082 thrsleep syz-fuzzer 70332 250603 31333 0 3 0x4000082 thrsleep syz-fuzzer 31333 175274 66900 0 3 0x10008a pause ksh 66900 5302 19025 0 3 0x92 select sshd 90184 52323 1 0 3 0x100083 ttyin getty 19025 508478 1 0 3 0x80 select sshd 81810 42938 26595 74 3 0x100092 bpf pflogd 26595 330048 1 0 3 0x80 netio pflogd 41534 421611 22047 73 3 0x100090 kqread syslogd 22047 397559 1 0 3 0x100082 netio syslogd 96632 510408 1 77 3 0x100090 poll dhclient 88966 337145 1 0 3 0x80 poll dhclient 21789 251284 0 0 2 0x14200 zerothread 3849 203806 0 0 3 0x14200 aiodoned aiodoned 53475 157157 0 0 3 0x14200 syncer update 83216 274543 0 0 3 0x14200 cleaner cleaner 73423 451164 0 0 3 0x14200 reaper reaper 78117 37300 0 0 3 0x14200 pgdaemon pagedaemon 75431 185671 0 0 3 0x14200 bored crynlk 6589 469026 0 0 3 0x14200 bored crypto 95193 39310 0 0 3 0x40014200 acpi0 acpi0 20198 392823 0 0 3 0x40014200 idle1 22639 69550 0 0 3 0x14200 bored softnet 29593 3672 0 0 3 0x14200 bored systqmp 35563 110640 0 0 3 0x14200 bored systq 6931 191464 0 0 3 0x40014200 bored softclock 32258 409260 0 0 3 0x40014200 idle0 36139 84813 0 0 3 0x14200 bored smr 1 476200 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 32849 (syz-executor.1) thread 0xffff800020ac93d8 (451016) exclusive rwlock netlock r = 0 (0xffffffff82471638) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pfioctl+0x15f sys/net/pf_ioctl.c:1028 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8261e160) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9477 6414K 6801K 78643K 41703 0 pcb 13 8K 8K 78643K 1442 0 rtable 115 5K 6K 78643K 271 0 ifaddr 45 10K 10K 78643K 53 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 2201 0 iov 0 0K 16K 78643K 1350 0 mount 1 1K 1K 78643K 1 0 vnodes 1265 79K 79K 78643K 27969 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 192 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 194 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 24673 0 sigio 1 0K 0K 78643K 564 0 proc 61 63K 83K 78643K 638 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 49 0 in_multi 33 2K 2K 78643K 44 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 248 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 203 27K 28K 78643K 56655 0 UVM aobj 130 4K 4K 78643K 198 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 6 0K 0K 78643K 13 0 temp 111 3028K 3094K 78643K 105697 0 kqueue 0 0K 0K 78643K 13 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 126 0 124 1 0 1 1 0 8 0 rtentry 112 55 0 11 2 0 2 2 0 8 0 unpcb 120 17356 0 17342 5 4 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpcb 544 218 0 214 1 0 1 1 0 8 0 inpcb 280 20657 0 20648 37 35 2 3 0 8 1 nd6 48 6 0 2 1 0 1 1 0 8 0 pkpcb 40 21 0 21 1 1 0 1 0 8 0 pffrag 232 8 0 8 2 2 0 1 0 482 0 pffrnode 88 8 0 8 2 2 0 1 0 8 0 pffrent 40 24 0 24 2 2 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfrktable 1344 4 0 1 1 0 1 1 0 8 0 pfstitem 24 18 0 15 1 0 1 1 0 8 0 pfstkey 112 18 0 15 1 0 1 1 0 8 0 pfstate 328 18 0 15 1 0 1 1 0 8 0 pfrule 1360 50 0 16 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 256 0 43 14 0 14 14 0 8 0 art_table 32 257 0 43 2 0 2 2 0 8 0 art_node 16 54 0 14 1 0 1 1 0 8 0 semapl 112 192 0 182 1 0 1 1 0 8 0 shmpl 112 196 0 68 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 27487 0 26075 46 0 46 46 0 8 0 ffsino 272 27487 0 26075 95 0 95 95 0 8 0 nchpl 144 58817 0 57140 66 3 63 63 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 172752 0 172752 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 7 0 0 1 0 1 1 0 8 0 scxspl 192 159846 0 159846 9 8 1 7 0 8 1 plimitpl 152 113 0 105 1 0 1 1 0 8 0 sigapl 432 24869 0 24853 3 1 2 3 0 8 0 futexpl 56 182423 0 182422 1 0 1 1 0 8 0 knotepl 112 251 0 232 1 0 1 1 0 8 0 kqueuepl 104 831 0 829 1 0 1 1 0 8 0 pipepl 112 10772 0 10751 2 1 1 2 0 8 0 fdescpl 488 24870 0 24853 3 0 3 3 0 8 0 filepl 152 133109 0 132996 56 50 6 8 0 8 1 lockfpl 104 2964 0 2963 1 0 1 1 0 8 0 lockfspl 48 1432 0 1431 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 774 0 763 1 0 1 1 0 8 0 ucredpl 96 15342 0 15333 1 0 1 1 0 8 0 zombiepl 144 24853 0 24853 1 0 1 1 0 8 1 processpl 904 24886 0 24853 4 0 4 4 0 8 0 procpl 632 55703 0 55657 26 21 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 384 38368 0 38343 67 63 4 8 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 49 0 0 2 0 2 2 0 8 0 mcl8k 8192 31 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 419 0 0 27 20 7 25 0 8 0 mtagpl 80 10 0 0 1 0 1 1 0 8 0 mbufpl 256 1036 0 0 13 0 13 13 0 8 0 bufpl 280 31924 0 24854 506 0 506 506 0 8 0 anonpl 16 1510079 0 1502212 41 3 38 39 0 125 0 amapchunkpl 152 87536 0 87424 8 3 5 6 0 158 0 amappl16 192 110660 0 110173 25 0 25 25 0 8 0 amappl15 184 61 0 58 1 0 1 1 0 8 0 amappl14 176 37 0 34 1 0 1 1 0 8 0 amappl13 168 5938 0 5937 1 0 1 1 0 8 0 amappl12 160 3 0 2 2 1 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 16 0 11 1 0 1 1 0 8 0 amappl9 136 7228 0 7223 1 0 1 1 0 8 0 amappl8 128 6972 0 6865 4 0 4 4 0 8 0 amappl7 120 111 0 98 1 0 1 1 0 8 0 amappl6 112 73 0 60 1 0 1 1 0 8 0 amappl5 104 341 0 327 1 0 1 1 0 8 0 amappl4 96 24965 0 24932 2 1 1 2 0 8 0 amappl3 88 1061 0 1052 1 0 1 1 0 8 0 amappl2 80 202035 0 201954 3 1 2 3 0 8 0 amappl1 72 443777 0 443299 25 15 10 20 0 8 0 amappl 80 55963 0 55918 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 197 0 68 3 0 3 3 0 8 0 uaddrrnd 24 24870 0 24853 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24870 0 24853 1 0 1 1 0 8 0 vmmpekpl 168 129902 0 129868 3 1 2 2 0 8 0 vmmpepl 168 2780843 0 2778963 149 66 83 88 0 357 1 vmsppl 368 24869 0 24853 2 0 2 2 0 8 0 pdppl 4096 49747 0 49706 6 0 6 6 0 8 0 pvpl 32 4814271 0 4803048 183 81 102 118 0 265 0 pmappl 232 24869 0 24853 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 186 0 24 5 0 5 5 0 8 0