login: panic: unhandled af 12 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 283871 46834 0 0 0 0 syz-executor.0 *222504 46834 0 0 0x4000000 1K 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(ffff800020b739e8,ffff800020b73ce0,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800020b73ce0,1,ffff800020ac98c8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c4020,c0504417,ffff800020b73ce0,1,fffffd807f7becc0,ffff800020ac98c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806cf134d0,c0504417,ffff800020b73ce0,ffff800020ac98c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac98c8,ffff800020b73df8,ffff800020b73e40) at sys_ioctl+0x5b9 syscall(ffff800020b73ec0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b73ec0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd7c43ab9d0, 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 12 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(c) at unhandled_af+0x16 pf_addrcpy(ffff800020b739e8,ffff800020b73ce0,c) at pf_addrcpy+0x99 sys/net/pf.c:409 pfioctl(4900,c0504417,ffff800020b73ce0,1,ffff800020ac98c8) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827 VOP_IOCTL(fffffd806f6c4020,c0504417,ffff800020b73ce0,1,fffffd807f7becc0,ffff800020ac98c8) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd806cf134d0,c0504417,ffff800020b73ce0,ffff800020ac98c8) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533 sys_ioctl(ffff800020ac98c8,ffff800020b73df8,ffff800020b73e40) at sys_ioctl+0x5b9 syscall(ffff800020b73ec0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b73ec0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd7c43ab9d0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b738a0 rbx 0xffff800020b73950 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81dfe84f kprintf+0x16f r9 0x1 r10 0xe38342cd4dfcee8d r11 0x8684bff7694655db r12 0x3000000008 r13 0xffff800020b738b0 r14 0x100 r15 0x1 rip 0xffffffff81f3d998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b73890 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=222504 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac8ee8,0xffff800020ac8c80 process=0xffff800020af4ab0 user=0xffff800020b6e000, vmspace=0xfffffd807efffcf0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46834 283871 74386 0 7 0 syz-executor.0 *46834 222504 74386 0 7 0x4000000 syz-executor.0 46834 339057 74386 0 2 0x4000000 syz-executor.0 74386 405330 69836 0 3 0x82 nanosleep syz-executor.0 69836 329654 98405 0 3 0x82 thrsleep syz-execprog 69836 242854 98405 0 3 0x4000082 nanosleep syz-execprog 69836 55497 98405 0 3 0x4000082 thrsleep syz-execprog 69836 3764 98405 0 3 0x4000082 thrsleep syz-execprog 69836 231375 98405 0 3 0x4000082 thrsleep syz-execprog 69836 249569 98405 0 3 0x4000082 thrsleep syz-execprog 69836 259905 98405 0 3 0x4000082 thrsleep syz-execprog 69836 70632 98405 0 3 0x4000082 kqread syz-execprog 98405 283809 23364 0 3 0x10008a pause ksh 23364 66585 89350 0 3 0x92 select sshd 83781 396291 1 0 3 0x100083 ttyin getty 89350 47909 1 0 3 0x80 select sshd 91192 353648 77313 74 3 0x100092 bpf pflogd 77313 360952 1 0 3 0x80 netio pflogd 45120 25082 81623 73 3 0x100090 kqread syslogd 81623 298403 1 0 3 0x100082 netio syslogd 67012 338693 1 77 3 0x100090 poll dhclient 17611 205171 1 0 3 0x80 poll dhclient 10938 36093 0 0 3 0x14200 pgzero zerothread 13363 123103 0 0 3 0x14200 aiodoned aiodoned 32597 135311 0 0 3 0x14200 syncer update 91149 494336 0 0 3 0x14200 cleaner cleaner 48857 203465 0 0 3 0x14200 reaper reaper 24577 124242 0 0 3 0x14200 pgdaemon pagedaemon 32386 428339 0 0 3 0x14200 bored crynlk 36387 102223 0 0 3 0x14200 bored crypto 71441 388569 0 0 3 0x40014200 acpi0 acpi0 70179 154372 0 0 3 0x40014200 idle1 24531 385778 0 0 3 0x14200 bored softnet 48209 160283 0 0 3 0x14200 bored systqmp 75764 498561 0 0 3 0x14200 bored systq 72081 221124 0 0 3 0x40014200 bored softclock 93481 383824 0 0 3 0x40014200 idle0 84724 182951 0 0 3 0x14200 bored smr 1 318290 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 46834 (syz-executor.0) thread 0xffff800020ac98c8 (222504) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9465 6395K 6395K 78643K 10556 0 pcb 13 8K 8K 78643K 13 0 rtable 83 2K 2K 78643K 165 0 ifaddr 37 9K 9K 78643K 38 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1468 0 mount 1 1K 1K 78643K 1 0 vnodes 1181 74K 74K 78643K 1186 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 3 8K 12K 78643K 18 0 proc 59 63K 83K 78643K 398 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 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 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 197 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 82 12K 12K 78643K 975 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 7 0 temp 32 3010K 3073K 78643K 3320 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 4 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 120 33 0 23 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 35 0 27 1 0 1 1 0 8 0 nd6 48 2 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 pfstitem 24 10 0 0 1 0 1 1 0 8 0 pfstkey 112 10 0 0 1 0 1 1 0 8 0 pfstate 328 10 0 0 1 0 1 1 0 8 0 pfrule 1360 21 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 168 0 0 11 0 11 11 0 8 0 art_table 32 169 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1424 0 20 46 0 46 46 0 8 0 ffsino 272 1424 0 20 94 0 94 94 0 8 0 nchpl 144 1650 0 38 60 0 60 60 0 8 0 uvmvnodes 72 1434 0 0 27 0 27 27 0 8 0 vnodes 208 1434 0 0 76 0 76 76 0 8 0 namei 1024 4158 0 4158 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4117 0 4117 2 1 1 2 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 432 225 0 211 2 0 2 2 0 8 0 futexpl 56 6 0 6 1 0 1 1 0 8 1 knotepl 112 39 0 28 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 148 0 135 2 1 1 1 0 8 0 fdescpl 488 226 0 211 3 0 3 3 0 8 0 filepl 152 1143 0 1081 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 211 0 211 2 1 1 1 0 8 1 processpl 904 241 0 211 4 0 4 4 0 8 0 procpl 632 250 0 211 4 0 4 4 0 8 0 sockpl 384 85 0 65 3 0 3 3 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 56 0 0 7 0 7 7 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 93 0 0 5 0 5 5 0 8 0 bufpl 280 5948 0 1340 330 0 330 330 0 8 0 anonpl 16 22254 0 20648 15 2 13 13 0 125 5 amapchunkpl 152 795 0 723 5 0 5 5 0 158 2 amappl16 192 74 0 50 3 1 2 2 0 8 0 amappl15 184 58 0 54 1 0 1 1 0 8 0 amappl14 176 23 0 20 2 1 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 8 0 4 2 1 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 19 0 15 1 0 1 1 0 8 0 amappl9 136 436 0 434 1 0 1 1 0 8 0 amappl8 128 90 0 80 1 0 1 1 0 8 0 amappl7 120 99 0 88 1 0 1 1 0 8 0 amappl6 112 57 0 54 1 0 1 1 0 8 0 amappl5 104 127 0 114 1 0 1 1 0 8 0 amappl4 96 493 0 464 1 0 1 1 0 8 0 amappl3 88 122 0 115 1 0 1 1 0 8 0 amappl2 80 975 0 904 4 1 3 3 0 8 1 amappl1 72 15434 0 14980 27 9 18 21 0 8 8 amappl 80 475 0 444 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 226 0 211 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 226 0 211 1 0 1 1 0 8 0 vmmpekpl 168 6186 0 6164 2 0 2 2 0 8 0 vmmpepl 168 33033 0 32014 90 9 81 81 0 357 36 vmsppl 368 225 0 211 2 0 2 2 0 8 0 pdppl 4096 459 0 422 6 0 6 6 0 8 1 pvpl 32 112559 0 108493 117 2 115 115 0 265 81 pmappl 232 225 0 211 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 141 0 4 4 0 4 4 0 8 0 ddb{1}>