*cpu0: uvm_fault(0xfffffd806bc9eb60, 0x33e0, 0, 2) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x761b038596c0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c439040 rbx 0 rdx 0 rcx 0xffff80003c4479d8 rax 0x3c r8 0xffff80003c438f70 r9 0 r10 0xef591d9be509e620 r11 0x42d2ad5caeb2515 r12 0 r13 0 r14 0xffff80003c4479d8 r15 0 rip 0xffffffff81a0b3ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c438fc0 ss 0x10 savectx+0xae: movl $0,%gs:0x680 ddb{1}> show proc PROC (syz-executor) tid=326941 pid=77636 tcnt=3 stat=onproc flags process=10 proc=0 runpri=76, usrpri=76, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a2ca548,0xffff80003c447238 process=0xffff80003c42e0b8 user=0xffff80003c434000, vmspace=0xfffffd806bc9e200 estcpu=26, cpticks=1, pctcpu=0.4, user=4, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77649 215547 55552 0 2 0 syz-executor 77649 145160 55552 0 3 0x4000080 fsleep syz-executor 77649 346178 55552 0 7 0x4000000 syz-executor *77636 326941 11538 60929 7 0x10 syz-executor 77636 388124 11538 60929 3 0x4000090 fsleep syz-executor 77636 138364 11538 60929 3 0x4000090 fsleep syz-executor 37666 139505 19441 0 3 0x80 nanoslp syz-executor 37666 454948 19441 0 3 0x4000080 piperd syz-executor 37666 462017 19441 0 3 0x4000080 fsleep syz-executor 37666 160279 19441 0 3 0x4000080 fsleep syz-executor 87746 292091 1174 0 3 0x80 nanoslp syz-executor 87746 410394 1174 0 3 0x4000080 lockf syz-executor 87746 513299 1174 0 3 0x4000080 fsleep syz-executor 72689 490677 62609 0 3 0x80 nanoslp syz-executor 72689 125684 62609 0 3 0x4000080 kqsel syz-executor 72689 165917 62609 0 3 0x4000080 fsleep syz-executor 72689 522742 62609 0 3 0x4000080 fsleep syz-executor 82140 464663 98335 -1 2 0x490 syz-executor 82140 358152 98335 -1 3 0x4000090 sbwait syz-executor 82140 39228 98335 -1 3 0x4000090 fsleep syz-executor 72366 366420 0 0 3 0x14200 acct acct 19441 240701 25166 0 3 0x82 nanoslp syz-executor 11538 331005 25166 0 2 0x482 syz-executor 75035 396280 0 0 3 0x14280 nfsidl nfsio 79653 332789 0 0 3 0x14280 nfsidl nfsio 74615 241521 0 0 3 0x14280 nfsidl nfsio 69491 453260 0 0 3 0x14280 nfsidl nfsio 48716 103483 0 0 3 0x14280 nfsidl nfsio 73429 270029 0 0 3 0x14280 nfsidl nfsio 76356 199193 0 0 3 0x14280 nfsidl nfsio 68322 290582 0 0 3 0x14280 nfsidl nfsio 95312 291905 0 0 3 0x14280 nfsidl nfsio 10652 439653 0 0 3 0x14280 nfsidl nfsio 61502 363800 0 0 3 0x14280 nfsidl nfsio 45752 364062 0 0 3 0x14280 nfsidl nfsio 37202 292825 0 0 3 0x14280 nfsidl nfsio 10706 81332 0 0 3 0x14280 nfsidl nfsio 47129 453976 0 0 3 0x14280 nfsidl nfsio 36761 475790 0 0 3 0x14280 nfsidl nfsio 41013 511719 0 0 3 0x14280 nfsidl nfsio 52000 178463 0 0 3 0x14280 nfsidl nfsio 97974 323493 0 0 3 0x14280 nfsidl nfsio 21944 269913 0 0 3 0x14280 nfsidl nfsio 45978 378427 0 0 3 0x14200 bored sosplice 55552 375368 25166 0 2 0x482 syz-executor 1174 419075 25166 0 2 0x482 syz-executor 62609 521030 25166 0 2 0x482 syz-executor 37248 72607 25166 0 2 0x482 syz-executor 74583 181005 25166 0 2 0x2 syz-executor 98335 476667 25166 0 3 0x82 nanoslp syz-executor 25166 289291 3149 0 3 0x82 kqread syz-executor 3149 416450 26048 0 3 0x10008a sigsusp ksh 26048 517174 48463 0 3 0x98 kqread sshd-session 48463 167524 25790 0 3 0x92 kqread sshd-session 5526 317559 1 0 3 0x100083 ttyin getty 25790 8308 1 0 3 0x88 kqread sshd 79581 402514 46641 74 3 0x1100092 bpf pflogd 46641 264373 1 0 3 0x80 sbwait pflogd 35206 37313 60044 73 3 0x1100090 kqread syslogd 60044 227153 1 0 3 0x100082 sbwait syslogd 93744 68259 1 0 3 0x100080 kqread resolvd 90975 378653 86195 77 3 0x100092 kqread dhcpleased 78182 95202 86195 77 3 0x100092 kqread dhcpleased 86195 470204 1 0 3 0x80 kqread dhcpleased 82747 464250 0 0 3 0x14200 bored smr 51974 180518 0 0 2 0x14200 zerothread 11103 205288 0 0 3 0x14200 aiodoned aiodoned 86712 211407 0 0 3 0x14200 syncer update 96439 55379 0 0 3 0x14200 cleaner cleaner 72241 345034 0 0 3 0x14200 reaper reaper 52449 167884 0 0 3 0x14200 pgdaemon pagedaemon 881 144628 0 0 3 0x14200 bored viomb 95535 200402 0 0 3 0x40014200 acpi0 acpi0 43452 8863 0 0 3 0x40014200 idle1 58468 270016 0 0 3 0x14200 bored softnet3 66542 380299 0 0 3 0x14200 bored softnet2 47088 126391 0 0 3 0x14200 bored softnet1 22592 476985 0 0 2 0x14200 softnet0 94280 183259 0 0 3 0x14200 bored systqmp 91383 421493 0 0 3 0x14200 bored systq 71078 144507 0 0 3 0x14200 tmoslp softclockmp 21902 273155 0 0 2 0x40014200 softclock 93687 120007 0 0 3 0x40014200 idle0 1 148622 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806bc9d910) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x178 sys/kern/kern_lock.c:-1 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pmap_write_protect+0x87 rcr3 machine/cpufunc.h:139 [inline] #3 pmap_write_protect+0x87 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #3 pmap_write_protect+0x87 sys/arch/amd64/amd64/pmap.c:2163 #4 uvm_map_protect+0xbcd pmap_protect machine/pmap.h:482 [inline] #4 uvm_map_protect+0xbcd sys/uvm/uvm_map.c:3184 #5 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:590 #6 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 77636 (syz-executor) thread 0xffff80003c4479d8 (326941) Process 74583 (syz-executor) thread 0xffff80002a2bc2a8 (181005) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10207 11052K 11557K 166960K 12463 0 pcb 19 15K 17K 166960K 318 0 rtable 216 9K 10K 166960K 537 0 pf 33 17K 81K 166960K 112 0 ifaddr 38 6K 8K 166960K 91 0 ifgroup 51 2K 2K 166960K 138 0 sysctl 3 1K 2K 166960K 4 0 counters 62 36K 37K 166960K 142 0 ioctlops 0 0K 4K 166960K 1603 0 iov 0 0K 28K 166960K 43 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1469 92K 92K 166960K 2173 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 39 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 106K 166960K 887 0 sigio 0 0K 0K 166960K 15 0 proc 73 91K 140K 166960K 657 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 371 0 in_multi 81 5K 7K 166960K 154 0 ether_multi 1 0K 0K 166960K 6 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 478 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 253 159K 172K 166960K 9590 0 UVM aobj 52 2K 2K 166960K 54 0 pinsyscall 42 84K 102K 166960K 2051 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 54 0 NDP 11 0K 2K 166960K 57 0 temp 66 8688K 8763K 166960K 27549 0 kqueue 16 22K 30K 166960K 160 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 100 0 97 1 0 1 1 0 8 0 rtentry 176 159 0 67 6 0 6 6 0 8 0 unpcb 144 591 0 574 4 0 4 4 0 8 3 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 808 227 0 186 5 0 5 5 0 8 0 arp 128 26 0 7 1 0 1 1 0 8 0 inpcb 384 1009 0 961 15 5 10 15 0 8 5 nd6 144 34 0 12 2 0 2 2 0 8 0 pkpcb 40 44 0 44 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 26 0 26 1 0 1 1 0 8 1 pppxif 1504 8 0 8 1 0 1 1 0 8 1 pffrag 232 7 0 1 1 0 1 1 0 482 0 pffrnode 88 6 0 1 1 0 1 1 0 8 0 pffrent 40 73 0 67 1 0 1 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 61 0 2 1 0 1 1 0 8 0 pfstkey 128 61 0 2 2 0 2 2 0 8 0 pfstate 384 60 0 2 6 0 6 6 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 649 0 269 30 1 29 29 0 8 3 art_table 32 652 0 269 4 0 4 4 0 8 0 art_node 16 155 0 74 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 10 1 0 1 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 51 0 2 2 0 2 2 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2892 0 1385 95 0 95 95 0 8 0 ffsino 288 2892 0 1385 109 0 109 109 0 8 0 nchpl 144 4107 0 2408 64 0 64 64 0 8 0 rtmask 32 4 0 4 1 0 1 1 0 8 1 uvmvnodes 80 3516 0 0 72 0 72 72 0 8 0 vnodes 216 3516 0 0 196 0 196 196 0 8 0 namei 1024 14508 0 14507 2 1 1 2 0 8 0 percpumem 16 86 0 40 1 0 1 1 0 8 0 kstatmem 264 74 0 52 2 0 2 2 0 8 0 scsiplug 72 5 0 5 1 0 1 1 0 8 1 scxspl 216 12587 0 12587 10 5 5 8 1 8 5 plimitpl 152 214 0 195 1 0 1 1 0 8 0 sigapl 424 1203 0 1132 9 0 9 9 0 8 0 futexpl 64 11925 0 11916 1 0 1 1 0 8 0 knotepl 120 558 0 0 17 0 17 17 0 8 0 kqueuepl 224 241 0 228 2 0 2 2 0 8 1 pipepl 336 213 0 185 6 0 6 6 0 8 3 fdescpl 520 1162 0 1131 3 0 3 3 0 8 0 filepl 160 7184 0 6927 19 1 18 19 0 8 6 lockfpl 104 326 0 321 1 0 1 1 0 8 0 lockfspl 48 105 0 101 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 54 0 37 1 0 1 1 0 8 0 ucredpl 104 1244 0 1229 1 0 1 1 0 8 0 zombiepl 144 1133 0 1132 1 0 1 1 0 8 0 processpl 1192 1203 0 1132 6 0 6 6 0 8 0 procpl 656 2399 0 2314 8 0 8 8 0 8 0 srpgc 96 6 0 6 1 0 1 1 0 8 1 sosppl 168 4 0 4 2 1 1 1 0 8 1 sockpl 728 1758 0 1690 24 11 13 22 0 8 6 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 117 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 49 0 0 2 0 2 2 0 8 0 mbufpl 256 253 0 0 16 0 16 16 0 8 0 bufpl 280 3803 0 126 263 0 263 263 0 8 0 anonpl 32 7863 0 0 64 0 64 64 0 246 0 amapchunkpl 152 30713 0 30177 28 2 26 28 0 158 4 amappl16 200 3317 0 3282 17 6 11 15 0 8 8 amappl15 192 10 0 8 1 0 1 1 0 8 0 amappl14 184 128 0 116 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 1 1 1 0 8 1 amappl12 168 1851 0 1820 3 1 2 2 0 8 0 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 250 0 250 1 1 0 1 0 8 0 amappl8 136 44 0 40 1 0 1 1 0 8 0 amappl7 128 144 0 131 1 0 1 1 0 8 0 amappl6 120 201 0 198 1 0 1 1 0 8 0 amappl5 112 147 0 136 1 0 1 1 0 8 0 amappl4 104 357 0 336 1 0 1 1 0 8 0 amappl3 96 6142 0 6017 4 0 4 4 0 8 0 amappl2 88 703 0 640 2 0 2 2 0 8 0 amappl1 80 12148 0 11541 15 0 15 15 0 8 0 amappl 88 8679 0 8500 5 0 5 5 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 8 0 8 2 1 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 53 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1162 0 1131 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1162 0 1131 1 0 1 1 0 8 0 vmmpekpl 168 11081 0 11036 3 0 3 3 0 8 0 vmmpepl 168 78404 0 76369 101 0 101 101 0 357 9 vmsppl 480 1161 0 1131 5 0 5 5 0 8 0 rwobjpl 72 25785 0 21254 83 0 83 83 0 8 0 pdppl 4096 2332 0 2262 114 42 72 86 0 8 2 pvpl 32 16799 0 0 137 1 136 136 0 265 0 pmappl 256 1161 0 1131 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 412 0 46 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 x86_bus_space_io_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:666 acpitimer_delay(1) at acpitimer_delay+0x58 acpitimer_read sys/dev/acpi/acpitimer.c:141 [inline] acpitimer_delay(1) at acpitimer_delay+0x58 sys/dev/acpi/acpitimer.c:120 comcnputc(800,65) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(65) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(65) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff833892de) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,2,ffff800035fff020) at db_ktrap+0x169 db_printtrap sys/arch/amd64/amd64/db_interface.c:102 [inline] db_ktrap(6,2,ffff800035fff020) at db_ktrap+0x169 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff800035fff020) at kerntrap+0x1dc sys/arch/amd64/amd64/trap.c:323 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x57 end trace frame: 0xffff800035fff460, count: 0 ddb{0}> trace x86_ipi_db(ffffffff837edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 x86_bus_space_io_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:666 acpitimer_delay(1) at acpitimer_delay+0x58 acpitimer_read sys/dev/acpi/acpitimer.c:141 [inline] acpitimer_delay(1) at acpitimer_delay+0x58 sys/dev/acpi/acpitimer.c:120 comcnputc(800,65) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(65) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(65) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff833892de) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,2,ffff800035fff020) at db_ktrap+0x169 db_printtrap sys/arch/amd64/amd64/db_interface.c:102 [inline] db_ktrap(6,2,ffff800035fff020) at db_ktrap+0x169 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff800035fff020) at kerntrap+0x1dc sys/arch/amd64/amd64/trap.c:323 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x57 syscall(ffff800035fff470) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800035fff470) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70fddfce0f0, count: -16 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x680 savectx() at savectx+0xae end of kernel end trace frame: 0x761b038596c0, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x761b038596c0, count: -1