panic: unhandled af 12 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 482841 33621 0 0 0 1 syz-executor.0 *245246 33621 0 0 0x4000000 0K syz-executor.0 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(ffff800023bc5208,ffff800023bc5500,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800023bc5500,1,ffff800020ac98c8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6cd0f0,c0504417,ffff800023bc5500,1,fffffd807f7beb40,ffff800020ac98c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806496a858,c0504417,ffff800023bc5500,ffff800020ac98c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac98c8,ffff800023bc5618,ffff800023bc5660) at sys_ioctl+0x5b9 syscall(ffff800023bc56e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bc56e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57e69640040, 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(ffff800023bc5208,ffff800023bc5500,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800023bc5500,1,ffff800020ac98c8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6cd0f0,c0504417,ffff800023bc5500,1,fffffd807f7beb40,ffff800020ac98c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806496a858,c0504417,ffff800023bc5500,ffff800020ac98c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac98c8,ffff800023bc5618,ffff800023bc5660) at sys_ioctl+0x5b9 syscall(ffff800023bc56e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bc56e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57e69640040, count: -10 ddb{0}> show registers rdi 0xffffffff81f3d997 db_enter+0x17 rsi 0x8ac rbp 0xffff800023bc50c0 rbx 0xffff800023bc5170 rdx 0x8ad rcx 0xffff800021f7e000 rax 0xffff800021f7e000 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0x25 r11 0xe99d1c58eb7bde8a r12 0x3000000008 r13 0xffff800023bc50d0 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bc50b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=245246 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac93d8,0xffff800020ac8a08 process=0xffff800020af43a0 user=0xffff800023bc0000, vmspace=0xfffffd807efff730 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33621 482841 360 0 7 0 syz-executor.0 33621 478095 360 0 3 0x4000080 fsleep syz-executor.0 *33621 245246 360 0 7 0x4000000 syz-executor.0 33621 15833 360 0 3 0x4000080 fsleep syz-executor.0 9360 515095 0 0 3 0x14200 bored sosplice 360 133794 46564 0 3 0x82 nanosleep syz-executor.0 7092 84547 46564 0 2 0x2 syz-executor.1 46564 330470 9718 0 3 0x82 thrsleep syz-fuzzer 46564 76613 9718 0 3 0x4000082 nanosleep syz-fuzzer 46564 505098 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 330580 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 249234 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 377887 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 117799 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 316159 9718 0 3 0x4000082 thrsleep syz-fuzzer 46564 138631 9718 0 3 0x4000082 kqread syz-fuzzer 46564 178503 9718 0 3 0x4000082 thrsleep syz-fuzzer 9718 88469 72221 0 3 0x10008a pause ksh 72221 405178 34884 0 3 0x92 select sshd 78217 300772 1 0 3 0x100083 ttyin getty 34884 242339 1 0 3 0x80 select sshd 30063 129573 79373 74 3 0x100092 bpf pflogd 79373 185043 1 0 3 0x80 netio pflogd 97563 468030 61498 73 3 0x100090 kqread syslogd 61498 444376 1 0 3 0x100082 netio syslogd 45424 224696 1 77 3 0x100090 poll dhclient 40614 6138 1 0 3 0x80 poll dhclient 73767 400659 0 0 3 0x14200 pgzero zerothread 68521 324590 0 0 3 0x14200 aiodoned aiodoned 11123 20855 0 0 3 0x14200 syncer update 85673 342516 0 0 3 0x14200 cleaner cleaner 98412 1673 0 0 3 0x14200 reaper reaper 18276 395961 0 0 3 0x14200 pgdaemon pagedaemon 34494 265307 0 0 3 0x14200 bored crynlk 32723 349846 0 0 3 0x14200 bored crypto 53842 156136 0 0 3 0x40014200 acpi0 acpi0 55767 268703 0 0 3 0x40014200 idle1 68981 101226 0 0 3 0x14200 bored softnet 13102 296857 0 0 3 0x14200 bored systqmp 45472 176568 0 0 3 0x14200 bored systq 91907 90070 0 0 3 0x40014200 bored softclock 9932 168072 0 0 3 0x40014200 idle0 16315 411741 0 0 3 0x14200 bored smr 1 502929 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33621 (syz-executor.0) thread 0xffff800020ac98c8 (245246) 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 Process 7092 (syz-executor.1) thread 0xffff800020ac8ee8 (84547) exclusive rrwlock inode r = 0 (0xfffffd8064da60a0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806acbf5e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2959 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9477 6407K 6600K 78643K 17456 0 pcb 13 8K 9K 78643K 12477 0 rtable 101 3K 3K 78643K 632 0 ifaddr 43 10K 10K 78643K 71 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 3933 0 iov 0 0K 16K 78643K 556 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 5860 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 728 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 385 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 32001 0 sigio 1 0K 0K 78643K 2499 0 proc 61 63K 95K 78643K 520 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1125 0 in_multi 29 1K 2K 78643K 262 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 24 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 233 0 pfkey data 0 0K 0K 78643K 16 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 191 42K 43K 78643K 79741 0 UVM aobj 130 4K 4K 78643K 130 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 81 0 NDP 6 0K 0K 78643K 27 0 temp 110 3024K 3094K 78643K 111621 0 kqueue 0 0K 0K 78643K 51 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 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 154 0 152 1 0 1 1 0 8 0 rtentry 112 110 0 68 2 0 2 2 0 8 0 unpcb 120 8174 0 8164 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 31413 0 31407 23 21 2 3 0 8 1 inpcb 280 55649 0 55638 43 40 3 4 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 19 0 16 1 0 1 1 0 8 0 pkpcb 40 44 0 44 4 4 0 1 0 8 0 pffrag 232 362 0 362 2 2 0 1 0 482 0 pffrnode 88 362 0 362 2 2 0 1 0 8 0 pffrent 40 1119 0 1119 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 39 0 37 1 0 1 1 0 8 0 pfstkey 112 39 0 37 1 0 1 1 0 8 0 pfstate 328 39 0 37 2 1 1 2 0 8 0 pfrule 1360 25 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 562 0 365 14 0 14 14 0 8 0 art_table 32 563 0 365 2 0 2 2 0 8 0 art_node 16 109 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 0 1 0 1 1 0 8 0 semapl 112 383 0 373 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 35965 0 34529 47 0 47 47 0 8 0 ffsino 272 35965 0 34529 98 1 97 97 0 8 0 nchpl 144 73609 0 71935 65 2 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 181891 0 181890 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 203462 0 203462 8 7 1 7 0 8 1 plimitpl 152 835 0 827 1 0 1 1 0 8 0 sigapl 432 32194 0 32179 3 1 2 3 0 8 0 futexpl 56 226205 0 226203 1 0 1 1 0 8 0 knotepl 112 584 0 565 1 0 1 1 0 8 0 kqueuepl 104 2143 0 2141 1 0 1 1 0 8 0 pipepl 112 5872 0 5849 1 0 1 1 0 8 0 fdescpl 488 32195 0 32179 3 0 3 3 0 8 0 filepl 152 142500 0 142390 34 28 6 6 0 8 1 lockfpl 104 2127 0 2126 1 0 1 1 0 8 0 lockfspl 48 931 0 930 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 179 0 168 1 0 1 1 0 8 0 ucredpl 96 10966 0 10957 1 0 1 1 0 8 0 zombiepl 144 32179 0 32179 1 0 1 1 0 8 1 processpl 904 32211 0 32179 4 0 4 4 0 8 0 procpl 632 78436 0 78392 25 20 5 5 0 8 1 srpgc 64 4 0 4 1 1 0 1 0 8 0 sosppl 128 6 0 6 1 0 1 1 0 8 1 sockpl 384 64628 0 64605 62 57 5 7 0 8 2 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 31 0 0 4 2 2 3 0 8 0 mcl12k 12288 38 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 15 3 12 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 578 0 0 16 1 15 15 0 8 0 bufpl 280 39273 0 32203 506 0 506 506 0 8 0 anonpl 16 1948540 0 1943531 30 1 29 29 0 125 0 amapchunkpl 152 125835 0 125735 9 4 5 8 0 158 0 amappl16 192 126140 0 125804 23 5 18 19 0 8 1 amappl15 184 62 0 58 1 0 1 1 0 8 0 amappl14 176 15794 0 15791 1 0 1 1 0 8 0 amappl12 160 9251 0 9249 2 1 1 1 0 8 0 amappl11 152 7009 0 6993 1 0 1 1 0 8 0 amappl10 144 22 0 16 1 0 1 1 0 8 0 amappl9 136 628 0 625 1 0 1 1 0 8 0 amappl8 128 844 0 743 4 0 4 4 0 8 0 amappl7 120 118 0 104 1 0 1 1 0 8 0 amappl6 112 6992 0 6983 1 0 1 1 0 8 0 amappl5 104 9766 0 9751 1 0 1 1 0 8 0 amappl4 96 32586 0 32553 1 0 1 1 0 8 0 amappl3 88 16717 0 16709 1 0 1 1 0 8 0 amappl2 80 256904 0 256830 3 1 2 3 0 8 0 amappl1 72 581050 0 580608 26 16 10 21 0 8 0 amappl 80 78697 0 78654 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 32197 0 32179 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 32197 0 32179 1 0 1 1 0 8 0 vmmpekpl 168 149883 0 149851 3 1 2 2 0 8 0 vmmpepl 168 3620628 0 3619041 111 36 75 82 0 357 2 vmsppl 368 32196 0 32179 2 0 2 2 0 8 0 pdppl 4096 64401 0 64360 6 0 6 6 0 8 0 pvpl 32 5369079 0 5360820 166 83 83 118 0 265 0 pmappl 232 32196 0 32179 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 201 0 32 5 0 5 5 0 8 0