Windows module list walks: errors drop the whole list silently, no iteration cap

Đang mở
#431 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend, security

Hướng nghiên cứu

Start with the listed loops in src/os/windows/structs.rs (2866–2876) and src/os/windows/kernel.rs (297–349), then check how src/os/windows/kernel.rs (437) handles their result. Trace how list entry errors and cycles affect the returned modules, and consider the suggested per-entry handling and iteration cap. Done means errors no longer silently discard the full list, cyclic guest-controlled lists terminate, and valid entries are still returned.

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

Mô tả

Where

  • src/os/windows/structs.rs 2866-2876 with src/os/windows/kernel.rs:437 (unwrap_or_default())
  • src/os/windows/kernel.rs 297-349 (PsLoadedModuleList)

Problem
? inside the list loops; the caller swallows the error. No iteration limit on guest-controlled lists.

Impact
One paged-out entry or non-UTF-16 name yields zero user modules with no log. A cyclic Flink that misses the head grows a Vec forever.

Suggested fix
Warn and skip/break per entry, return the partial list, cap iterations.

Status
Reported by static code review at 79972db; not yet re-verified line by line. Found by reading the code; not reproduced under SIMICS.

Ngôn ngữ chính
Rust
Star
335
Fork
26
Merge trung bình
1 ngày 50 phút
Pull request đã merge (30 ngày)
12

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 intel/tsffs

Tất cả issue của intel/tsffs

Issue tương tự

Thêm issue về Rust

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.