*cpu0: uvm_fault(0xfffffd806beac798, 0x93cea0, 0, 2) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0xf679bb23570, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a342290 rbx 0 rdx 0xffff800001485100 rcx 0xffff8000fffe3c60 rax 0x32 r8 0xffff80002a3421c0 r9 0x1 r10 0x3cdf73d40b708f13 r11 0xbb1011a8b1c0b223 r12 0 r13 0 r14 0xffff8000fffe3c60 r15 0 rip 0xffffffff811863ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a342210 ss 0x10 savectx+0xae: movl $0,%gs:0x680 ddb{1}> show proc PROC (syz-executor) tid=474183 pid=28276 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffe3740,0xffff8000fffe22d0 process=0xffff8000fffe4020 user=0xffff80002a33d000, vmspace=0xfffffd806beac018 estcpu=36, cpticks=12, pctcpu=0.0, user=1, sys=11, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28276 250239 67755 0 3 0x80 nanoslp syz-executor *28276 474183 67755 0 7 0x4000000 syz-executor 28276 266529 67755 0 3 0x4000080 fsleep syz-executor 28276 520737 67755 0 3 0x4000080 fsleep syz-executor 24315 48881 14754 0 3 0x80 nanoslp syz-executor 24315 132823 14754 0 3 0x4000000 smrbar syz-executor 98569 109937 77054 0 3 0x80 nanoslp syz-executor 98569 497529 77054 0 2 0x4000000 syz-executor 98569 463106 77054 0 3 0x4000080 fsleep syz-executor 85846 331384 99689 0 3 0x80 nanoslp syz-executor 85846 114439 99689 0 7 0x4000000 syz-executor 85846 212256 99689 0 3 0x4000080 fsleep syz-executor 85846 153854 99689 0 3 0x4000080 fsleep syz-executor 33898 62952 78839 0 4 0x82010 syz-executor 33898 241209 78839 0 2 0x4082090 syz-executor 33898 105524 78839 0 3 0x4002010 suspend syz-executor 94414 266732 57147 0 2 0x10 syz-executor 94414 120281 57147 0 3 0x4000090 fsleep syz-executor 48726 343382 25697 0 3 0x3000 suspend syz-executor 48726 17347 25697 0 2 0x4081000 syz-executor 70594 182772 1 0 3 0x100083 ttyin getty 57312 356891 0 0 3 0x14280 nfsidl nfsio 80577 44434 0 0 3 0x14280 nfsidl nfsio 3244 468559 0 0 3 0x14280 nfsidl nfsio 72666 228406 0 0 3 0x14280 nfsidl nfsio 27005 216880 0 0 3 0x14280 nfsidl nfsio 34923 413478 0 0 3 0x14280 nfsidl nfsio 20973 514487 0 0 3 0x14280 nfsidl nfsio 37350 373150 0 0 3 0x14280 nfsidl nfsio 12508 186606 0 0 3 0x14280 nfsidl nfsio 23318 30040 0 0 3 0x14280 nfsidl nfsio 90839 466738 0 0 3 0x14280 nfsidl nfsio 76732 305491 0 0 3 0x14280 nfsidl nfsio 59851 110007 0 0 3 0x14280 nfsidl nfsio 73466 285687 0 0 3 0x14280 nfsidl nfsio 93131 62506 0 0 3 0x14280 nfsidl nfsio 84649 292395 0 0 3 0x14280 nfsidl nfsio 69634 82927 0 0 3 0x14280 nfsidl nfsio 78185 66483 0 0 3 0x14280 nfsidl nfsio 23487 310293 0 0 3 0x14280 nfsidl nfsio 58484 33664 0 0 3 0x14280 nfsidl nfsio 99689 502264 67385 0 2 0x482 syz-executor 88042 55864 0 0 3 0x14200 acct acct 21682 296903 0 0 3 0x14200 bored sosplice 77054 96929 67385 0 3 0x82 nanoslp syz-executor 97813 493602 67385 0 2 0x482 syz-executor 78839 438211 67385 0 3 0x82 nanoslp syz-executor 14754 440399 67385 0 3 0x82 nanoslp syz-executor 67755 495966 67385 0 3 0x82 nanoslp syz-executor 25697 291038 67385 0 2 0x482 syz-executor 57147 209726 67385 0 2 0x482 syz-executor 67385 224306 30758 0 3 0x82 kqread syz-executor 30758 425574 36005 0 3 0x10008a sigsusp ksh 36005 358351 17732 0 3 0x98 kqread sshd-session 17732 346397 42917 0 3 0x92 kqread sshd-session 42917 254595 1 0 3 0x88 kqread sshd 3326 311759 5314 74 3 0x1100092 bpf pflogd 5314 333471 1 0 3 0x80 sbwait pflogd 28719 325981 17915 73 3 0x1100090 kqread syslogd 17915 348088 1 0 3 0x100082 sbwait syslogd 80208 211181 1 0 3 0x100080 kqread resolvd 21261 36299 22844 77 3 0x100092 kqread dhcpleased 32388 409310 22844 77 3 0x100092 kqread dhcpleased 22844 78426 1 0 3 0x80 kqread dhcpleased 96547 458539 0 0 2 0x40014200 smr 6057 97002 0 0 2 0x14200 zerothread 71562 254793 0 0 3 0x14200 aiodoned aiodoned 26489 355387 0 0 3 0x14200 syncer update 66582 327963 0 0 3 0x14200 cleaner cleaner 71737 321059 0 0 3 0x14200 reaper reaper 73639 290754 0 0 3 0x14200 pgdaemon pagedaemon 44065 225942 0 0 3 0x14200 bored viomb 11371 62468 0 0 3 0x40014200 acpi0 acpi0 26361 505761 0 0 3 0x40014200 idle1 33683 389748 0 0 3 0x14200 bored softnet3 41544 388155 0 0 3 0x14200 bored softnet2 90871 358983 0 0 3 0x14200 bored softnet1 50382 343286 0 0 3 0x14200 bored softnet0 86339 26835 0 0 3 0x14200 bored systqmp 43200 277479 0 0 3 0x14200 bored systq 9015 333581 0 0 3 0x14200 tmoslp softclockmp 4489 31617 0 0 2 0x40014200 softclock 99648 91212 0 0 3 0x40014200 idle0 1 316603 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &sched_lock r = 0 (0xffffffff83991f70) #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 sleep_finish+0x157 sys/kern/kern_synch.c:394 #4 sys_nanosleep+0x28a sys/kern/kern_time.c:303 #5 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 24315 (syz-executor) thread 0xffff8000fffe2f90 (132823) exclusive rwlock clonelk r = 0 (0xffffffff8383b7b8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 if_clone_destroy+0x67 sys/net/if.c:-1 #3 tun_dev_close+0x1dc sys/net/if_tun.c:529 #4 spec_close+0x412 sys/kern/spec_vnops.c:-1 #5 VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 #6 vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] #6 vn_closefile+0x12b sys/kern/vfs_vnops.c:615 #7 fdrop+0x126 sys/kern/kern_descrip.c:1265 #8 closef+0x192 sys/kern/kern_descrip.c:1249 #9 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #9 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10233 11304K 11491K 166960K 12887 0 pcb 19 14K 16K 166960K 236 0 rtable 171 8K 8K 166960K 500 0 pf 36 18K 21K 166960K 126 0 ifaddr 34 5K 8K 166960K 80 0 ifgroup 56 2K 2K 166960K 137 0 sysctl 4 1K 1K 166960K 6 0 counters 64 36K 37K 166960K 126 0 ioctlops 0 0K 4K 166960K 1714 0 iov 0 0K 16K 166960K 43 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1400 88K 89K 166960K 2245 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 36 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 982 0 sigio 1 0K 0K 166960K 21 0 proc 72 91K 128K 166960K 646 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 120 0 in_multi 66 4K 7K 166960K 133 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 481 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 256 168K 191K 166960K 10552 0 UVM aobj 35 2K 4K 166960K 38 0 pinsyscall 43 86K 104K 166960K 2143 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 47 0 NDP 12 0K 2K 166960K 53 0 temp 53 8682K 8762K 166960K 34653 0 kqueue 16 26K 28K 166960K 151 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 162 0 158 3 0 3 3 0 8 2 rtentry 176 140 0 69 6 0 6 6 0 8 0 unpcb 144 619 0 596 8 6 2 4 0 8 1 syncache 336 5 0 5 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 240 0 234 9 7 2 8 0 8 1 arp 128 22 0 9 1 0 1 1 0 8 0 inpcb 384 998 0 981 20 12 8 14 0 8 6 nd6 144 29 0 13 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 2 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 1 0 1 0 8 0 ppxss 1192 18 0 18 2 1 1 1 0 8 1 pppxif 1504 3 0 3 2 2 0 1 0 8 0 pffrag 232 5 0 0 1 0 1 1 0 482 0 pffrnode 88 5 0 0 1 0 1 1 0 8 0 pffrent 40 5 0 0 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 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 60 0 22 1 0 1 1 0 8 0 pfstkey 128 60 0 22 2 0 2 2 0 8 0 pfstate 384 60 0 22 5 0 5 5 0 8 0 pfrule 1344 26 0 19 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 592 0 267 29 8 21 29 0 8 0 art_table 32 595 0 267 4 0 4 4 0 8 0 art_node 16 139 0 75 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 2 1 0 1 1 0 8 0 semapl 112 33 0 23 1 0 1 1 0 8 0 shmpl 112 35 0 3 1 0 1 1 0 8 0 dirhash 1024 26 0 9 3 0 3 3 0 8 0 dino2pl 256 3162 0 1656 95 0 95 95 0 8 0 ffsino 288 3162 0 1656 109 0 109 109 0 8 0 nchpl 144 4539 0 2840 64 0 64 64 0 8 0 rtmask 32 4 0 4 2 2 0 1 0 8 0 uvmvnodes 80 3790 0 0 78 0 78 78 0 8 0 vnodes 216 3790 0 0 211 0 211 211 0 8 0 namei 1024 14582 0 14582 4 3 1 2 0 8 1 percpumem 16 78 0 31 1 0 1 1 0 8 0 kstatmem 264 70 0 46 3 1 2 3 0 8 0 scsiplug 72 7 0 7 3 2 1 1 0 8 1 scxspl 216 14655 0 14655 15 12 3 8 1 8 3 plimitpl 152 111 0 93 1 0 1 1 0 8 0 sigapl 424 1316 0 1244 11 2 9 9 0 8 0 futexpl 64 12962 0 12956 1 0 1 1 0 8 0 knotepl 120 764 0 0 24 1 23 24 0 8 0 kqueuepl 224 305 0 290 6 4 2 5 0 8 1 pipepl 336 211 0 183 3 0 3 3 0 8 0 fdescpl 520 1276 0 1244 3 0 3 3 0 8 0 filepl 160 7270 0 7033 27 12 15 21 0 8 4 lockfpl 104 321 0 318 1 0 1 1 0 8 0 lockfspl 48 133 0 130 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 42 0 25 1 0 1 1 0 8 0 ucredpl 104 998 0 983 1 0 1 1 0 8 0 zombiepl 144 1246 0 1244 1 0 1 1 0 8 0 processpl 1192 1316 0 1244 6 0 6 6 0 8 0 procpl 656 2723 0 2638 9 1 8 8 0 8 0 srpgc 96 6 0 6 2 2 0 1 0 8 0 sosppl 168 6 0 6 2 1 1 1 0 8 1 sockpl 728 1796 0 1754 32 20 12 21 0 8 8 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 128 0 0 16 0 16 16 0 8 0 mcl2k 2048 35 0 0 4 0 4 4 0 8 0 mtagpl 96 68 0 0 2 0 2 2 0 8 0 mbufpl 256 330 0 0 21 0 21 21 0 8 0 bufpl 280 4557 0 148 315 0 315 315 0 8 0 anonpl 32 9413 0 0 76 0 76 76 0 246 0 amapchunkpl 152 35233 0 34680 45 17 28 32 0 158 6 amappl16 200 3301 0 3112 25 15 10 20 0 8 0 amappl15 192 8 0 8 2 1 1 1 0 8 1 amappl14 184 133 0 121 1 0 1 1 0 8 0 amappl13 176 5 0 5 2 2 0 1 0 8 0 amappl12 168 1993 0 1961 4 2 2 3 0 8 0 amappl11 160 59 0 43 1 0 1 1 0 8 0 amappl10 152 43 0 43 1 1 0 1 0 8 0 amappl9 144 247 0 247 1 1 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 117 0 104 1 0 1 1 0 8 0 amappl6 120 193 0 189 1 0 1 1 0 8 0 amappl5 112 142 0 132 1 0 1 1 0 8 0 amappl4 104 344 0 322 1 0 1 1 0 8 0 amappl3 96 6990 0 6864 5 1 4 4 0 8 0 amappl2 88 686 0 621 2 0 2 2 0 8 0 amappl1 80 12311 0 11689 18 3 15 16 0 8 0 amappl 88 9648 0 9467 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma2048 2048 2 0 2 1 0 1 1 0 8 1 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 254 0 254 2 2 0 1 0 8 0 dma64 64 7 0 7 2 2 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 37 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1276 0 1244 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1276 0 1244 1 0 1 1 0 8 0 vmmpekpl 168 11555 0 11514 3 0 3 3 0 8 0 vmmpepl 168 85228 0 82970 108 4 104 106 0 357 5 vmsppl 480 1275 0 1244 6 1 5 5 0 8 0 rwobjpl 72 26787 0 21830 91 0 91 91 0 8 0 pdppl 4096 2560 0 2488 104 32 72 86 0 8 0 pvpl 32 17025 0 0 139 1 138 138 0 265 0 pmappl 256 1275 0 1244 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 415 0 55 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8388bff0) 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+0x77 acpitimer_read sys/dev/acpi/acpitimer.c:142 [inline] acpitimer_delay(1) at acpitimer_delay+0x77 sys/dev/acpi/acpitimer.c:120 comcnputc(800,32) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(32) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(32) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff833fab69) at db_printf+0x9b sys/kern/subr_prf.c:-1 fault(ffffffff833a14c5) at fault+0xa7 sys/arch/amd64/amd64/trap.c:157 kpageflttrap(ffff80002efe1c50,93cea0) at kpageflttrap+0x385 sys/arch/amd64/amd64/trap.c:290 kerntrap(ffff80002efe1c50) at kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b end trace frame: 0xffff80002efe1fc0, count: 0 ddb{0}> trace x86_ipi_db(ffffffff8388bff0) 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+0x77 acpitimer_read sys/dev/acpi/acpitimer.c:142 [inline] acpitimer_delay(1) at acpitimer_delay+0x77 sys/dev/acpi/acpitimer.c:120 comcnputc(800,32) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(32) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(32) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff833fab69) at db_printf+0x9b sys/kern/subr_prf.c:-1 fault(ffffffff833a14c5) at fault+0xa7 sys/arch/amd64/amd64/trap.c:157 kpageflttrap(ffff80002efe1c50,93cea0) at kpageflttrap+0x385 sys/arch/amd64/amd64/trap.c:290 kerntrap(ffff80002efe1c50) at kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x57 syscall(ffff80002efe20a0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002efe20a0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe692a8ae70, count: -17 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x680 savectx() at savectx+0xae end of kernel end trace frame: 0xf679bb23570, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0xf679bb23570, count: -1