panic: unhandled af 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *432236 51556 0 0 0x4000000 1K syz-executor.0 43054 98988 0 0x12 0 0 sshd 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(0) at unhandled_af+0x16 pf_addrcpy(ffff800022d98e38,ffff800022d99130,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800022d99130,1,ffff800020ac8780) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c60f0,c0504417,ffff800022d99130,1,fffffd807f7beae0,ffff800020ac8780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806c9e04d0,c0504417,ffff800022d99130,ffff800020ac8780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac8780,ffff800022d99248,ffff800022d99290) at sys_ioctl+0x5b9 syscall(ffff800022d99310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d99310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b06bd745b0, 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(ffffffff821d7d9a) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800022d98e38,ffff800022d99130,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800022d99130,1,ffff800020ac8780) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c60f0,c0504417,ffff800022d99130,1,fffffd807f7beae0,ffff800020ac8780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806c9e04d0,c0504417,ffff800022d99130,ffff800020ac8780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac8780,ffff800022d99248,ffff800022d99290) at sys_ioctl+0x5b9 syscall(ffff800022d99310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d99310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b06bd745b0, count: -10 ddb{1}> show registers rdi 0xffffffff81f3d997 db_enter+0x17 rsi 0xae3 rbp 0xffff800022d98cf0 rbx 0xffff800022d98da0 rdx 0xae4 rcx 0xffff800020b7c000 rax 0xffff800020b7c000 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0x25 r11 0x119a9bf56d71bc52 r12 0x3000000008 r13 0xffff800022d98d00 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d98ce0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=432236 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac89f8,0xffffffff82623980 process=0xffff800020af58d0 user=0xffff800022d94000, vmspace=0xfffffd807efff8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51556 270376 44886 0 2 0 syz-executor.0 *51556 432236 44886 0 7 0x4000000 syz-executor.0 51707 301704 54130 0 3 0x2 biowait syz-executor.1 44886 27729 54130 0 3 0x82 nanosleep syz-executor.0 54130 402135 61226 0 3 0x82 thrsleep syz-fuzzer 54130 75647 61226 0 3 0x4000082 nanosleep syz-fuzzer 54130 123963 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 209653 61226 0 3 0x4000082 kqread syz-fuzzer 54130 126280 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 378774 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 126971 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 113924 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 89466 61226 0 3 0x4000082 thrsleep syz-fuzzer 54130 382500 61226 0 3 0x4000082 thrsleep syz-fuzzer 61226 442657 98988 0 3 0x10008a pause ksh 98988 43054 2527 0 7 0x12 sshd 98405 462589 1 0 3 0x100083 ttyin getty 2527 324281 1 0 3 0x80 select sshd 66296 360156 14132 74 3 0x100092 bpf pflogd 14132 78472 1 0 3 0x80 netio pflogd 9371 375128 81737 73 3 0x100090 kqread syslogd 81737 111262 1 0 3 0x100082 netio syslogd 4546 349762 1 77 3 0x100090 poll dhclient 12470 351080 1 0 3 0x80 poll dhclient 48802 412470 0 0 3 0x14200 pgzero zerothread 91909 4120 0 0 3 0x14200 aiodoned aiodoned 85120 389689 0 0 3 0x14200 syncer update 68194 430859 0 0 3 0x14200 cleaner cleaner 47257 223665 0 0 3 0x14200 reaper reaper 43521 223650 0 0 3 0x14200 pgdaemon pagedaemon 6372 474168 0 0 3 0x14200 bored crynlk 37970 50967 0 0 3 0x14200 bored crypto 4025 418994 0 0 3 0x40014200 acpi0 acpi0 49520 107100 0 0 3 0x40014200 idle1 68592 326203 0 0 2 0x14200 softnet 29764 169410 0 0 3 0x14200 bored systqmp 38451 98057 0 0 3 0x14200 bored systq 6532 57321 0 0 3 0x40014200 bored softclock 73058 245883 0 0 3 0x40014200 idle0 25528 171197 0 0 3 0x14200 bored smr 1 292539 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 51556 (syz-executor.0) thread 0xffff800020ac8780 (432236) 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 51707 (syz-executor.1) thread 0xffff800020ac8290 (301704) exclusive rrwlock inode r = 0 (0xfffffd80658ad920) #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 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806acd54d8) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9478 6408K 6418K 78643K 13491 0 pcb 13 8K 8K 78643K 449 0 rtable 112 5K 5K 78643K 212 0 ifaddr 46 11K 11K 78643K 47 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1827 0 iov 0 0K 8K 78643K 35 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 3332 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 186 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 496 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 8894 0 sigio 1 0K 0K 78643K 1229 0 proc 62 63K 83K 78643K 441 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 8072 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 43 201K 201K 78643K 43 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 108 21K 21K 78643K 19965 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 570 0 NDP 6 0K 0K 78643K 10 0 temp 110 3024K 3096K 78643K 24439 0 kqueue 0 0K 0K 78643K 5 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 118 0 116 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 23970 0 23960 6 5 1 2 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 6039 0 6035 4 3 1 2 0 8 0 inpcb 280 6812 0 6805 8 7 1 3 0 8 0 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 pfrktable 1344 4 0 1 1 0 1 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 23 0 16 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 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 494 0 484 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 11832 0 10417 46 0 46 46 0 8 0 ffsino 272 11832 0 10417 95 0 95 95 0 8 0 nchpl 144 24332 0 22687 64 2 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 65257 0 65257 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 192 63736 0 63735 8 7 1 7 0 8 0 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 432 9093 0 9078 3 1 2 3 0 8 0 futexpl 56 79144 0 79144 1 0 1 1 0 8 1 knotepl 112 220 0 201 1 0 1 1 0 8 0 kqueuepl 104 330 0 328 1 0 1 1 0 8 0 pipepl 112 4016 0 3997 2 1 1 2 0 8 0 fdescpl 488 9094 0 9078 3 0 3 3 0 8 0 filepl 152 65319 0 65218 14 9 5 7 0 8 1 lockfpl 104 1007 0 1006 1 0 1 1 0 8 0 lockfspl 48 481 0 480 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 1775 0 1766 1 0 1 1 0 8 0 zombiepl 144 9078 0 9078 1 0 1 1 0 8 1 processpl 904 9109 0 9078 4 0 4 4 0 8 0 procpl 632 19205 0 19164 4 0 4 4 0 8 0 sockpl 384 30901 0 30882 27 23 4 8 0 8 2 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 167 0 0 18 3 15 18 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 368 0 0 11 0 11 11 0 8 0 bufpl 280 15428 0 8358 506 0 506 506 0 8 0 anonpl 16 527558 0 522722 23 1 22 22 0 125 0 amapchunkpl 152 29964 0 29875 5 0 5 5 0 158 0 amappl16 192 36793 0 36559 16 3 13 13 0 8 1 amappl15 184 59 0 56 1 0 1 1 0 8 0 amappl14 176 27 0 26 1 0 1 1 0 8 0 amappl13 168 4396 0 4393 1 0 1 1 0 8 0 amappl12 160 15 0 13 1 0 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 4482 0 4478 1 0 1 1 0 8 0 amappl9 136 614 0 610 1 0 1 1 0 8 0 amappl8 128 143 0 116 1 0 1 1 0 8 0 amappl7 120 4567 0 4556 1 0 1 1 0 8 0 amappl6 112 59 0 51 1 0 1 1 0 8 0 amappl5 104 204 0 189 1 0 1 1 0 8 0 amappl4 96 13752 0 13717 2 1 1 2 0 8 0 amappl3 88 315 0 307 1 0 1 1 0 8 0 amappl2 80 72215 0 72139 3 1 2 3 0 8 0 amappl1 72 164925 0 164483 25 15 10 20 0 8 0 amappl 80 19439 0 19403 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 9094 0 9078 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9094 0 9078 1 0 1 1 0 8 0 vmmpekpl 168 52020 0 51991 2 0 2 2 0 8 0 vmmpepl 168 1024056 0 1022651 91 24 67 81 0 357 5 vmsppl 368 9093 0 9078 2 0 2 2 0 8 0 pdppl 4096 18195 0 18156 6 0 6 6 0 8 0 pvpl 32 1616511 0 1608479 131 61 70 118 0 265 1 pmappl 232 9093 0 9078 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 172 0 9 5 0 5 5 0 8 0