BSOD (0x139) on Intel RST VMD (iaStorVD.sys) during storage sensor probing — upstream fix submitted

Aperta
#4,281 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

The crash path runs through Blacktempel/DiskInfoToolkit: start in StorageProbeDispatcher.TryIntelRaidControllerPaths and ProbeNvmeLikeDevice, where the fallback to NvmeProbe.TryPopulateStandardNvmeData issues PropertyID 50 after IntelRaidMiniportProbe fails. The retry side is LHMBackendProvider.TryGetRetryTaskIfRequired in FanControl. The fix is already submitted as DiskInfoToolkit PR #23, so check that thread before starting. Done means the fallback no longer issues the protocol-specific query on failed RST probes, with regression tests passing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug upstream
Environment
  • FanControl: Latest release V286 (286.0.0.0, bundling LibreHardwareMonitorLib 0.9.6+70479eda and DiskInfoToolkit 2.2.2+073a3131) is still affected; minidumps captured locally were from V284 (284.0.0.0, FanControl.exe / FanControl.Service.exe, bundling DiskInfoToolkit 2.2.1+87ffc498).
  • Controller / Storage: Intel RST VMD (iaStorVD.sys 20.0.0.1038), NVMe CT1000T500SSD8
  • OS: Windows 11 24H2 (storport.sys 10.0.26100.9444)
Summary / Root Cause

Both FanControl.exe and FanControl.Service.exe triggered bugcheck 0x139 (KERNEL_SECURITY_CHECK_FAILURE, Arg1 = 0x1d INVALID_BALANCED_TREE) in minidumps:
storport!RaUnitStorageQueryDeviceProtocolSpecificPropertyIoctl+0x637 -> nt!IofCompleteRequest -> nt!IopProcessBufferedIoCompletion -> nt!ExFreePoolWithTag (freeing the 0x1030-byte IOCTL_STORAGE_QUERY_PROPERTY buffer for StorageDeviceProtocolSpecificProperty, PropertyID = 50).

LibreHardwareMonitorLib delegates storage probing to Blacktempel/DiskInfoToolkit (2.2.2+073a3131 in V286). Even after Blacktempel/DiskInfoToolkit#8, when IntelRaidMiniportProbe fails (for example on drives/volumes rejecting miniport pass-through or experiencing device resets/timeouts), StorageProbeDispatcher.TryIntelRaidControllerPaths and ProbeNvmeLikeDevice still fall back to NvmeProbe.TryPopulateStandardNvmeData, issuing PropertyID = 50 ('RaSr' "PROTOCOL" SRB sent synchronously down to iaStorVD.sys).

Upstream PR submitted against DiskInfoToolkit 2.2.2 (073a313) with fix and regression tests:

Workaround for Affected Users

Disable storage sensors in Configurations\userConfig.json ("DisableStorageSensors": true) until LibreHardwareMonitorLib pulls a DiskInfoToolkit release containing the fix.

Secondary Observation in FanControl

When unrelated hardware sensors fail validation (e.g., LPC sensors while PawnIO is disabled), LHMBackendProvider.TryGetRetryTaskIfRequired triggers TryRefresh(6, 5s) which closes and re-opens Computer, discarding cached storage probe state and re-probing all storage controllers repeatedly during retries. Avoiding full storage re-probing on unrelated sensor validation retries would further reduce risk on Intel RST / unstable controllers.

Lingua principale
Nessun dato sulla lingua
Stelle
21.1k
Fork
619
Merge medio
12g 8h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Rem0o/FanControl.Releases

Tutte le issue di Rem0o/FanControl.Releases

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.