*cpu1: uvm_fault(0xfffffd80619b4030, 0x0, 0, 1) -> e ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7e2912d08c10, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a31fc40 rbx 0 rdx 0 rcx 0xffff80003c44efe0 rax 0x3a r8 0xffff80002a31fb70 r9 0 r10 0x3a9c2ca3c0719a4c r11 0x4252eafed71e8655 r12 0 r13 0 r14 0xffff80003c44efe0 r15 0 rip 0xffffffff813a73ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a31fbc0 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{0}> show proc PROC (syz-executor) tid=70277 pid=97527 tcnt=3 stat=onproc flags process=0 proc=0 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c44fa40,0xffff80003c44e828 process=0xffff80003ac24020 user=0xffff80002a31a000, vmspace=0xfffffd80619b45e8 estcpu=36, cpticks=5, pctcpu=0.0, user=3, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23831 164083 59176 0 2 0 syz-executor 7100 372788 84006 0 2 0 syz-executor 7100 140870 84006 0 3 0x4000080 fsleep syz-executor 5829 459325 21645 0 2 0 syz-executor 5829 297032 21645 0 3 0x4000080 fsleep syz-executor *97527 70277 11187 0 7 0 syz-executor 97527 182840 11187 0 3 0x4000080 fsleep syz-executor 97527 227646 11187 0 3 0x4000080 fsleep syz-executor 92346 269220 99919 0 2 0 syz-executor 92346 142917 99919 0 2 0x4000000 syz-executor 97187 240251 30777 0 2 0 syz-executor 97187 245369 30777 0 2 0x4000000 syz-executor 84006 394940 17330 0 3 0x82 nanoslp syz-executor 67329 234171 0 0 3 0x14200 acct acct 63784 402427 1 0 3 0x100083 ttyopn getty 5599 165992 17330 0 3 0x82 nanoslp syz-executor 30777 117651 17330 0 3 0x82 nanoslp syz-executor 63079 460542 0 0 3 0x14200 bored sosplice 21645 256954 17330 0 3 0x82 nanoslp syz-executor 36175 486922 17330 0 3 0x82 wait syz-executor 11187 418147 17330 0 3 0x82 nanoslp syz-executor 99919 163258 17330 0 3 0x82 nanoslp syz-executor 59176 367213 17330 0 3 0x82 nanoslp syz-executor 17330 252667 25837 0 3 0x82 kqread syz-executor 25837 239274 55361 0 3 0x10008a sigsusp ksh 55361 370445 18429 0 3 0x98 kqread sshd-session 18429 260200 22332 0 3 0x92 kqread sshd-session 22332 176221 1 0 3 0x88 kqread sshd 14651 215302 53311 74 3 0x1100092 bpf pflogd 53311 151704 1 0 3 0x80 sbwait pflogd 21729 156321 83773 73 3 0x1100090 kqread syslogd 83773 94516 1 0 3 0x100082 sbwait syslogd 37147 27177 1 0 3 0x100080 kqread resolvd 53366 416804 0 0 3 0x14200 bored smr 55405 378242 0 0 2 0x14200 zerothread 14352 102644 0 0 3 0x14200 aiodoned aiodoned 18758 246388 0 0 3 0x14200 syncer update 22093 358331 0 0 3 0x14200 cleaner cleaner 68192 31372 0 0 2 0x14200 reaper 34627 393421 0 0 3 0x14200 pgdaemon pagedaemon 82216 63641 0 0 3 0x14200 bored viomb 43400 396659 0 0 3 0x40014200 acpi0 acpi0 19393 501945 0 0 3 0x40014200 idle1 25723 356336 0 0 3 0x14200 bored softnet7 24190 426892 0 0 3 0x14200 bored softnet6 6595 370677 0 0 3 0x14200 bored softnet5 529 235362 0 0 3 0x14200 bored softnet4 124 183170 0 0 3 0x14200 bored softnet3 61315 268510 0 0 3 0x14200 bored softnet2 68878 1883 0 0 3 0x14200 bored softnet1 76632 495548 0 0 3 0x14200 bored softnet0 42407 28451 0 0 3 0x14200 bored systqmp 99209 122316 0 0 3 0x14200 bored systq 52752 155342 0 0 3 0x14200 tmoslp softclockmp 12294 137844 0 0 3 0x40014200 tmoslp softclock 32345 156485 0 0 3 0x40014200 idle0 1 318207 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &map->flags_lock r = 0 (0xfffffd80619b4760) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 vm_map_lock_ln+0x66 sys/uvm/uvm_map.c:5155 #4 uvm_map_protect+0xe0 sys/uvm/uvm_map.c:3064 #5 sys_mprotect+0x351 sys/uvm/uvm_mmap.c:590 #6 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 #7 Xsyscall+0x128 Process 23831 (syz-executor) thread 0xffff800037c14aa0 (164083) Process 92346 (syz-executor) thread 0xffff800037c14040 (142917) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10271 11130K 13815K 166960K 13727 0 pcb 17 15K 22K 166960K 781 0 rtable 212 14K 14K 166960K 1035 0 pf 47 20K 67488K 166960K 315 0 ifaddr 39 6K 7K 166960K 172 0 ifgroup 67 2K 3K 166960K 309 0 sysctl 4 1K 9K 166960K 37 0 counters 74 37K 38K 166960K 486 0 ioctlops 0 0K 4K 166960K 1930 0 iov 0 0K 28K 166960K 144 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1589 100K 100K 166960K 3239 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 37 0 VM map 2 1K 1K 166960K 2 0 sem 23 20K 20K 166960K 88 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 20 94K 110K 166960K 2399 0 sigio 1 0K 0K 166960K 56 0 proc 67 99K 180K 166960K 822 0 subproc 72 4K 4K 166960K 101 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 291 0 in_multi 66 4K 6K 166960K 225 0 ether_multi 1 0K 0K 166960K 26 0 mrt 4 0K 0K 166960K 23 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 821 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 11 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 217 136K 191K 166960K 24048 0 UVM aobj 131 4K 4K 166960K 137 0 pinsyscall 37 74K 101K 166960K 3603 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 148 0 NDP 15 0K 1K 166960K 124 0 temp 82 8656K 8800K 166960K 87292 0 kqueue 7 12K 30K 166960K 534 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 255 0 254 2 1 1 2 0 8 0 rtentry 176 387 0 317 5 0 5 5 0 8 0 unpcb 144 2019 0 2007 20 16 4 9 0 8 3 syncache 336 17 0 17 7 7 0 1 0 8 0 tcpqe 32 5 0 5 3 3 0 1 0 8 0 tcpcb 736 771 0 767 16 15 1 7 0 8 0 arp 136 87 0 76 1 0 1 1 0 8 0 inpcb 328 2626 0 2621 29 26 3 12 0 8 2 nd6 144 30 0 17 1 0 1 1 0 8 0 pkpcb 40 32 0 32 4 3 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 182 0 182 1 1 0 1 0 8 0 pppxif 1504 72 0 72 5 5 0 1 0 8 0 pfstscr 40 4 0 1 2 1 1 1 0 8 0 pffrag 232 26 0 21 1 0 1 1 0 482 0 pffrnode 88 20 0 15 1 0 1 1 0 8 0 pffrent 40 49 0 44 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 pfrktable 1344 10 0 10 3 3 0 1 0 8 0 pfanchor 1288 5 0 2 2 1 1 1 0 8 0 pftag 88 5 0 0 1 0 1 1 0 8 0 pfstitem 24 199 0 91 1 0 1 1 0 8 0 pfstkey 128 203 0 97 4 0 4 4 0 8 0 pfstate 384 196 0 93 12 0 12 12 0 8 0 pfrule 1344 30 0 25 2 1 1 2 0 8 0 rttmr 136 2 0 2 2 2 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1279 0 958 50 28 22 41 0 8 0 art_table 40 1282 0 958 7 2 5 7 0 8 0 art_node 32 382 0 324 3 2 1 3 0 8 0 sysvmsgpl 40 16 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 81 0 60 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 6107 0 4596 96 0 96 96 0 8 0 ffsino 296 6107 0 4596 118 0 118 118 0 8 0 nchpl 144 9515 0 8957 65 40 25 64 0 8 0 rtmask 32 32 0 32 4 4 0 1 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 31894 0 31894 3 2 1 2 0 8 1 percpumem 16 258 0 206 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 kstatmem 264 210 0 174 3 0 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 5 0 5 3 3 0 1 0 8 0 scxspl 216 53592 0 53592 17 15 2 8 1 8 2 plimitpl 152 467 0 450 1 0 1 1 0 8 0 sigapl 424 2721 0 2668 9 1 8 9 0 8 0 knotepl 120 760 0 0 23 0 23 23 0 8 0 kqueuepl 224 1048 0 1042 8 7 1 5 0 8 0 pipepl 344 379 0 351 9 6 3 9 0 8 0 fdescpl 528 2667 0 2638 3 0 3 3 0 8 0 filepl 160 18391 0 18182 43 28 15 19 0 8 5 lockfpl 104 763 0 761 1 0 1 1 0 8 0 lockfspl 48 313 0 311 1 0 1 1 0 8 0 sessionpl 144 37 0 29 1 0 1 1 0 8 0 pgrppl 48 110 0 94 1 0 1 1 0 8 0 ucredpl 104 3231 0 3220 1 0 1 1 0 8 0 zombiepl 144 3952 0 3950 1 0 1 1 0 8 0 processpl 1232 2721 0 2668 6 1 5 6 0 8 0 procpl 664 6809 0 6749 11 5 6 9 0 8 0 sosppl 168 15 0 15 6 6 0 1 0 8 0 sockpl 752 5034 0 5016 65 57 8 24 0 8 6 mcl64k 65536 19 0 0 3 0 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 109 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 64 0 0 7 0 7 7 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1180 0 0 74 0 74 74 0 8 0 bufpl 280 19713 0 13570 441 1 440 440 0 8 0 anonpl 32 12207 0 0 100 1 99 99 0 246 0 amapchunkpl 152 88317 0 87836 48 22 26 35 0 158 3 amappl16 200 9226 0 9195 63 49 14 26 0 8 5 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 157 0 148 1 0 1 1 0 8 0 amappl13 176 17 0 17 1 1 0 1 0 8 0 amappl12 168 3374 0 3345 3 1 2 2 0 8 0 amappl11 160 52 0 44 1 0 1 1 0 8 0 amappl10 152 16 0 16 1 1 0 1 0 8 0 amappl9 144 281 0 281 2 2 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 139 0 129 1 0 1 1 0 8 0 amappl6 120 237 0 233 1 0 1 1 0 8 0 amappl5 112 141 0 134 1 0 1 1 0 8 0 amappl4 104 348 0 329 1 0 1 1 0 8 0 amappl3 96 14476 0 14385 5 1 4 4 0 8 0 amappl2 88 3010 0 2945 2 0 2 2 0 8 0 amappl1 80 19861 0 19346 15 0 15 15 0 8 0 amappl 88 22809 0 22648 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 7 0 7 2 2 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2667 0 2638 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2667 0 2638 1 0 1 1 0 8 0 vmmpekpl 168 22956 0 22907 3 0 3 3 0 8 0 vmmpepl 168 174337 0 172601 121 30 91 110 0 357 0 vmsppl 488 2666 0 2638 7 2 5 5 0 8 0 rwobjpl 80 52570 0 45715 147 2 145 146 0 8 0 pdppl 4096 5342 0 5276 118 52 66 84 0 8 0 pvpl 32 23965 0 0 193 0 193 193 0 265 0 pmappl 256 2666 0 2638 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 405 0 108 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7e2912d08c10, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) 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_write_1(3f8,0,67) at x86_bus_space_io_write_1+0x40 sys/arch/amd64/amd64/bus_space.c:782 comcnputc(800,67) at comcnputc+0x1ab bus_space_barrier sys/dev/ic/com.c:-1 [inline] comcnputc(800,67) at comcnputc+0x1ab sys/dev/ic/com.c:1263 cnputc(67) at cnputc+0x67 sys/dev/cons.c:218 kputchar(67,5,0) at kputchar+0x2ed sys/kern/subr_prf.c:367 kprintf() at kprintf+0x29a5 sys/kern/subr_prf.c:-1 printf(ffffffff834193cf) at printf+0x8b sys/kern/subr_prf.c:529 trap_print(ffff80002effb160,6) at trap_print+0x70 sys/arch/amd64/amd64/trap.c:624 kerntrap(ffff80002effb160) at kerntrap+0x2e6 sys/arch/amd64/amd64/trap.c:485 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff8000017b7000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff80003c44f278) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c44f278) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 end trace frame: 0xffff80002effb300, count: 0 ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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_write_1(3f8,0,67) at x86_bus_space_io_write_1+0x40 sys/arch/amd64/amd64/bus_space.c:782 comcnputc(800,67) at comcnputc+0x1ab bus_space_barrier sys/dev/ic/com.c:-1 [inline] comcnputc(800,67) at comcnputc+0x1ab sys/dev/ic/com.c:1263 cnputc(67) at cnputc+0x67 sys/dev/cons.c:218 kputchar(67,5,0) at kputchar+0x2ed sys/kern/subr_prf.c:367 kprintf() at kprintf+0x29a5 sys/kern/subr_prf.c:-1 printf(ffffffff834193cf) at printf+0x8b sys/kern/subr_prf.c:529 trap_print(ffff80002effb160,6) at trap_print+0x70 sys/arch/amd64/amd64/trap.c:624 kerntrap(ffff80002effb160) at kerntrap+0x2e6 sys/arch/amd64/amd64/trap.c:485 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff8000017b7000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff80003c44f278) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c44f278) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002effb310) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806e09d520,81,fffffd80097fb340,ffff80003c44f278) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806fbdd500,ffff80003c44f278) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806fbdd500,ffff80003c44f278) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806fbdd500,ffff80003c44f278) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806fbdd500,ffff80003c44f278) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80003c44f278) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80003c44f278,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80003c44f278,ffff80002effb680,ffff80002effb5d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002effb680) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002effb680) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75c96fd87d10, count: -24