gdb: snapshot restore breaks breakpoints
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
Línea de trabajo
Start with snapshot() and restore() in the host VM code, then trace how gdb breakpoint state is stored and reapplied. Compare the MSHV and WHP reset_vcpu paths with KVM's kvm_guest_debug handling, using the referenced x86_64.rs files and build.rs as entry points. Done means hardware and software breakpoints behave correctly across snapshot and restore, including when a listed breakpoint is removed afterward.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- Hardware breakpoints are lost on MSHV and WHP. Those backends store gdb hardware breakpoints in the guest's DR0-DR7 (mshv/x86_64.rs#L853, whp/x86_64.rs#L1181).
reset_vcpuzeroes those registers (x86_64.rs#L327). gdb still lists the breakpoints. KVM keeps them inkvm_guest_debug, so they survive there. - Software breakpoints are written into snapshot memory. gdb builds make snapshot memory writable for this (build.rs#L162).
snapshot()captures the0xCCbytes. After restore nothing tracks them.restore()can remove a breakpoint thatsw_breakpointsstill lists. Removing it later writes the saved byte over whatever the restored snapshot holds at that address.
Possible fix: keep breakpoint state on the host and apply it again after restore(). Take software breakpoints out before snapshot().
- Lenguaje dominante
- Rust
- Estrellas
- 4.8k
- Forks
- 223
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 65
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hyperlight-dev/hyperlight
-
A-api C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hyperlight-dev/hyperlight#2135 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
hyperlight-dev/hyperlight#2136 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2132 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
hyperlight-dev/hyperlight#2133 ·
Los mantenedores suelen responder en 1 día
-
A-ci A-fuzzing C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2134 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hyperlight-dev/hyperlight
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
roc-lang/basic-webserver#277 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
samkerrcode/opengent#113 ·
Los mantenedores suelen responder en 1 día
-
app bug session
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día