Skip to content

Conversation

@YifanZhang-311
Copy link

Add a check for the this->cleanup_starting flag at the beginning of afr_notify() to skip notifications for volumes that are undergoing finalization (fini). This prevents afr_has_quorum from accessing already freed this->private.

Fix: #4644

@YifanZhang-311 YifanZhang-311 force-pushed the fix/afr-notify-null-ptr branch from aa19934 to ac2f754 Compare December 23, 2025 11:00
Add a check for the `this->cleanup_starting` flag at the beginning of
`afr_notify()` to skip notifications for volumes that are undergoing
finalization (`fini`). This prevents `afr_has_quorum` from accessing
already freed `this->private`.

Fixex: gluster#4644
@YifanZhang-311 YifanZhang-311 force-pushed the fix/afr-notify-null-ptr branch from ac2f754 to 3401c3a Compare December 24, 2025 07:24
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.

Null pointer dereference in afr_notify() due to access after free in afr_has_quorum

1 participant