[QDP] Fix async amplitude pipeline out-of-bounds write

Open
#743 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

  • #773 by @Rutuja123-dos — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
43/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
performance

Research direction

Locate launch_amplitude_encode() and trace its arguments through the async amplitude pipeline, especially when processing data in chunks. Reproduce the large-data path and inspect later chunks for writes beyond their bounds. Done means the kernel receives the actual chunk length and chunked processing no longer produces out-of-bounds writes.

Written by the indexing model from the issue text.

Description

bug enhancement qdp
Summary

When processing large data in chunks, launch_amplitude_encode() is called with state_len (full state vector size) instead of chunk_len (actual chunk size). This causes the kernel to write state_len elements starting from the chunk offset, which exceeds bounds for chunks after the first one.

Dominant language
Rust
Stars
2.3k
Forks
1k
Avg merge
2d 20h
Merged PRs (30d)
7

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/mahout

All issues in apache/mahout

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.