Repository navigation
Description
Version
WSL 版本: 0.56.2.0 内核版本: 5.10.102.1 WSLg 版本: 1.0.30 MSRDC 版本: 1.2.2924 Direct3D 版本: 1.601.0 Microsoft Windows [Version 10.0.22526.1000]
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
1.Enable windows feature "Virtual Machine Platform" with command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
2.Restart my computer
Expected Behavior
Enabling 'Virtual Machine Platform' feature to use WSL2 without getting hangs/crashes.
Actual Behavior
If I enable windows feature "Virtual Machine Platform" and then restart,I will get random hangs.The screen may freeze,then I will see a bsod titled "DPC_WATCHDOG_VIOLATION" or "CLOCK_WATCHDOG_TIMEOUT" or "HYPERVISOR_ERROR".On some hangs,I can't get dump files,because Windows froze without any message.
I think that is possible related to GPU or WSL2/Virtual Machine Platform.
1.I just made a fresh install of Windows 11, cleaned up dust of cpu/gpu.
After doing the steps again of enabling WSL2, I got BSOD again.
2.Rollback to WSL1 and everythings run fine.
3.After some investigation I discovered that enabling windows feature Virtual Machine Platform is the root cause of BSOD's and hangs of System Interrupts.
4.Disabling Virtual Machine Platform make my computer pretty stable, playing some games with 100% of usage of hardware without any hang, smooth frames, downloading files at maximum internet speed, etc.
Hardware:
CPU: AMD Athlon(tm) X4 760K Quad Core Processor,3800 Mhz (stock clock)
RAM: 8GB 1600MHz with stock clock.
GPU:
AMD Radeon HD 7700 Series
driver: 27.20.14502.208 2020/12/2
DirectX : 12 (FL 11.1)
(stock clock)
Motherboard:MSI FM2-A55M-E33 (MS-7721)
Diagnostic Logs
run !analyze -v
CLOCK_WATCHDOG_TIMEOUT (101)
An expected clock interrupt was not received on a secondary processor in an
MP system within the allocated interval. This indicates that the specified
processor is hung and not processing interrupts.
Arguments:
Arg1: 0000000000000030, Clock interrupt time out interval in nominal clock ticks.
Arg2: 0000000000000000, 0.
Arg3: ffff8000423d7180, The PRCB address of the hung processor.
Arg4: 0000000000000002, The index of the hung processor.
Debugging Details:
KEY_VALUES_STRING: 1
Key : Analysis.CPU.mSec
Value: 2999
Key : Analysis.DebugAnalysisManager
Value: Create
Key : Analysis.Elapsed.mSec
Value: 5985
Key : Analysis.Init.CPU.mSec
Value: 577
Key : Analysis.Init.Elapsed.mSec
Value: 13959
Key : Analysis.Memory.CommitPeak.Mb
Value: 89
Key : WER.OS.Branch
Value: rs_prerelease
Key : WER.OS.Timestamp
Value: 2021-12-15T13:32:00Z
Key : WER.OS.Version
Value: 10.0.22526.1000
FILE_IN_CAB: MEMORY.DMP
DUMP_FILE_ATTRIBUTES: 0x800
BUGCHECK_CODE: 101
BUGCHECK_P1: 30
BUGCHECK_P2: 0
BUGCHECK_P3: ffff8000423d7180
BUGCHECK_P4: 2
FAULTING_PROCESSOR: 2
BLACKBOXBSD: 1 (!blackboxbsd)
BLACKBOXNTFS: 1 (!blackboxntfs)
BLACKBOXPNP: 1 (!blackboxpnp)
BLACKBOXWINLOGON: 1
PROCESS_NAME: Taskmgr.exe
TRAP_FRAME: ffff9b04595d4128 -- (.trap 0xffff9b04595d4128)
NOTE: The trap frame does not contain all registers.
Some register values may be zeroed or incorrect.
Unable to get program counter
rax=0000000000000000 rbx=0000000000000000 rcx=0000000000000000
rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000000
rip=ffff93088cf6f7ca rsp=ffffd60fe7d0c080 rbp=000000027e6fa8a7
r8=0000000000000000 r9=0000000000000000 r10=0000000000000000
r11=0000000000000000 r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up di pl nz na pe nc
4300:f7ca ?? ???
Resetting default scope
IP_IN_FREE_BLOCK: 0
STACK_TEXT:
fffff805111cf8a8 fffff8051278ab15 : 0000000000000101 0000000000000030 0000000000000000 ffff8000423d7180 : nt!KeBugCheckEx
fffff805111cf8b0 fffff8051278a2b7 : 0000000000000000 0000000000000000 fffff009c4b7404a 000000000000000c : nt!KeAccumulateTicks+0x535
fffff805111cf920 fffff8051278f16a : fffff80510ecb180 fffff8051300b6e0 0000000000049300 0000000000009eac : nt!KiUpdateRunTime+0x67
fffff805111cf980 fffff805127898a5 : 0000000000000000 fffff8051305f4b0 0000000000000000 fffff80513040298 : nt!KiUpdateTime+0x11ea
fffff805111cfe90 fffff80512785849 : fffff8051305f4b0 0000000000000000 0000000000000000 0000000000000000 : nt!KeClockInterruptNotify+0x355
fffff805111cff40 fffff8051268a8e7 : 000000027ab553d7 fffff8051310d450 fffff80510ecb180 0000000000000000 : nt!HalpTimerClockInterrupt+0x109
fffff805111cff70 fffff805128716ba : fffff8051310d450 0000000000000000 0000000000000001 ffffffffffffffff : nt!KiCallInterruptServiceRoutine+0x197
fffff805111cffb0 fffff80512871c87 : 0000000000000000 fffff8051310d210 0000000000000286 fffff8051279201c : nt!KiInterruptSubDispatchNoLockNoEtw+0xfa
ffff9b04595d3f40 fffff8051268dd65 : fffff80512e2ab20 ffff80004241d101 ffff9b04595d4128 ffff9b04595d4120 : nt!KiInterruptDispatchNoLockNoEtw+0x37
ffff9b04595d40d0 fffff80512b9438c : 0000000000000000 ffff9b04595d4b60 0000000000000001 0000000000000000 : nt!KeFlushProcessWriteBuffers+0x121
ffff9b04595d4120 fffff80512b8cfd7 : 0000000000000000 0000000000045000 0000000000000000 0000000000000000 : nt!ExpGetProcessInformation+0x17c
ffff9b04595d4730 fffff80512b8bc47 : 0000000000000000 0000002956afe070 0000000000000004 0000000000000000 : nt!ExpQuerySystemInformation+0xd77
ffff9b04595d4aa0 fffff80512882368 : 0000019062fa0000 ffffd60fd9cea8c0 ffff9b04595d4ae0 ffffd60f00000000 : nt!NtQuerySystemInformation+0x37
ffff9b04595d4ae0 00007fffcfc23004 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : nt!KiSystemServiceCopyEnd+0x28
0000002956afe068 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : 0x00007fff`cfc23004
SYMBOL_NAME: nt!KeAccumulateTicks+535
MODULE_NAME: nt
IMAGE_NAME: ntkrnlmp.exe
STACK_COMMAND: .cxr; .ecxr ; kb
BUCKET_ID_FUNC_OFFSET: 535
FAILURE_BUCKET_ID: CLOCK_WATCHDOG_TIMEOUT_IDLE_THREAD_INVALID_CONTEXT_nt!KeAccumulateTicks
OS_VERSION: 10.0.22526.1000
BUILDLAB_STR: rs_prerelease
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
FAILURE_ID_HASH: {b37ea922-6ea8-0080-e849-451291ca96f3}
Followup: MachineOwner
Activity
eternalcomet commentedon Mar 29, 2022
Addition:I can use wsl2 smoothly on win10 on the same PC,but I get hangs/bsod on win11.
DanPinGF commentedon Apr 22, 2022
I can assume you have faulty or incompatible hardware. In those cases running WSL is not recommended.
blami commentedon May 1, 2022
Do you run McAfee or TrendMicro antivirus? I saw exactly same issue with both.
fawazahmed0 commentedon Jul 16, 2022
Today I installed windows 11 and everything was stable, until I enabled wsl by
wsl --install, I started gettingWATCHDOG_TIMEOUTorHYPERVISOR_ERRORblue screens randomly.And docker desktop seems to give me blue screen instantly (i.e. within few minutes of starting docker)
WSL2 works fine for me on windows 10 though, not sure why its not working on win11
My Specification:
Windows 11 Pro 21H2 (Also tried older version, Win 11 pro Build 21996.1)
AMD FX-6300 CPU
RX 550 Graphics
GA-970A-DS3 rev 3.0 mobo
As a workaround to use win 11 with wsl2, I disable wsl by
bcdedit /set hypervisorlaunchtype offand reboot, and reenable it when needed bybcdedit /set hypervisorlaunchtype autoand reboot.Grifonice99 commentedon Sep 21, 2022
from what i have seen it is not a problem with wsl2 but also with hyper-v, always using windows 11 and amd processors, even in my case on win 10 hyper-v and wsl2 run without problems, as soon as i start them on windows 11 after a while it crashes without giving any information
Exekutori commentedon Oct 14, 2022
Lol similar specification:
AMD FX 8350 Black Edition
RX 570
GA 970A DS3P rev 2.0
Exekutori commentedon Oct 14, 2022
Someone has a fix?
fxmont commentedon Oct 19, 2022
I have the same problem when using WSL2 on Win11 (BSOD: 0x20001 - HYPERVISOR_ERROR / 0x1CA - HYPERVISOR_WATCHDOG_TIMEOUT) and also think the cause is AMD + Windows 11 + WSL2.
This problem occurred on both my devices with different configs, but with AMD processor and Windows 11 with WSL2 enabled:
AMD Ryzen 9 5900x (my new computer)
AMD FX-8300 (old).
I will be keeping an eye on this thread. So far, the only solution is to use Windows 10.
fawazahmed0 commentedon Nov 14, 2022
Hi everyone, I have filed BSOD bug at [email protected] and this was their reply:
If someone has supported cpu, please file this bug. They will request you for a kernel dump file to debug this issue.
mempler commentedon Dec 30, 2022
fxmont Hey, can you file a report of the bsod to [email protected] with your 5900x ?
Seems like its a supported CPU and maybe it has the same root cause as anyone else here.
MichaelLT38 commentedon Jan 15, 2023
I believe I'm having a similar issue starting yesterday morning. I have a very new computer, posted below, so if I'm able to get a dump file, I'll be sure to report it. The problem is getting one. It often just locks up. It does nothing. Just completely locked up. I did get a dump once but have since reinstalled the OS. I forgot to save it. It's crashed probably a dozen times but only got a dump once from it. It also said "DPC_WATCHDOG_VIOLATION" and something about an extended IRQL. It has crashed since the new install but no dump file so far. I will try to break my machine some more later but for now, I need to leave WSL2 and Virtual Machine Platform off to get some work done.
AMD Ryzen 5950X
MEG X570 Unify
AMD Radeon RX6950XT
asvishnyakov commentedon Mar 1, 2023
Guys, does any of you had a chance to solve issue? I have AMD FX-8150 + AMD Radeon RX 6400 on Gigabyte GA-990XA-UD3
fawazahmed0 commentedon Mar 1, 2023
Someone with windows 11 supported cpu needs to file a bug report to [email protected].
localhosted commentedon May 15, 2023
I have an Intel 4700k and I got a BSOD "VSL initiation failed"
goldfita commentedon Jun 23, 2023
I'm also getting a WSL2 BSOD on Win11. It mostly happens when I try to start WSL2 from Tasks at login. I'm also stopping and restarting the host compute service because otherwise I get the following error.
I managed to capture some info from the kernel crash log.
BugcheckCode 59
BugcheckParameter1 0xc0000005
BugcheckParameter2 0xfffff802362ca848
BugcheckParameter3 0xffffa48c01779e50
I have Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz 3.00 GHz (OptiPlex 7070). Don't know if that's supported.
fawazahmed0 commentedon Jun 23, 2023
Here is the link to windows 11 supported intel cpu
goldfita commentedon Jun 26, 2023
I submitted to [email protected]. They immediately closed the ticket and said I need to provide an explanation of how it can be exploited. Unfortunately, I don't know much about security. I can reproduce this problem reliably by stopping and restarting host compute service needed for WSL2 at logon using scheduled tasks. If someone else wants to try to reproduce, send me a private email at my username at gmail.com. I'll provide additional details.
fawazahmed0 commentedon Jun 26, 2023
goldfita It was wrong for them to close WSL related BSOD issue. It's clearly mentioned here, all BSOD issues should be directed to [email protected]
Here is what they have stated:
In my case, they closed the ticket stating that I don't have a supported cpu.
fawazahmed0 commentedon Dec 29, 2023
Recently I changed my GPU from RX550 to Nvidia RTX 2060 Super and still the problem persists.
Here is my current spec:
Windows 11
AMD FX-6300 CPU
Nvidia RTX 2060 Super
GA-970A-DS3 rev 3.0 mobo
DeathHound6 commentedon Jan 22, 2024
I get the same BSOD, with the stop code HYPERVISOR_ERROR
Windows 10 Home 22H2 build 19045.3930
AMD Ryzen 7 4800H CPU
NVIDIA GTX 1660 Ti GPU
fawazahmed0 commentedon Jan 22, 2024
Andrew Craig (@DeathHound6) , you have a supported cpu, please see this
vaanwd commentedon Oct 16, 2024
I have the same error BSOD HYPERVISOR_ERROR on:
OS: Win 11 23H2 22631.4317
CPU: AMD FX-8320
MB: Asus M5A97 R2.0
I have another PC with an "unsupported" CPU with Win 11 and never appeared the HYPERVISOR_ERROR error:
OS: Win 11 23H2 22631.4317
CPU: i7 4770k
MB: Gigabyte GA-Z87-HD3
asvishnyakov commentedon Oct 17, 2024
I just switched to Ubuntu as it works totally fine with our configurations and also has support of ROCm, which is critical as I worked with AI last time. Best decision.