Skip to content

Fix potential heap-use-after-free in projections analysis after #72102#89139

Merged
KochetovNicolai merged 1 commit intomasterfrom
fix-potential-use-after-free-in-projection-analysis
Nov 4, 2025
Merged

Fix potential heap-use-after-free in projections analysis after #72102#89139
KochetovNicolai merged 1 commit intomasterfrom
fix-potential-use-after-free-in-projection-analysis

Conversation

@KochetovNicolai
Copy link
Copy Markdown
Member

@KochetovNicolai KochetovNicolai commented Oct 29, 2025

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Details

The code in the projection analysis used a reference to PK without holding the ownership. This became possible after #72102, when unloading of PK became possible.

Reference:

Example of msan report: https://pastila.clickhouse.com/?001f9e74/a89113af1320e10120962200f4b3cc95#frgk+agY1FZ9YRQTl9ZIsw==

@KochetovNicolai KochetovNicolai added pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-cloud labels Oct 29, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Oct 29, 2025

Workflow [PR], commit [f97cad2]

Summary:

@clickhouse-gh clickhouse-gh bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 29, 2025
@nikitamikhaylov nikitamikhaylov self-assigned this Oct 29, 2025
Copy link
Copy Markdown
Member

@nikitamikhaylov nikitamikhaylov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes appear right and logical, but I believe the test failures are related.

@KochetovNicolai KochetovNicolai added this pull request to the merge queue Nov 4, 2025
Merged via the queue into master with commit ff45a0a Nov 4, 2025
241 of 244 checks passed
@KochetovNicolai KochetovNicolai deleted the fix-potential-use-after-free-in-projection-analysis branch November 4, 2025 17:30
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 4, 2025
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Nov 4, 2025
robot-ch-test-poll1 added a commit that referenced this pull request Nov 4, 2025
Cherry pick #89139 to 25.3: Fix potential heap-use-after-free in projections analysis after #72102
robot-clickhouse added a commit that referenced this pull request Nov 4, 2025
robot-ch-test-poll1 added a commit that referenced this pull request Nov 4, 2025
Cherry pick #89139 to 25.8: Fix potential heap-use-after-free in projections analysis after #72102
robot-clickhouse added a commit that referenced this pull request Nov 4, 2025
robot-ch-test-poll1 added a commit that referenced this pull request Nov 4, 2025
Cherry pick #89139 to 25.9: Fix potential heap-use-after-free in projections analysis after #72102
robot-clickhouse added a commit that referenced this pull request Nov 4, 2025
robot-ch-test-poll1 added a commit that referenced this pull request Nov 4, 2025
Cherry pick #89139 to 25.10: Fix potential heap-use-after-free in projections analysis after #72102
robot-clickhouse added a commit that referenced this pull request Nov 4, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 4, 2025
clickhouse-gh bot added a commit that referenced this pull request Nov 4, 2025
Backport #89139 to 25.9: Fix potential heap-use-after-free in projections analysis after #72102
nikitamikhaylov added a commit that referenced this pull request Nov 4, 2025
Backport #89139 to 25.8: Fix potential heap-use-after-free in projections analysis after #72102
nikitamikhaylov added a commit that referenced this pull request Nov 4, 2025
Backport #89139 to 25.10: Fix potential heap-use-after-free in projections analysis after #72102
nikitamikhaylov added a commit that referenced this pull request Nov 5, 2025
Backport #89139 to 25.3: Fix potential heap-use-after-free in projections analysis after #72102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants