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

Aperta
#53 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
go, kubernetes, linux

Direzione di ricerca

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.

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

Descrizione

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.
Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

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

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.