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

Đang mở
#50 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, linux
Lĩnh vực
backend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.