panic: unhandled af 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 437001 82892 0 0 0 0 syz-executor.1 *154710 82892 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d51ea) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800023bb6ca8,ffff800023bb6fa0,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800023bb6fa0,1,ffff800020ad6ee8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c91c0,c0504417,ffff800023bb6fa0,1,fffffd807f7be840,ffff800020ad6ee8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8068cc2ef0,c0504417,ffff800023bb6fa0,ffff800020ad6ee8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ad6ee8,ffff800023bb70b8,ffff800023bb7100) at sys_ioctl+0x5b9 syscall(ffff800023bb7180) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb7180) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb733eefa030, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic unhandled af 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d51ea) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800023bb6ca8,ffff800023bb6fa0,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800023bb6fa0,1,ffff800020ad6ee8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c91c0,c0504417,ffff800023bb6fa0,1,fffffd807f7be840,ffff800020ad6ee8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd8068cc2ef0,c0504417,ffff800023bb6fa0,ffff800020ad6ee8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ad6ee8,ffff800023bb70b8,ffff800023bb7100) at sys_ioctl+0x5b9 syscall(ffff800023bb7180) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb7180) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb733eefa030, count: -10 ddb{1}> show registers rdi 0xffffffff81407987 db_enter+0x17 rsi 0xa39 rbp 0xffff800023bb6b60 rbx 0xffff800023bb6c10 rdx 0xa3a rcx 0xffff800022d9c000 rax 0xffff800022d9c000 r8 0xffffffff821554ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x4261afec63914497 r12 0x3000000008 r13 0xffff800023bb6b70 r14 0x100 r15 0x1 rip 0xffffffff81407988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb6b50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=154710 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ad6018,0xffffffff82641530 process=0xffff800020af5c58 user=0xffff800023bb2000, vmspace=0xfffffd807f000a10 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82892 437001 57199 0 7 0 syz-executor.1 82892 457274 57199 0 3 0x4000080 fsleep syz-executor.1 *82892 154710 57199 0 7 0x4000000 syz-executor.1 57199 452009 48119 0 3 0x82 nanosleep syz-executor.1 93340 403724 48119 0 3 0x82 nanosleep syz-executor.0 48119 356600 35395 0 3 0x82 thrsleep syz-fuzzer 48119 172227 35395 0 3 0x4000082 nanosleep syz-fuzzer 48119 345576 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 244053 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 310889 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 320462 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 242028 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 503329 35395 0 3 0x4000082 thrsleep syz-fuzzer 48119 438023 35395 0 3 0x4000082 kqread syz-fuzzer 48119 149370 35395 0 3 0x4000082 thrsleep syz-fuzzer 35395 454104 21102 0 3 0x10008a pause ksh 21102 469803 99290 0 3 0x92 select sshd 46245 136712 1 0 3 0x100083 ttyin getty 99290 335933 1 0 3 0x80 select sshd 16405 424132 75280 74 3 0x100092 bpf pflogd 75280 406877 1 0 3 0x80 netio pflogd 20802 116723 24110 73 3 0x100090 kqread syslogd 24110 179315 1 0 3 0x100082 netio syslogd 41443 393191 1 77 3 0x100090 poll dhclient 51107 374027 1 0 3 0x80 poll dhclient 90387 460172 0 0 3 0x14200 pgzero zerothread 44227 415941 0 0 3 0x14200 aiodoned aiodoned 50923 56138 0 0 3 0x14200 syncer update 13019 254441 0 0 3 0x14200 cleaner cleaner 5008 404010 0 0 3 0x14200 reaper reaper 85990 305142 0 0 3 0x14200 pgdaemon pagedaemon 11430 367712 0 0 3 0x14200 bored crynlk 81600 108842 0 0 3 0x14200 bored crypto 70467 126356 0 0 3 0x40014200 acpi0 acpi0 85763 6012 0 0 3 0x40014200 idle1 5511 89717 0 0 3 0x14200 bored softnet 48425 453515 0 0 3 0x14200 bored systqmp 53455 91113 0 0 3 0x14200 bored systq 83949 221118 0 0 3 0x40014200 bored softclock 58842 362344 0 0 3 0x40014200 idle0 39915 211192 0 0 3 0x14200 bored smr 1 443643 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82892 (syz-executor.1) thread 0xffff800020ad6ee8 (154710) exclusive rwlock netlock r = 0 (0xffffffff8246c508) #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 (0xffffffff8265f6c0) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9473 6399K 6414K 78643K 12062 0 pcb 13 8K 8K 78643K 31 0 rtable 106 3K 5K 78643K 212 0 ifaddr 44 10K 12K 78643K 51 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1485 0 iov 0 0K 12K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 76K 78643K 1265 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 15 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 757 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 4104 0 sigio 0 0K 0K 78643K 2618 0 proc 59 63K 83K 78643K 453 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 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 31 148K 148K 78643K 31 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 101 21K 21K 78643K 9507 0 UVM aobj 37 2K 2K 78643K 37 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 19 0 NDP 6 0K 0K 78643K 10 0 temp 73 3013K 3077K 78643K 11662 0 kqueue 0 0K 0K 78643K 2 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 8691 0 8681 3 2 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 2533 0 2529 3 2 1 2 0 8 0 inpcb 280 2603 0 2596 3 2 1 2 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 pfstitem 24 12 0 10 1 0 1 1 0 8 0 pfstkey 112 12 0 10 1 0 1 1 0 8 0 pfstate 328 12 0 10 1 0 1 1 0 8 0 pfrule 1360 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 0 14 0 14 14 0 8 0 art_table 32 214 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 755 0 745 1 0 1 1 0 8 0 shmpl 112 35 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6814 0 5405 46 0 46 46 0 8 0 ffsino 272 6814 0 5405 95 0 95 95 0 8 0 nchpl 144 14759 0 13139 61 0 61 61 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 37867 0 37867 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 scxspl 192 33630 0 33630 8 7 1 7 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 4303 0 4288 3 1 2 3 0 8 0 futexpl 56 46588 0 46587 1 0 1 1 0 8 0 knotepl 112 55 0 36 1 0 1 1 0 8 0 kqueuepl 104 894 0 892 1 0 1 1 0 8 0 pipepl 112 1750 0 1731 1 0 1 1 0 8 0 fdescpl 488 4304 0 4288 3 0 3 3 0 8 0 filepl 152 31436 0 31334 9 4 5 7 0 8 1 lockfpl 104 940 0 939 1 0 1 1 0 8 0 lockfspl 48 460 0 459 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 283 0 274 1 0 1 1 0 8 0 zombiepl 144 4288 0 4287 1 0 1 1 0 8 0 processpl 904 4319 0 4287 4 0 4 4 0 8 0 procpl 632 8748 0 8705 4 0 4 4 0 8 0 sockpl 384 11317 0 11298 15 11 4 7 0 8 2 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 122 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 234 0 0 11 0 11 11 0 8 0 bufpl 280 10945 0 3875 506 0 506 506 0 8 0 anonpl 16 253080 0 248177 22 1 21 21 0 125 0 amapchunkpl 152 13930 0 13838 5 0 5 5 0 158 0 amappl16 192 16873 0 16647 13 1 12 12 0 8 0 amappl15 184 58 0 54 1 0 1 1 0 8 0 amappl14 176 2078 0 2073 1 0 1 1 0 8 0 amappl12 160 2032 0 2029 2 1 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 17 0 11 1 0 1 1 0 8 0 amappl9 136 600 0 597 1 0 1 1 0 8 0 amappl8 128 128 0 107 1 0 1 1 0 8 0 amappl7 120 100 0 90 1 0 1 1 0 8 0 amappl6 112 53 0 49 1 0 1 1 0 8 0 amappl5 104 2270 0 2254 1 0 1 1 0 8 0 amappl4 96 2535 0 2504 1 0 1 1 0 8 0 amappl3 88 4304 0 4296 1 0 1 1 0 8 0 amappl2 80 33685 0 33610 3 1 2 3 0 8 0 amappl1 72 84398 0 83937 25 15 10 20 0 8 0 amappl 80 8987 0 8950 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 36 0 0 1 0 1 1 0 8 0 uaddrrnd 24 4304 0 4288 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4304 0 4288 1 0 1 1 0 8 0 vmmpekpl 168 21386 0 21351 2 0 2 2 0 8 0 vmmpepl 168 489525 0 488122 90 23 67 82 0 357 4 vmsppl 368 4303 0 4288 2 0 2 2 0 8 0 pdppl 4096 8615 0 8576 6 0 6 6 0 8 1 pvpl 32 818945 0 810831 122 52 70 118 0 265 2 pmappl 232 4303 0 4288 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 167 0 5 5 0 5 5 0 8 0