Skip to content

tentacle: rgw/amqp: check the iterator before dereferencing it - #71748

Merged
batrick merged 1 commit into
ceph:tentaclefrom
tchaikov:wip-80472-tentacle
Sep 30, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
tchaikov:wip-80472-tentacle

Conversation

@tchaikov

Copy link
Copy Markdown
Contributor

A broker can confirm several messages at once by setting the "multiple"
flag, which acks every delivery tag up to and including the one in the
frame. The loop that invokes those callbacks tests it->tag before
testing whether it still points at an element:

  while (it->tag <= tag && it != conn->callbacks.end()) {

erase() returns end() once the last callback is gone, so the next
iteration reads past the end of the list. Swap the two conditions.

Reaching it takes an ack that covers every callback still pending on
the connection. Any callback left over keeps the loop inside the list,
which is why this has not caused trouble so far.

Fixes: https://tracker.ceph.com/issues/80464
Signed-off-by: Kefu Chai <[email protected]>
(cherry picked from commit 88d2208)
@tchaikov
tchaikov requested a review from a team as a code owner September 13, 2026 01:44
@tchaikov tchaikov added this to the tentacle milestone Sep 13, 2026
@tchaikov tchaikov added the rgw label Sep 13, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Sep 13, 2026
@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to tentacle integration testing by anuchaithra started 2026-09-22-04:07.

PR testing completed and approved by @ivancich , more details in https://tracker.ceph.com/issues/80711.
@tchaikov , if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 30, 2026
@batrick
batrick merged commit 32c4cee into ceph:tentacle Sep 30, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants