Skip to content

Revert "[GPU] GDeflate compression codec on the CPU" - #128947

Merged
Algunenano merged 1 commit into
masterfrom
revert-127422-gdeflate-cpu-codec
Nov 3, 2026
Merged

Algunenano merged 1 commit into
masterfrom
revert-127422-gdeflate-cpu-codec

Conversation

@Algunenano

@Algunenano Algunenano commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Reverts #127422

The feature is broken and has security issues


Workflow [PR]
Sync PR [sync-upstream/pr/128947]

Version info

  • Merged into: 26.11.1.1226-master (included in 26.11 and later)

@mintlify

mintlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
ClickHouse-docs 🟢 Ready View Preview Nov 3, 2026, 12:01 PM

@clickhouse-gh

clickhouse-gh Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fe51682]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog submodule changed At least one submodule changed in this PR. labels Nov 3, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... label Nov 3, 2026
@Algunenano
Algunenano added this pull request to the merge queue Nov 3, 2026
@alexey-milovidov alexey-milovidov self-assigned this Nov 3, 2026
Merged via the queue into master with commit f07035a Nov 3, 2026
186 checks passed
@Algunenano
Algunenano deleted the revert-127422-gdeflate-cpu-codec branch November 3, 2026 16:36
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 3, 2026
scanhex12 added a commit that referenced this pull request Nov 3, 2026
… and writes

`contrib/gdeflate` now points at the branch `gdeflate` of `ClickHouse/libdeflate`, with
ClickHouse/libdeflate#9 on top of `NVIDIA/libdeflate@8ba9502`:

- The decoder refilled a stream with 4 bytes without comparing its position with the end of the
  page, so a page shorter than 128 bytes or a corrupt one was read past its end
  (`multiple_decompress_fuzzer`, heap-buffer-overflow in `deflate_decompress_default`).
- `libdeflate_gdeflate_compress_bound` left out the two packets each of the 32 streams may hold at
  its end, and the encoder did not check its packet writes against the buffer: a valid `INSERT`
  failed with `CANNOT_COMPRESS` (`05443_gdeflate_codec` with a random `index_granularity`), and a
  page past the bound was written out of bounds.

The bytes of every page that compressed before are unchanged. The library is no longer built with
`deflate_compress.c` on its own: it was there only for `libdeflate_deflate_compress_bound`.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=b08434c5500c10180f0c43fedb0f5e860b20f46f&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_tsan%2C%20parallel%29

Related: #128625
Related: #127910
Related: #128947

This branch was successfully deployed

1 active deployment
staging - docs — fe51682b Deployed Nov 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants