Size write-back ignores `POINTER_WIDTH_OVERRIDE` (i386 may write 8 bytes into a 4-byte size_t)

Abierto
#421 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend, security

Línea de trabajo

Read the cited read paths and write_start in src/arch/mod.rs, especially the lines linked in the issue. Compare how they choose the size width and check the existing x86 override; the issue suggests sharing the width helper. Done means write-back uses the override, and the i386 case no longer writes beyond the 4-byte size_t; the issue notes this has not yet been reproduced under SIMICS.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Where

Problem
Read paths honour the override (x86 sets Some(4)), but write_start always uses get_logical_address_width()/8. The write is also always little-endian.

Impact
If the i386 CPU model reports a 64-bit logical width, each iteration zeroes the 4 bytes after the harness's size variable.

Suggested fix
Share one size-width helper between read and write.

Status
Reported by static code review at 79972db; not yet re-verified line by line. Found by reading the code; not reproduced under SIMICS.

Lenguaje dominante
Rust
Estrellas
335
Forks
26
Merge medio
1 d 50 min
PR fusionados (30 d)
12

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de intel/tsffs

Todos los issues de intel/tsffs

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.