Windows crashes when trying to access network share with offline sync from WSL
Windows Version
Microsoft Windows 11 [Version 10.0.22631.5189]
WSL Version
2.4.13.0
Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [ ] WSL 1
Kernel Version
5.15.167.4-1
Distro Version
Debian 12
Other Software
No response
Repro Steps
- Map a network folder to a drive, in this case S:
- Right click on a folder inside that drive and make it available offline
- While online, open WSL terminal and try to access the offline synchronized folder, e.g. ls -la /mnt/s/synced_folder
Trying to access the offline synced folder in WSL while offline is not possible.
Expected Behavior
The folder contents should be accessible
Actual Behavior
While online, Windows crashes with bluescreen Stopcode: RDR_FILE_SYSTEM Error source: Profilesync.sys
While offline, ls is unable to read folder /mnt/s/
$ ls -la /mnt/s
ls: reading directory '/mnt/s': Invalid argument
total 0
Diagnostic Logs
No response
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1
The script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here
Once completed please upload the output files to this Github issue.
Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.
This is the log ouput after running ls -la /mnt/s/ while offline.
WslLogs-2025-05-26_10-40-59.zip
It is not possible to get the logs while reproducing the error online, since windows crashes.
Diagnostic information
Appx package is not installed
Thank you for reporting this @Morpheus0x. Can you follow 10) Reporting a Windows crash (BSOD) and share the crash dump with us ?
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.
Thank you!