Windows: CR3-write refresh never fires

Aperta
#426 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
security, testing

Direzione di ricerca

Read src/os/windows/mod.rs around lines 256–283 and src/lib.rs around line 628 to trace the CR3 cache check, insertion, and callback error handling. The issue reports the condition can never pass and notes that collection reparses PDBs; first verify those paths and inspect nearby tests or SIMICS guidance. Done means refreshes occur when a processor's CR3 changes and collection errors do not abort the callback.

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

Descrizione

Where

Problem
The guard requires cr3_cache.get(..).is_some_and(|v| *v != value), but cr3_cache is only inserted inside that block; no other writer exists.

Impact
The symbol tree stays frozen at the process current at fuzz start; code in other processes or later-loaded modules gets no symbolic coverage.

Suggested fix
Use self.cr3_cache.get(&processor_nr) != Some(&value), insert first, and log-and-continue on collect() errors (the callback is .expect()ed in lib.rs, so an error would abort SIMICS). collect() is also expensive (re-parses PDBs).

Status
Confirmed by reading the code at 79972db. Found by reading the code; not reproduced under SIMICS.

Lingua principale
Rust
Stelle
335
Fork
26
Merge medio
1g 50m
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 intel/tsffs

Tutte le issue di intel/tsffs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.