kernel: protection fault trap, code=0 Stopped at ktrops+0x4e: movq 0x8(%rbx),%r14 ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace ktrops(ffff80002a1cc2b8,deafbeaddeafbead,0,80000400,fffffd8065535640,fffffd807f7d75b0) at ktrops+0x4e ktrcanset sys/kern/kern_ktrace.c:718 [inline] ktrops(ffff80002a1cc2b8,deafbeaddeafbead,0,80000400,fffffd8065535640,fffffd807f7d75b0) at ktrops+0x4e sys/kern/kern_ktrace.c:561 doktrace(fffffd8065535640,4,400,0,ffff80002a1cc2b8) at doktrace+0x524 ktrsetchildren sys/kern/kern_ktrace.c:586 [inline] doktrace(fffffd8065535640,4,400,0,ffff80002a1cc2b8) at doktrace+0x524 sys/kern/kern_ktrace.c:508 sys_ktrace(ffff80002a1cc2b8,ffff80002bb1d500,ffff80002bb1d450) at sys_ktrace+0xd6 sys/kern/kern_ktrace.c:549 syscall(ffff80002bb1d500) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bb1d500) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x13d353e1ed0, count: -5 ddb{1}> show registers rdi 0xffff80002f6df000 rsi 0x1e4a __ALIGN_SIZE+0xe4a rbp 0xffff80002bb1d220 rbx 0xdeafbeaddeafbead rdx 0xffff80002f6df000 rcx 0x1e49 __ALIGN_SIZE+0xe49 rax 0xffffffff8167ecc3 ktrops+0x43 r8 0xfffffd8065535640 r9 0xfffffd807f7d75b0 r10 0xd0f5cb8a9f2410eb r11 0x81afb82312ffd627 r12 0xdeafbeaddeafbead r13 0xfffffd807f7d75b0 r14 0xffff80002a1cc2b8 r15 0x80000400 __kernel_virt_to_phys+0x400 rip 0xffffffff8167ecce ktrops+0x4e cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002bb1d1a0 ss 0 ktrops+0x4e: movq 0x8(%rbx),%r14 ddb{1}> show proc PROC (syz-executor.2) tid=50605 pid=60641 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1ccab0,0xffffffff82dda448 process=0xffff8000ffff5640 user=0xffff80002bb18000, vmspace=0xfffffd806b7b6718 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60641 475457 66113 0 3 0x80 fsleep syz-executor.2 *60641 50605 66113 0 7 0x4000000 syz-executor.2 93556 497300 49501 0 3 0x80 nanoslp syz-executor.7 93556 205784 49501 0 3 0x4000080 ttyretype syz-executor.7 93556 406848 49501 0 3 0x4000080 ttyretype syz-executor.7 93556 403249 49501 0 3 0x4000080 fsleep syz-executor.7 52182 418229 41569 0 3 0x80 nanoslp syz-executor.6 52182 268991 41569 0 3 0x4000080 netio syz-executor.6 52182 54118 41569 0 3 0x4000080 fsleep syz-executor.6 80377 425207 64324 0 2 0x5081000 syz-executor.4 80377 154554 64324 0 3 0x5003000 suspend syz-executor.4 80377 39490 64324 0 2 0x5081000 syz-executor.4 80377 20493 64324 0 2 0x5081000 syz-executor.4 80377 234692 64324 0 2 0x5081000 syz-executor.4 80377 433209 64324 0 2 0x5081000 syz-executor.4 98407 385040 15001 60928 3 0x90 fsleep syz-executor.5 98407 193190 15001 60928 2 0x4000010 syz-executor.5 62454 13120 85167 0 3 0x80 fsleep syz-executor.1 62454 492033 85167 0 3 0x4000080 kqread syz-executor.1 6308 398223 87675 0 3 0x80 fsleep syz-executor.3 6308 48813 87675 0 3 0x4000080 fsleep syz-executor.3 6308 309995 87675 0 3 0x4000080 netcon syz-executor.3 6308 484105 87675 0 3 0x4000080 fsleep syz-executor.3 64324 43443 80888 0 3 0x82 nanoslp syz-executor.4 87675 76868 80888 0 2 0x482 syz-executor.3 14277 93334 80888 0 2 0x2 syz-executor.0 49501 387321 80888 0 3 0x82 nanoslp syz-executor.7 5794 400964 0 0 3 0x14200 bored sosplice 15001 241983 80888 0 2 0x482 syz-executor.5 85167 63516 80888 0 3 0x82 nanoslp syz-executor.1 66113 263516 80888 0 3 0x82 nanoslp syz-executor.2 41569 257333 80888 0 2 0x482 syz-executor.6 80888 6408 40336 0 3 0x2000082 thrsleep syz-fuzzer 80888 110951 40336 0 3 0x6000082 nanoslp syz-fuzzer 80888 343123 40336 0 3 0x6000082 wait syz-fuzzer 80888 450520 40336 0 3 0x6000082 thrsleep syz-fuzzer 80888 205806 40336 0 3 0x6000082 wait syz-fuzzer 80888 407394 40336 0 3 0x6000082 wait syz-fuzzer 80888 465077 40336 0 3 0x6000082 thrsleep syz-fuzzer 80888 202651 40336 0 2 0x6000002 syz-fuzzer 80888 338438 40336 0 3 0x6000082 wait syz-fuzzer 80888 378519 40336 0 3 0x6000082 wait syz-fuzzer 80888 496696 40336 0 3 0x6000082 thrsleep syz-fuzzer 80888 472617 40336 0 3 0x6000082 wait syz-fuzzer 80888 355466 40336 0 3 0x6000082 wait syz-fuzzer 80888 188743 40336 0 3 0x6000082 wait syz-fuzzer 80888 19933 40336 0 3 0x6000082 thrsleep syz-fuzzer 80888 445359 40336 0 2 0x6000002 syz-fuzzer 40336 507204 2425 0 3 0x10008a sigsusp ksh 2425 191270 97690 0 7 0x12 sshd 28354 341693 1 0 3 0x100083 ttyin getty 97690 402740 1 0 3 0x88 kqread sshd 5492 454698 74075 74 3 0x1100092 bpf pflogd 74075 266932 1 0 3 0x80 netio pflogd 5344 426544 98833 73 3 0x1100090 kqread syslogd 98833 202864 1 0 3 0x100082 netio syslogd 61189 333383 1 0 3 0x100080 kqread resolvd 8641 238230 60400 77 3 0x100092 kqread dhcpleased 56469 182377 60400 77 3 0x100092 kqread dhcpleased 60400 413139 1 0 3 0x80 kqread dhcpleased 40354 220723 0 0 3 0x14200 bored smr 45351 195221 0 0 3 0x14200 pgzero zerothread 68678 119119 0 0 3 0x14200 aiodoned aiodoned 52878 136969 0 0 3 0x14200 syncer update 57287 115571 0 0 3 0x14200 cleaner cleaner 2419 347499 0 0 3 0x14200 reaper reaper 23031 470750 0 0 3 0x14200 pgdaemon pagedaemon 41286 112824 0 0 3 0x14200 bored viomb 30613 122601 0 0 3 0x40014200 acpi0 acpi0 918 30555 0 0 3 0x40014200 idle1 38874 52207 0 0 3 0x14200 bored softnet3 47988 304358 0 0 3 0x14200 bored softnet2 78538 524029 0 0 3 0x14200 bored softnet1 66915 428849 0 0 2 0x14200 softnet0 87174 151551 0 0 3 0x14200 bored systqmp 81582 131215 0 0 3 0x14200 bored systq 38337 282824 0 0 3 0x14200 tmoslp softclockmp 15983 335201 0 0 3 0x40014200 tmoslp softclock 39297 270591 0 0 3 0x40014200 idle0 1 204368 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 60641 (syz-executor.2) thread 0xffff80002a1cc2b8 (50605) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d8a5d0) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46f sys/kern/sched_bsd.c:470 #3 sleep_finish+0x19b sys/kern/kern_synch.c:414 #4 biowait+0x91 sys/kern/vfs_bio.c:1254 #5 bwrite+0x21c sys/kern/vfs_bio.c:766 #6 ffs_update+0x28b sys/ufs/ffs/ffs_inode.c:111 #7 ffs_truncate+0xa40 #8 ufs_inactive+0x157 sys/ufs/ufs/ufs_inode.c:84 #9 VOP_INACTIVE+0xc5 sys/kern/vfs_vops.c:489 #10 vrele+0xd3 sys/kern/vfs_subr.c:827 #11 ktrsettrace+0xb7 sys/kern/kern_ktrace.c:122 #12 ktrops+0x1a8 sys/kern/kern_ktrace.c:564 #13 doktrace+0x524 ktrsetchildren sys/kern/kern_ktrace.c:586 [inline] #13 doktrace+0x524 sys/kern/kern_ktrace.c:508 #14 sys_ktrace+0xd6 sys/kern/kern_ktrace.c:549 #15 syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #15 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #16 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10213 6481K 7313K 166960K 12221 0 pcb 15 16K 18K 166960K 203 0 rtable 196 14K 15K 166960K 616 0 pf 30 9K 10K 166960K 100 0 ifaddr 38 14K 15K 166960K 90 0 ifgroup 51 2K 2K 166960K 154 0 sysctl 2 0K 0K 166960K 2 0 counters 62 36K 36K 166960K 112 0 ioctlops 0 0K 4K 166960K 1724 0 iov 0 0K 16K 166960K 177 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1347 84K 84K 166960K 2399 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 37 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 775 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 93K 166960K 6408 0 sigio 0 0K 0K 166960K 64 0 proc 70 91K 128K 166960K 747 0 subproc 104 6K 6K 166960K 169 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 107 0 in_multi 77 5K 7K 166960K 203 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 609 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 411 184K 187K 166960K 62891 0 UVM aobj 131 4K 4K 166960K 137 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 84 0 NDP 11 0K 1K 166960K 62 0 temp 74 6772K 6848K 166960K 21561 0 kqueue 12 18K 26K 166960K 455 0 SYN cache 2 36K 44K 166960K 3 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 321 0 318 6 5 1 3 0 8 0 rtentry 112 171 0 83 4 0 4 4 0 8 0 unpcb 144 8282 0 8264 60 53 7 11 0 8 6 syncache 336 27 0 27 6 6 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 634 0 634 6 6 0 2 0 8 0 tcpcb 808 2089 0 2083 65 64 1 14 0 8 0 arp 120 28 0 14 1 0 1 1 0 8 0 inpcb 392 6287 0 6210 92 84 8 15 0 8 0 nd6 136 40 0 22 1 0 1 1 0 8 0 pkpcb 40 7 0 7 2 2 0 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1168 3 0 3 1 1 0 1 0 8 0 pffrag 232 69 0 69 2 2 0 1 0 482 0 pffrnode 88 69 0 69 2 2 0 1 0 8 0 pffrent 40 207 0 207 3 3 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 168 0 158 1 0 1 1 0 8 0 pfstkey 128 170 0 160 2 1 1 2 0 8 0 pfstate 376 170 0 160 11 9 2 8 0 8 0 pfrule 1344 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 680 0 310 32 8 24 29 0 8 0 art_table 32 681 0 310 4 0 4 4 0 8 0 art_node 16 166 0 86 1 0 1 1 0 8 0 semupl 112 12 0 12 2 2 0 1 0 8 0 semapl 112 773 0 763 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 8925 0 7476 91 0 91 91 0 8 0 ffsino 272 8925 0 7476 97 0 97 97 0 8 0 nchpl 144 18619 0 16957 65 1 64 64 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 50909 0 50909 3 2 1 2 0 8 1 percpumem 16 70 0 25 1 0 1 1 0 8 0 vcpupl 2048 38 0 0 5 0 5 5 0 8 0 vmpool 696 47 0 9 6 2 4 4 0 8 0 kstatmem 264 72 0 50 2 0 2 2 0 8 0 scxspl 216 48164 0 48164 20 19 1 8 1 8 1 plimitpl 152 289 0 272 1 0 1 1 0 8 0 sigapl 424 6724 0 6675 7 1 6 7 0 8 0 futexpl 64 69456 0 69448 1 0 1 1 0 8 0 knotepl 120 708 0 0 18 1 17 17 0 8 0 kqueuepl 216 2275 0 2265 24 23 1 5 0 8 0 pipepl 320 2042 0 2014 40 37 3 11 0 8 0 fdescpl 496 6705 0 6675 8 4 4 5 0 8 0 filepl 152 42364 0 42040 106 89 17 25 0 8 4 lockfpl 104 1150 0 1147 1 0 1 1 0 8 0 lockfspl 48 414 0 411 1 0 1 1 0 8 0 sessionpl 144 29 0 12 1 0 1 1 0 8 0 pgrppl 48 113 0 96 1 0 1 1 0 8 0 ucredpl 104 4479 0 4466 1 0 1 1 0 8 0 zombiepl 144 6676 0 6675 1 0 1 1 0 8 0 processpl 1136 6724 0 6675 5 1 4 5 0 8 0 procpl 680 17089 0 17008 15 7 8 9 0 8 0 srpgc 96 16 0 16 7 7 0 1 0 8 0 sosppl 168 5 0 4 2 1 1 1 0 8 0 sockpl 584 14899 0 14801 147 139 8 22 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 356 0 0 41 8 33 41 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1173 0 0 55 0 55 55 0 8 0 bufpl 280 11677 0 5357 452 0 452 452 0 8 0 anonpl 24 964631 0 950159 106 14 92 95 0 186 0 amapchunkpl 152 198121 0 197200 49 11 38 43 0 158 0 amappl16 200 32124 0 31624 40 11 29 30 0 8 0 amappl15 192 39 0 38 1 0 1 1 0 8 0 amappl14 184 203 0 186 2 1 1 2 0 8 0 amappl13 176 18 0 17 2 1 1 1 0 8 0 amappl12 168 7476 0 7442 3 1 2 2 0 8 0 amappl11 160 62 0 48 1 0 1 1 0 8 0 amappl10 152 41 0 28 1 0 1 1 0 8 0 amappl9 144 234 0 234 13 12 1 1 0 8 1 amappl8 136 376 0 280 4 0 4 4 0 8 0 amappl7 128 231 0 204 3 1 2 3 0 8 0 amappl6 120 402 0 390 1 0 1 1 0 8 0 amappl5 112 208 0 197 1 0 1 1 0 8 0 amappl4 104 587 0 557 2 1 1 2 0 8 0 amappl3 96 39352 0 39245 4 1 3 3 0 8 0 amappl2 88 7393 0 7315 4 2 2 4 0 8 0 amappl1 80 31938 0 31374 23 9 14 23 0 8 0 amappl 88 62184 0 61922 7 1 6 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 6752 0 6684 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6752 0 6684 1 0 1 1 0 8 0 vmmpekpl 168 69211 0 69142 4 0 4 4 0 8 0 vmmpepl 168 415756 0 413156 248 124 124 137 0 357 10 vmsppl 448 6751 0 6684 10 2 8 8 0 8 0 rwobjpl 56 120837 0 113102 112 3 109 109 0 8 0 pdppl 4096 13511 0 13406 397 290 107 107 0 8 2 pvpl 32 42793 0 0 346 0 346 346 0 265 0 pmappl 248 6751 0 6684 6 1 5 5 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 983 0 530 14 0 14 14 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82cb6ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 sys/dev/kcov.c:158 __mp_lock(ffffffff82d8a3c8) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d8a3c8) at __mp_lock+0x133 sys/kern/kern_lock.c:147 doppoll(ffff80002a18c558,872d6655930,4,0,ffff80002a1ca4b4,ffff80002a1ca550) at doppoll+0x159 sys/kern/sys_generic.c:950 sys_ppoll(ffff80002a18c558,ffff80002a1ca600,ffff80002a1ca550) at sys_ppoll+0x137 sys/kern/sys_generic.c:916 syscall(ffff80002a1ca600) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a1ca600) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x705608aebc50, count: -9 ddb{0}> machine ddbcpu 1 Stopped at ktrops+0x4e: movq 0x8(%rbx),%r14 ddb{1}> trace ktrops(ffff80002a1cc2b8,deafbeaddeafbead,0,80000400,fffffd8065535640,fffffd807f7d75b0) at ktrops+0x4e ktrcanset sys/kern/kern_ktrace.c:718 [inline] ktrops(ffff80002a1cc2b8,deafbeaddeafbead,0,80000400,fffffd8065535640,fffffd807f7d75b0) at ktrops+0x4e sys/kern/kern_ktrace.c:561 doktrace(fffffd8065535640,4,400,0,ffff80002a1cc2b8) at doktrace+0x524 ktrsetchildren sys/kern/kern_ktrace.c:586 [inline] doktrace(fffffd8065535640,4,400,0,ffff80002a1cc2b8) at doktrace+0x524 sys/kern/kern_ktrace.c:508 sys_ktrace(ffff80002a1cc2b8,ffff80002bb1d500,ffff80002bb1d450) at sys_ktrace+0xd6 sys/kern/kern_ktrace.c:549 syscall(ffff80002bb1d500) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bb1d500) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x13d353e1ed0, count: -5