Bounds-check dictionary indexes in fused CUDA dispatch

Đang mở
#11,956 1 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
25/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ệ
cpp, rust
Lĩnh vực
backend

Hướng nghiên cứu

The unchecked gather is in vortex-cuda/kernels/src/dynamic_dispatch.cu around lines 169-175, and the constructor that accepts unvalidated codes is in vortex-array/src/arrays/dict/array.rs around lines 314-328. Read how the standalone-kernel fix referenced in #10915 handles bounds, then trace the fused DICT path. Done means the fused path rejects an out-of-range code, such as -1 against a two-entry dictionary, before any dictionary read, with a GPU test confirming it.

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

Mô tả

bug

The fused CUDA DICT operation indexes shared memory without checking codes against the dictionary length. The standalone-kernel fix in #10915 does not cover this call site.

A non-nullable i64 code array [-1] with dictionary values [11i64, 22] passes DictArray::try_new and the fused-plan width checks. The fused gather casts -1 to u32::MAX and indexes the two-entry dictionary, producing an out-of-bounds device read. The fused path should reject an invalid code before accessing dictionary storage.

This defect was already present in release 0.93.0: constructor, unchecked gather. Related: #10914 and #10915.

The counterexample is derived from source review. It has not been executed on a GPU, and the hardware outcome has not been measured.

Written by Devin

Ngôn ngữ chính
Rust
Star
3.2k
Fork
239
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
684

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

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 vortex-data/vortex

Tất cả issue của vortex-data/vortex

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.