List, ListView and VarBin arrays do not check offsets in device memory
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
- 25/100
Direzione di ricerca
Start with the offsets.is_host() guards in list/array.rs, listview/array.rs and varbin/array.rs, and the comment in list/array.rs about device consumers. Read #11222 to see how the host-side check reads offset values. Done means offsets in device memory are validated before any value read, with tests covering unsorted and out-of-range device offsets. Deciding how to read device memory for the check is the open design question.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #11222.
ListArray, ListViewArray and VarBinArray check their offsets when they are built: the offsets must be sorted, non-negative and within the length of the elements or bytes. #11222 makes ListArray and VarBinArray read the offset values for this check instead of the statistics of the offsets, because statistics can come from an untrusted file. ListViewArray already read the values. All three run the check only when the offsets are in host memory (the offsets.is_host() guards in list/array.rs, listview/array.rs and varbin/array.rs). Offsets in device memory are not checked.
So an array whose offsets are in device memory, for example after vortex-cuda decodes a file on the GPU, can be built with offsets that are not sorted or that point past the end of its elements or bytes. A kernel or an Arrow device export that trusts those offsets can then read out of bounds on the device. A comment in list/array.rs states the gap ("Device consumers must not assume device offsets were checked"), but nothing enforces it, and I have not checked which vortex-cuda paths build these arrays from file data.
Expected: an array with offsets in device memory has its offsets checked before any consumer reads values through them, as host arrays do.
🤖 Generated with Claude Code
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 239
- Merge medio
- 1g 4h
- PR unite (30g)
- 684
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vortex-data/vortex
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vortex-data/vortex#12633 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
vortex-data/vortex#12628 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
vortex-data/vortex#12491 ·
I maintainer di solito rispondono entro 1 giorno
-
Fallible constructor for nested_case_whenForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vortex-data/vortex#11425 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
vortex-data/vortex#12635 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vortex-data/vortex
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
marklauter/tsong#110 ·
-
docs enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
area: engine bug needs milestone
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Mudcrab-Team/mudcrab#1197 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno