*cpu1: uvm_fault(0xfffffd806b901020, 0x0, 0, 1) -> e ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x77c9b6b65670, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a308bd0 rbx 0 rdx 0 rcx 0xffff80003c4a1a20 rax 0x3b r8 0xffff80002a308b00 r9 0 r10 0x2c0ada9955aaa58d r11 0x2d684c8660a4754e r12 0 r13 0 r14 0xffff80003c4a1a20 r15 0 rip 0xffffffff81b543ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a308b50 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{0}> show proc PROC (syz-executor) tid=319416 pid=66949 tcnt=4 stat=onproc flags process=10 proc=0 runpri=86, usrpri=86, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c4a0560,0xffff80003c4a1268 process=0xffff80002ebdb9e0 user=0xffff80002a303000, vmspace=0xfffffd806b9015d8 estcpu=36, cpticks=7, pctcpu=0.0, user=5, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *66949 319416 93438 60929 7 0x10 syz-executor 66949 263560 93438 60929 3 0x4000090 netacc syz-executor 66949 432365 93438 60929 3 0x4000090 fsleep syz-executor 66949 292794 93438 60929 3 0x4000090 fsleep syz-executor 46648 90669 23465 0 2 0 syz-executor 46648 405004 23465 0 3 0x4000080 kqread syz-executor 95424 194703 62551 0 2 0 syz-executor 95424 350593 62551 0 3 0x4000080 fsleep syz-executor 95424 300016 62551 0 3 0x4000080 fsleep syz-executor 71382 125431 17397 0 2 0 syz-executor 71382 4437 17397 0 3 0x4000080 fsleep syz-executor 71382 176865 17397 0 2 0x4000000 syz-executor 66120 458844 60421 0 3 0x82 nanoslp syz-executor 17397 146677 60421 0 3 0x82 nanoslp syz-executor 30547 170000 60421 0 3 0x82 wait syz-executor 23465 230894 60421 0 3 0x82 nanoslp syz-executor 62551 13416 60421 0 3 0x82 nanoslp syz-executor 22717 396655 0 0 3 0x14200 bored sosplice 93438 198708 60421 0 3 0x82 nanoslp syz-executor 29172 352766 60421 0 3 0x82 wait syz-executor 66390 425992 60421 0 3 0x82 nanoslp syz-executor 60421 284679 87403 0 3 0x82 kqread syz-executor 87403 4487 88615 0 3 0x10008a sigsusp ksh 88615 459105 76486 0 3 0x98 kqread sshd-session 76486 305879 24333 0 3 0x92 kqread sshd-session 34777 206738 1 0 3 0x100083 ttyin getty 24333 357628 1 0 3 0x88 kqread sshd 87272 266772 4645 74 3 0x1100092 bpf pflogd 4645 329748 1 0 3 0x80 sbwait pflogd 34172 287927 67565 73 3 0x1100090 kqread syslogd 67565 39841 1 0 3 0x100082 sbwait syslogd 18698 123190 1 0 3 0x100080 kqread resolvd 42100 522716 16905 77 3 0x100092 kqread dhcpleased 1421 61549 16905 77 3 0x100092 kqread dhcpleased 16905 352631 1 0 3 0x80 kqread dhcpleased 87396 46634 0 0 3 0x14200 bored smr 72709 492486 0 0 2 0x14200 zerothread 13961 288929 0 0 3 0x14200 aiodoned aiodoned 66955 97283 0 0 3 0x14200 syncer update 94567 168884 0 0 3 0x14200 cleaner cleaner 22064 336981 0 0 3 0x14200 reaper reaper 39496 123750 0 0 3 0x14200 pgdaemon pagedaemon 21616 160616 0 0 3 0x14200 bored viomb 8032 125395 0 0 3 0x40014200 acpi0 acpi0 44788 474827 0 0 3 0x40014200 idle1 56816 18874 0 0 3 0x14200 bored softnet1 93864 249673 0 0 3 0x14200 bored softnet0 3823 216063 0 0 3 0x14200 bored systqmp 24293 433625 0 0 3 0x14200 bored systq 93728 496844 0 0 3 0x14200 tmoslp softclockmp 19904 256796 0 0 3 0x40014200 tmoslp softclock 95415 28569 0 0 3 0x40014200 idle0 1 128592 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd80700dff10) #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 pmap_write_protect+0x80 rcr3 sys/arch/amd64/compile/SYZKALLER/obj/machine/cpufunc.h:139 [inline] #3 pmap_write_protect+0x80 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #3 pmap_write_protect+0x80 sys/arch/amd64/amd64/pmap.c:2163 #4 uvm_map_protect+0xb95 pmap_protect sys/arch/amd64/compile/SYZKALLER/obj/machine/pmap.h:476 [inline] #4 uvm_map_protect+0xb95 sys/uvm/uvm_map.c:3191 #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 66949 (syz-executor) thread 0xffff80003c4a1a20 (319416) Process 46648 (syz-executor) thread 0xffff80003c4a1cb8 (90669) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10225 11108K 11423K 166960K 12453 0 pcb 17 14K 16K 166960K 324 0 rtable 191 9K 9K 166960K 536 0 pf 36 18K 81K 166960K 130 0 ifaddr 37 6K 7K 166960K 114 0 ifgroup 55 2K 2K 166960K 172 0 sysctl 4 1K 9K 166960K 16 0 counters 68 36K 37K 166960K 168 0 ioctlops 0 0K 4K 166960K 1628 0 iov 0 0K 40K 166960K 54 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1392 88K 88K 166960K 2149 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 47 0 dirhash 12 2K 3K 166960K 45 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 1171 0 sigio 0 0K 0K 166960K 22 0 proc 72 115K 148K 166960K 844 0 subproc 72 4K 4K 166960K 135 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 130 0 in_multi 77 5K 7K 166960K 227 0 ether_multi 1 0K 0K 166960K 12 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 562 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 255 174K 184K 166960K 11811 0 UVM aobj 24 2K 2K 166960K 26 0 pinsyscall 43 86K 100K 166960K 2436 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 83 0 NDP 12 0K 2K 166960K 77 0 temp 68 8651K 8715K 166960K 61883 0 kqueue 14 22K 28K 166960K 216 0 SYN cache 2 8K 16K 166960K 3 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 112 0 109 1 0 1 1 0 8 0 rtentry 176 191 0 116 5 0 5 5 0 8 0 unpcb 144 788 0 770 6 4 2 4 0 8 1 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 284 0 280 5 1 4 4 0 8 3 arp 136 22 0 12 1 0 1 1 0 8 0 inpcb 328 1070 0 1063 10 6 4 7 0 8 3 nd6 144 34 0 19 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 2 1 1 0 8 1 kcovpl 48 15 0 7 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1192 31 0 31 2 1 1 1 0 8 1 pppxif 1504 4 0 4 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 8 0 4 1 0 1 1 0 482 0 pffrnode 88 8 0 4 1 0 1 1 0 8 0 pffrent 40 16 0 12 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 71 0 25 1 0 1 1 0 8 0 pfstkey 128 72 0 26 2 0 2 2 0 8 0 pfstate 384 72 0 26 5 0 5 5 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 rttmr 136 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 942 0 585 36 13 23 30 0 8 0 art_table 40 945 0 585 5 0 5 5 0 8 0 art_node 32 190 0 126 1 0 1 1 0 8 0 sysvmsgpl 40 136 0 135 3 2 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 41 0 31 1 0 1 1 0 8 0 shmpl 112 23 0 2 1 0 1 1 0 8 0 dirhash 1024 39 0 22 3 0 3 3 0 8 0 dino2pl 256 3293 0 1776 96 0 96 96 0 8 0 ffsino 296 3293 0 1776 118 0 118 118 0 8 0 nchpl 144 4824 0 3119 64 0 64 64 0 8 0 rtmask 32 6 0 6 2 1 1 1 0 8 1 uvmvnodes 80 3867 0 0 79 0 79 79 0 8 0 vnodes 216 3867 0 0 215 0 215 215 0 8 0 namei 1024 15933 0 15933 2 1 1 1 0 8 1 percpumem 16 99 0 50 1 0 1 1 0 8 0 kstatmem 264 98 0 70 5 2 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 5 0 5 3 2 1 1 0 8 1 scxspl 216 30489 0 30489 13 12 1 8 1 8 1 plimitpl 152 319 0 300 1 0 1 1 0 8 0 sigapl 424 1495 0 1446 8 1 7 8 0 8 0 knotepl 120 577 0 0 17 0 17 17 0 8 0 kqueuepl 224 581 0 571 9 4 5 5 0 8 4 pipepl 344 244 0 216 6 3 3 6 0 8 0 fdescpl 528 1438 0 1406 3 0 3 3 0 8 0 filepl 160 8112 0 7890 16 1 15 15 0 8 3 lockfpl 104 422 0 420 1 0 1 1 0 8 0 lockfspl 48 196 0 194 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 60 0 43 1 0 1 1 0 8 0 ucredpl 104 1127 0 1112 1 0 1 1 0 8 0 zombiepl 144 1676 0 1672 1 0 1 1 0 8 0 processpl 1232 1495 0 1446 6 2 4 6 0 8 0 procpl 664 3163 0 3106 8 2 6 8 0 8 0 sosppl 168 8 0 8 3 2 1 1 0 8 1 sockpl 752 1996 0 1968 16 8 8 11 0 8 5 mcl64k 65536 20 0 0 3 0 3 3 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 123 0 0 16 0 16 16 0 8 0 mcl2k 2048 41 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 225 0 0 14 0 14 14 0 8 0 bufpl 280 13892 0 7749 441 1 440 440 0 8 0 anonpl 32 9824 0 0 80 0 80 80 0 246 0 amapchunkpl 152 40254 0 39712 45 15 30 34 0 158 8 amappl16 200 5725 0 5692 32 17 15 15 0 8 6 amappl15 192 23 0 23 2 2 0 1 0 8 0 amappl14 184 132 0 119 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 2192 0 2160 3 1 2 2 0 8 0 amappl11 160 50 0 36 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 251 0 249 1 0 1 1 0 8 0 amappl8 136 94 0 92 1 0 1 1 0 8 0 amappl7 128 122 0 110 1 0 1 1 0 8 0 amappl6 120 252 0 248 1 0 1 1 0 8 0 amappl5 112 152 0 142 1 0 1 1 0 8 0 amappl4 104 306 0 286 1 0 1 1 0 8 0 amappl3 96 6938 0 6829 5 2 3 4 0 8 0 amappl2 88 1688 0 1609 2 0 2 2 0 8 0 amappl1 80 13008 0 12405 17 3 14 15 0 8 0 amappl 88 10855 0 10675 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma512 512 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 25 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1438 0 1406 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1438 0 1406 1 0 1 1 0 8 0 vmmpekpl 168 12588 0 12535 3 0 3 3 0 8 0 vmmpepl 168 95984 0 93913 107 6 101 101 0 357 2 vmsppl 488 1437 0 1406 5 0 5 5 0 8 0 rwobjpl 80 31557 0 26704 101 0 101 101 0 8 0 pdppl 4096 2884 0 2812 117 43 74 84 0 8 2 pvpl 32 20038 0 0 163 1 162 163 0 265 0 pmappl 256 1437 0 1406 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 311 0 62 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x77c9b6b65670, 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_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:674 acpitimer_delay(1) at acpitimer_delay+0x57 acpitimer_read sys/dev/acpi/acpitimer.c:141 [inline] acpitimer_delay(1) at acpitimer_delay+0x57 sys/dev/acpi/acpitimer.c:120 comcnputc(800,61) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(61) at cnputc+0x67 sys/dev/cons.c:218 db_putchar(61) at db_putchar+0x36d sys/ddb/db_output.c:155 kprintf() at kprintf+0x29a5 sys/kern/subr_prf.c:-1 db_printf(ffffffff83361797) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,0,ffff80003c412dc0) at db_ktrap+0x1b6 db_printtrap sys/arch/amd64/amd64/db_interface.c:103 [inline] db_ktrap(6,0,ffff80003c412dc0) at db_ktrap+0x1b6 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff80003c412dc0) at kerntrap+0x23e sys/arch/amd64/amd64/trap.c:480 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff80000148c000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 end trace frame: 0xffff80003c412ef0, 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_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:674 acpitimer_delay(1) at acpitimer_delay+0x57 acpitimer_read sys/dev/acpi/acpitimer.c:141 [inline] acpitimer_delay(1) at acpitimer_delay+0x57 sys/dev/acpi/acpitimer.c:120 comcnputc(800,61) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(61) at cnputc+0x67 sys/dev/cons.c:218 db_putchar(61) at db_putchar+0x36d sys/ddb/db_output.c:155 kprintf() at kprintf+0x29a5 sys/kern/subr_prf.c:-1 db_printf(ffffffff83361797) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,0,ffff80003c412dc0) at db_ktrap+0x1b6 db_printtrap sys/arch/amd64/amd64/db_interface.c:103 [inline] db_ktrap(6,0,ffff80003c412dc0) at db_ktrap+0x1b6 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff80003c412dc0) at kerntrap+0x23e sys/arch/amd64/amd64/trap.c:480 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff80000148c000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,81,2000,ffff80002ebd02b8) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80002ebd02b8) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c412f70) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd800d2cc468,81,fffffd80097fb6e8,ffff80002ebd02b8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b849900,ffff80002ebd02b8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b849900,ffff80002ebd02b8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b849900,ffff80002ebd02b8) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b849900,ffff80002ebd02b8) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80002ebd02b8) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80002ebd02b8,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002ebd02b8,ffff80003c4132e0,ffff80003c413230) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c4132e0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4132e0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x708105183d10, count: -25