Retry or refuse an unguarded grant when the GPU guard's attach fails

Aperta
#50 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
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, linux
Ambito
backend, security

Direzione di ricerca

Start with guardFibers in pkg/runtime/host/host_linux.go and trace how grant cgroups are created and how Clone handles a warm grant. Compare the two proposed options, then check the existing GPU guard tests and add coverage for a failed attach and a driver loading later. Done means an unguarded grant is retried or refused according to the chosen behavior.

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

Descrizione

enhancement

The GPU PoC (#4, milestone M4b) attaches a GPU guard, a cgroup device program, to every grant's <grant>/fibers/ parent. When the attach fails on a host whose /proc/devices lists no NVIDIA major, fiberd only logs it and runs the grant unguarded (guardFibers in pkg/runtime/host/host_linux.go).

Two gaps follow.

  • The attach is tried again only when the grant's cgroup is made. Clones of a grant that is already warm never retry it, so if the driver loads later, those fibers stay unguarded until the grant is warmed again.
  • The skip fires only when the attach itself fails, such as a fiberd without CAP_BPF or a kernel without cgroup device programs. It does not fire for a host with a GPU whose driver loads after fiberd starts.

Options.

  • Make a failed attach refuse the grant unless a flag says the home has no GPU.
  • Retry the attach at each Clone of an unguarded grant, and refuse once a driver is present.
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.