Skip to content

PS-11143-[9.7] sql/auth: quiesce caching_sha2_password before teardown#6029

Open
lukin-oleksiy wants to merge 1 commit into
percona:9.7from
lukin-oleksiy:PS-11143-9.7-fix-sha2-sigsegv
Open

PS-11143-[9.7] sql/auth: quiesce caching_sha2_password before teardown#6029
lukin-oleksiy wants to merge 1 commit into
percona:9.7from
lukin-oleksiy:PS-11143-9.7-fix-sha2-sigsegv

Conversation

@lukin-oleksiy

Copy link
Copy Markdown
Contributor

https://perconadev.atlassian.net/browse/PS-11143

Guard caching_sha2_password entry points during plugin shutdown so auth/cache accesses drain before the singleton is destroyed.

This avoids use-after-free on the rwlock-backed password cache in in-flight authentication paths, including threadpool worker threads.

Also simplify the lifecycle bookkeeping by keeping it in one small file-scope state object and using the existing scope guard helper for cleanup.

https://perconadev.atlassian.net/browse/PS-11143

Guard caching_sha2_password entry points during plugin shutdown so
auth/cache accesses drain before the singleton is destroyed.

This avoids use-after-free on the rwlock-backed password cache in
in-flight authentication paths, including threadpool worker threads.

Also simplify the lifecycle bookkeeping by keeping it in one small
file-scope state object and using the existing scope guard helper for
cleanup.
@lukin-oleksiy lukin-oleksiy requested a review from jankowsk June 23, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant