Skip to content

umbrella: rgw/amqp: check the iterator before dereferencing it - #71747

Merged
batrick merged 1 commit into
ceph:umbrellafrom
tchaikov:wip-80473-umbrella
Nov 14, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
tchaikov:wip-80473-umbrella

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:43
@tchaikov tchaikov added this to the umbrella 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 Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella.

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

@tchaikov

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@tchaikov

Copy link
Copy Markdown
Contributor Author

@batrick could you help review / merge this change?

@batrick batrick modified the milestones: umbrella, v21.2.1 Nov 14, 2026
@batrick
batrick merged commit 0aa6a27 into ceph:umbrella Nov 14, 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.

5 participants