Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

VIRTIO_IOC_EXPORT_FD_REQ behavior when exporting the same FD multiple times

Aperta
#624 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Start with the VIRTIO_IOC_EXPORT_FD_REQ handler at src/devices/src/virtio/fs/linux/passthrough.rs:2225. Read how the export table stores and replaces entries, then determine the intended behavior when the same handle is exported repeatedly. Done means the behavior is established and covered by a relevant test; the issue does not name a test file.

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

Descrizione

https://github.com/containers/libkrun/blob/44312fdfa105256f1988ea8cdfbde8ed1532c944/src/devices/src/virtio/fs/linux/passthrough.rs#L2225

I just noticed that the VIRTIO_IOC_EXPORT_FD_REQ handler always writes new FDs to the export table without checking whether an entry already existed. So the previous entry is dropped there and replaced with a new one if the same handle is exported twice. This is probably fine?? but it probably would be better to reuse the fd?

Lingua principale
Rust
Stelle
2.8k
Fork
279
Merge medio
5g 12h
PR unite (30g)
27

Preparare l'ambiente

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 libkrun/libkrun

Tutte le issue di libkrun/libkrun

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.