panic: unhandled af 255 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 371268 65238 0 0 0 1 syz-executor.1 *460859 65238 0 0 0x4000000 0K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6aa0) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(ff) at unhandled_af+0x16 pf_addrcpy(ffff800021ba16a8,ffff800021ba19a0,ff) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800021ba19a0,1,ffff800020ad7650) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c4430,c0504417,ffff800021ba19a0,1,fffffd807f7be960,ffff800020ad7650) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066cb7558,c0504417,ffff800021ba19a0,ffff800020ad7650) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ad7650,ffff800021ba1ab8,ffff800021ba1b00) at sys_ioctl+0x5b9 syscall(ffff800021ba1b80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba1b80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x85515a901d0, 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 255 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6aa0) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(ff) at unhandled_af+0x16 pf_addrcpy(ffff800021ba16a8,ffff800021ba19a0,ff) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800021ba19a0,1,ffff800020ad7650) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c4430,c0504417,ffff800021ba19a0,1,fffffd807f7be960,ffff800020ad7650) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8066cb7558,c0504417,ffff800021ba19a0,ffff800020ad7650) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ad7650,ffff800021ba1ab8,ffff800021ba1b00) at sys_ioctl+0x5b9 syscall(ffff800021ba1b80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba1b80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x85515a901d0, count: -10 ddb{0}> show registers rdi 0xffffffff8189d737 db_enter+0x17 rsi 0x93d rbp 0xffff800021ba1560 rbx 0xffff800021ba1610 rdx 0x93e rcx 0xffff800022d9a000 rax 0xffff800022d9a000 r8 0xffffffff81a0824f kprintf+0x16f r9 0x1 r10 0x25 r11 0x5681891cc8411421 r12 0x3000000008 r13 0xffff800021ba1570 r14 0x100 r15 0x1 rip 0xffffffff8189d738 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021ba1550 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=460859 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020ad6780,0xffffffff8265e018 process=0xffff800020af5548 user=0xffff800021b9c000, vmspace=0xfffffd806e79ab88 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65238 371268 84296 0 7 0 syz-executor.1 *65238 460859 84296 0 7 0x4000000 syz-executor.1 84296 462407 60908 0 3 0x82 nanosleep syz-executor.1 63342 274588 60908 0 3 0x82 nanosleep syz-executor.0 60908 61049 96983 0 3 0x82 thrsleep syz-fuzzer 60908 252634 96983 0 2 0x4000482 syz-fuzzer 60908 373492 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 331125 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 503841 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 239776 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 458253 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 389423 96983 0 3 0x4000082 thrsleep syz-fuzzer 60908 1512 96983 0 3 0x4000082 kqread syz-fuzzer 60908 35118 96983 0 3 0x4000082 thrsleep syz-fuzzer 96983 59611 47066 0 3 0x10008a pause ksh 47066 56238 76207 0 3 0x92 select sshd 27277 66197 1 0 3 0x100083 ttyin getty 76207 22206 1 0 3 0x80 select sshd 48511 269376 79136 74 3 0x100092 bpf pflogd 79136 273644 1 0 3 0x80 netio pflogd 99609 407376 77175 73 3 0x100090 kqread syslogd 77175 108616 1 0 3 0x100082 netio syslogd 77444 143104 1 77 3 0x100090 poll dhclient 82720 323535 1 0 3 0x80 poll dhclient 23190 305425 0 0 3 0x14200 pgzero zerothread 30487 57188 0 0 3 0x14200 aiodoned aiodoned 54398 237871 0 0 3 0x14200 syncer update 60974 154935 0 0 3 0x14200 cleaner cleaner 69844 95338 0 0 3 0x14200 reaper reaper 51747 399295 0 0 3 0x14200 pgdaemon pagedaemon 40595 82807 0 0 3 0x14200 bored crynlk 48346 499614 0 0 3 0x14200 bored crypto 57016 113833 0 0 3 0x40014200 acpi0 acpi0 22154 368739 0 0 3 0x40014200 idle1 28615 378278 0 0 3 0x14200 bored softnet 62527 471728 0 0 3 0x14200 bored systqmp 50462 179960 0 0 3 0x14200 bored systq 74912 301592 0 0 2 0x40014200 softclock 35927 272865 0 0 3 0x40014200 idle0 4267 408313 0 0 3 0x14200 bored smr 1 92763 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 65238 (syz-executor.1) thread 0xffff800020ad7650 (460859) exclusive rwlock netlock r = 0 (0xffffffff82455b78) #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 (0xffffffff82631498) #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 9484 6410K 6431K 78643K 17713 0 pcb 13 8K 8K 78643K 226 0 rtable 105 3K 3K 78643K 209 0 ifaddr 44 10K 10K 78643K 45 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1956 0 iov 0 0K 16K 78643K 567 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 5267 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 359 0 VM map 2 1K 1K 78643K 2 0 sem 8 0K 0K 78643K 104 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 17103 0 sigio 0 0K 0K 78643K 200 0 proc 98 65K 95K 78643K 477 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 111 0 in_multi 33 2K 2K 78643K 48 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 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 207 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 122 22K 22K 78643K 39340 0 UVM aobj 130 4K 4K 78643K 320 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 2 0 NDP 6 0K 0K 78643K 10 0 temp 109 3022K 3094K 78643K 168918 0 kqueue 0 0K 0K 78643K 148 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 41 0 39 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 19351 0 19341 8 7 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 5 0 5 3 3 0 1 0 8 0 tcpcb 544 4497 0 4493 1 0 1 1 0 8 0 inpcb 280 25525 0 25516 30 28 2 4 0 8 1 nd6 48 4 0 0 1 0 1 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 2 0 2 1 1 0 1 0 8 0 pfstitem 24 11 0 9 1 0 1 1 0 8 0 pfstkey 112 11 0 9 1 0 1 1 0 8 0 pfstate 328 11 0 9 1 0 1 1 0 8 0 pfrule 1360 23 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 212 0 0 14 0 14 14 0 8 0 art_table 32 213 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 100 0 94 1 0 1 1 0 8 0 shmpl 112 318 0 190 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 22628 0 21208 46 0 46 46 0 8 0 ffsino 272 22628 0 21208 95 0 95 95 0 8 0 nchpl 144 47737 0 46069 63 1 62 62 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 120357 0 120357 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 7 0 1 1 0 1 1 0 8 0 vmpool 560 7 0 1 1 0 1 1 0 8 0 scxspl 192 124963 0 124963 9 8 1 7 0 8 1 plimitpl 152 62 0 54 1 0 1 1 0 8 0 sigapl 432 17302 0 17287 3 1 2 3 0 8 0 futexpl 56 131313 0 131313 1 0 1 1 0 8 1 knotepl 112 2706 0 2687 1 0 1 1 0 8 0 kqueuepl 104 4589 0 4587 1 0 1 1 0 8 0 pipepl 112 9546 0 9527 3 2 1 2 0 8 0 fdescpl 488 17303 0 17287 3 0 3 3 0 8 0 filepl 152 107724 0 107618 31 25 6 7 0 8 1 lockfpl 104 3175 0 3174 1 0 1 1 0 8 0 lockfspl 48 1455 0 1454 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 142 0 131 1 0 1 1 0 8 0 ucredpl 96 6051 0 6042 1 0 1 1 0 8 0 zombiepl 144 17287 0 17286 1 0 1 1 0 8 0 processpl 904 17318 0 17286 4 0 4 4 0 8 0 procpl 632 38552 0 38510 7 3 4 5 0 8 0 sockpl 384 44918 0 44897 68 62 6 9 0 8 3 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 21 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 49 0 0 5 2 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 203 0 0 14 6 8 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 597 0 0 16 2 14 14 0 8 0 bufpl 280 26230 0 19160 506 0 506 506 0 8 0 anonpl 16 1015917 0 1011308 36 15 21 34 0 125 0 amapchunkpl 152 60451 0 60355 7 2 5 7 0 158 0 amappl16 192 70338 0 70120 35 23 12 23 0 8 1 amappl15 184 58 0 55 1 0 1 1 0 8 0 amappl14 176 8615 0 8611 1 0 1 1 0 8 0 amappl13 168 5 0 4 1 0 1 1 0 8 0 amappl12 160 8490 0 8488 2 1 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 20 0 13 1 0 1 1 0 8 0 amappl9 136 602 0 599 1 0 1 1 0 8 0 amappl8 128 257 0 213 2 0 2 2 0 8 0 amappl7 120 104 0 92 1 0 1 1 0 8 0 amappl6 112 65 0 58 1 0 1 1 0 8 0 amappl5 104 8711 0 8696 1 0 1 1 0 8 0 amappl4 96 9139 0 9107 2 1 1 2 0 8 0 amappl3 88 18072 0 18063 1 0 1 1 0 8 0 amappl2 80 138066 0 137987 3 1 2 3 0 8 0 amappl1 72 312473 0 312028 25 15 10 20 0 8 0 amappl 80 38790 0 38753 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 319 0 190 3 0 3 3 0 8 0 uaddrrnd 24 17310 0 17288 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17310 0 17288 1 0 1 1 0 8 0 vmmpekpl 168 85081 0 85047 2 0 2 2 0 8 0 vmmpepl 168 1956190 0 1954757 130 61 69 82 0 357 2 vmsppl 368 17309 0 17288 3 0 3 3 0 8 1 pdppl 4096 34627 0 34582 7 1 6 7 0 8 0 pvpl 32 3210998 0 3203161 225 151 74 118 0 265 6 pmappl 232 17309 0 17288 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 176 0 14 5 0 5 5 0 8 0