Fuzzing Crash: VortexError in file_corruption_v2

Aberta
#12,484 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
38/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
rust
Domínio
data-engineering

Direção de pesquisa

Start with vortex-scan/src/execution/chunk.rs, especially row_chunks and scan_chunks, then trace the caller in vortex-scan/src/execution/driver.rs. Reproduce with the file_corruption_v2 fuzz target and the supplied crash artifact at commit 4d35c7b2fc08bec79e98c8d6ae6f81defd104176; identify how corrupted input drives the oversized allocation. Done means the crash no longer occurs, malformed input is handled safely, and a focused regression test is added.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug fuzzer

Target crashed at malloc:

AddressSanitizer: requested allocation size 0x8400000000010 (0x8400000001010 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
Stack trace
#0 0xb0fd9f2c59ac in malloc asan_malloc_linux.cpp
#1 0xb0fda1e708b0 in alloc /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:158:9
#2 0xb0fda1e708b0 in alloc_impl_runtime /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:335:73
#3 0xb0fda1e708b0 in alloc_impl /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:457:9
#4 0xb0fda1e708b0 in allocate /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/alloc.rs:575:14
#5 0xb0fda1e708b0 in try_allocate_in<alloc::alloc::Global> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/raw_vec/mod.rs:485:47
#6 0xb0fda1e708b0 in with_capacity_in<alloc::alloc::Global> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/raw_vec/mod.rs:453:15
#7 0xb0fda1e708b0 in with_capacity_in<core::ops::range::Range<u64>, alloc::alloc::Global> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/raw_vec/mod.rs:187:20
#8 0xb0fda1e708b0 in with_capacity_in<core::ops::range::Range<u64>, alloc::alloc::Global> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:939:20
#9 0xb0fda1e708b0 in with_capacity<core::ops::range::Range<u64>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:535:9
#10 0xb0fda1e708b0 in from_iter<core::ops::range::Range<u64>, core::iter::adapters::map::Map<core::iter::adapters::step_by::StepBy<core::ops::range::Range<u64>>, vortex_scan::execution::chunk::row_chunks::{closure_env#0}>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/spec_from_iter_nested.rs:52:33
#11 0xb0fda1e708b0 in from_iter<core::ops::range::Range<u64>, core::iter::adapters::map::Map<core::iter::adapters::step_by::StepBy<core::ops::range::Range<u64>>, vortex_scan::execution::chunk::row_chunks::{closure_env#0}>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/spec_from_iter.rs:33:9
#12 0xb0fda1e708b0 in from_iter<core::ops::range::Range<u64>, core::iter::adapters::map::Map<core::iter::adapters::step_by::StepBy<core::ops::range::Range<u64>>, vortex_scan::execution::chunk::row_chunks::{closure_env#0}>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:4179:9
#13 0xb0fda1e708b0 in collect<core::iter::adapters::map::Map<core::iter::adapters::step_by::StepBy<core::ops::range::Range<u64>>, vortex_scan::execution::chunk::row_chunks::{closure_env#0}>, alloc::vec::Vec<core::ops::range::Range<u64>, alloc::alloc::Global>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:2100:9
#14 0xb0fda1e708b0 in row_chunks /home/runner/work/vortex/vortex/vortex-scan/src/execution/chunk.rs:59:10
#15 0xb0fda1e708b0 in scan_chunks /home/runner/work/vortex/vortex/vortex-scan/src/execution/chunk.rs:67:22
#16 0xb0fda1e708b0 in <vortex_scan::execution::chunk::ChunkPlanner>::new /home/runner/work/vortex/vortex/vortex-scan/src/execution/chunk.rs:101:22
#17 0xb0fda1e4c998 in vortex_scan::execution::driver::compose::{closure#0} /home/runner/work/vortex/vortex/vortex-scan/src/execution/driver.rs:217:22
#18 0xb0fda1f235f4 in vortex_scan::execution::driver::compose /home/runner/work/vortex/vortex/vortex-scan/src/execution/driver.rs:223:9
#19 0xb0fd9f342a24 in run_prepared<vortex_array::array::erased::ArrayRef, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> /home/runner/work/vortex/vortex/vortex-scan/src/execution/driver.rs:144:20
#20 0xb0fd9f342a24 in {closure#0}<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> /home/runner/work/vortex/vortex/vortex-scan/src/execution/driver.rs:120:43
#21 0xb0fd9f342a24 in call_once<core::result::Result<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>, vortex_error::VortexError>, vortex_scan::execution::driver::{impl#1}::run_mapped::{async_block#0}::{closure_env#0}<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
#22 0xb0fd9f342a24 in std::panicking::catch_unwind::do_call::<core::panic::unwind_safe::AssertUnwindSafe<<vortex_scan::execution::driver::ScanDriver>::run_mapped<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>::Ok>::{closure#0}::{closure#0}>, core::result::Result<core::pin::Pin<alloc::boxed::Box<dyn futures_core::stream::Stream<Item = core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send>>, vortex_error::VortexError>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:43
#23 0xb0fd9f383adc in __rust_try file_corruption_v2.f16f0f9eeb18e840-cgu.0
#24 0xb0fd9f3494dc in catch_unwind<core::result::Result<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>, vortex_error::VortexError>, core::panic::unwind_safe::AssertUnwindSafe<vortex_scan::execution::driver::{impl#1}::run_mapped::{async_block#0}::{closure_env#0}<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:541:19
#25 0xb0fd9f3494dc in catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<vortex_scan::execution::driver::{impl#1}::run_mapped::{async_block#0}::{closure_env#0}<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>>, core::result::Result<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>, vortex_error::VortexError>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
#26 0xb0fd9f3494dc in {closure#0}<vortex_scan::execution::driver::{impl#1}::run_mapped::{async_block#0}::{closure_env#0}<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, fn(vortex_array::array::erased::ArrayRef) -> core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>>, core::result::Result<core::pin::Pin<alloc::boxed::Box<(dyn futures_core::stream::Stream<Item=core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send), alloc::alloc::Global>>, vortex_error::VortexError>> /home/runner/work/vortex/vortex/vortex-io/src/runtime/handle.rs:168:30
#27 0xb0fd9f3494dc in <<vortex_io::runtime::handle::Handle>::spawn_cpu<<vortex_scan::execution::driver::ScanDriver>::run_mapped<vortex_array::array::erased::ArrayRef, vortex_layout::scan::v2::ScanBuilder, core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>::Ok>::{closure#0}::{closure#0}, core::result::Result<core::pin::Pin<alloc::boxed::Box<dyn futures_core::stream::Stream<Item = core::result::Result<vortex_array::array::erased::ArrayRef, vortex_error::VortexError>> + core::marker::Send>>, vortex_error::VortexError>>::{closure#0} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
#28 0xb0fda21bd7f0 in call_once<(), (dyn core::ops::function::FnOnce<(), Output=()> + core::marker::Send), alloc::alloc::Global> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2466:9
#29 0xb0fda21bd7f0 in {async_block#0} /home/runner/work/vortex/vortex/vortex-io/src/runtime/smol.rs:49:70
#30 0xb0fda21bd7f0 in <async_executor::AsyncCallOnDrop<<vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}, <async_executor::Executor>::spawn_inner<(), <vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}>::{closure#0}> as core::future::future::Future>::poll /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-executor-1.14.1/src/lib.rs:1200:31
#31 0xb0fda20fc684 in {closure#1}<async_executor::AsyncCallOnDrop<vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}, async_executor::{impl#5}::spawn_inner::{closure_env#0}<(), vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}>>, (), async_executor::{impl#5}::schedule::{closure_env#0}, ()> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/raw.rs:550:21
#32 0xb0fda20fc684 in call_once<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}, async_executor::{impl#5}::spawn_inner::{closure_env#0}<(), vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}>>, (), async_executor::{impl#5}::schedule::{closure_env#0}, ()>, ()> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
#33 0xb0fda20fc684 in call_once<core::task::poll::Poll<()>, async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}, async_executor::{impl#5}::spawn_inner::{closure_env#0}<(), vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}>>, (), async_executor::{impl#5}::schedule::{closure_env#0}, ()>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9
#34 0xb0fda20fc684 in std::panicking::catch_unwind::do_call::<core::panic::unwind_safe::AssertUnwindSafe<<async_task::raw::RawTask<async_executor::AsyncCallOnDrop<<vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}, <async_executor::Executor>::spawn_inner<(), <vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}>::{closure#0}>, (), <async_executor::Executor>::schedule::{closure#0}, ()>>::run::{closure#1}>, core::task::poll::Poll<()>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:43
#35 0xb0fda21c42b8 in __rust_try vortex_io.ddf91c82ad9038d6-cgu.0
#36 0xb0fda2157c88 in catch_unwind<core::task::poll::Poll<()>, core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}, async_executor::{impl#5}::spawn_inner::{closure_env#0}<(), vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}>>, (), async_executor::{impl#5}::schedule::{closure_env#0}, ()>>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:541:19
#37 0xb0fda2157c88 in catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::{impl#3}::run::{closure_env#1}<async_executor::AsyncCallOnDrop<vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}, async_executor::{impl#5}::spawn_inner::{closure_env#0}<(), vortex_io::runtime::smol::{impl#3}::spawn_cpu::{async_block_env#0}>>, (), async_executor::{impl#5}::schedule::{closure_env#0}, ()>>, core::task::poll::Poll<()>> /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
#38 0xb0fda2157c88 in <async_task::raw::RawTask<async_executor::AsyncCallOnDrop<<vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}, <async_executor::Executor>::spawn_inner<(), <vortex_io::runtime::smol::SmolExecutor as vortex_io::runtime::Executor>::spawn_cpu::{closure#0}>::{closure#0}>, (), <async_executor::Executor>::schedule::{closure#0}, ()>>::run /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/raw.rs:549:23
#39 0xb0fd9f34f084 in run<()> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-task-4.7.1/src/runnable.rs:781:18
... (27 more frames truncated)

To reproduce, download the crash artifact to ~/Downloads and run these
commands from the repository root:

unzip ~/Downloads/file_corruption_v2-crash-artifacts.zip -d fuzz-artifacts
RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none \
  file_corruption_v2 \
  fuzz-artifacts/file_corruption_v2/crash-1cadc2fb08aa422fe06c8f524ed8af7fa0e6e9f0 \
  -- -rss_limit_mb=0

Auto-created by fuzzing workflow

Linguagem predominante
Rust
Estrelas
3.2k
Forks
239
Merge médio
1d 4h
PRs com merge (30d)
684

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de vortex-data/vortex

Todas as issues de vortex-data/vortex

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.