Keep the GPU guard current when NVIDIA majors appear after it attaches

Abierto
#53 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes, linux

Línea de trabajo

Start with pkg/sys/cgroup/devprog_linux.go and trace how NVIDIA majors are read from /proc/devices and used when the device program attaches. Compare the two options in the issue: a default-deny allow list or refreshing majors on each Clone. Done means the attached guard continues to deny newly appearing nvidia-uvm and nvidia-caps devices; the issue names no tests.

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

Descripción

enhancement

The GPU PoC (#4, milestone M4b) guards every grant's <grant>/fibers/ cgroup with a device program that denies the NVIDIA character majors (pkg/sys/cgroup/devprog_linux.go). It reads those majors from /proc/devices once, when it attaches, and falls back to 195 when the driver is not loaded.

So the guard goes stale when the majors change after the attach.

  • A driver loaded after fiberd starts (udev, nvidia-persistenced, the first nvidia-smi) gets dynamic majors for nvidia-uvm and nvidia-caps that the program does not deny.
  • Fibers keep the stale program until their grant's cgroup is made again.

Compute stays blocked, since nvidiactl and nvidia0..N are on 195. But the nvidia-uvm and nvidia-caps (MIG) nodes and their ioctls are reachable from a fiber that can make or see them.

Options.

  • Make the program default-deny with an allow list, as runc's device list does, so no major needs tracking.
  • Read the majors again at each Clone and attach one more program when the set grows.
Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.