Skip to content

rgw/lua: RGWDeleteMultiObj::run_lua_script() uses correct yield context - #72317

Merged
cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-81309
Oct 5, 2026
Merged

cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-81309

Conversation

@cbodley

@cbodley cbodley commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

run_lua_script() was relying on s->yield for the coroutine handle, but was called from RGWDeleteMultiObj::handle_individual_object() in a different coroutine context. suspending an async operation on the wrong coroutine is likely to cause crashes as seen in teuthology

Fixes: https://tracker.ceph.com/issues/81309

credit to @mheler for spotting the issue

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@cbodley
cbodley requested a review from a team as a code owner October 1, 2026 22:47
@github-actions github-actions Bot added the rgw label Oct 1, 2026
@cbodley cbodley mentioned this pull request Oct 1, 2026
4 of 14 tasks
@cbodley
cbodley requested a review from yuvalif October 1, 2026 22:50
@cbodley cbodley added the bug-fix label Oct 1, 2026
@mheler

mheler commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

LGTM

Comment thread src/rgw/rgw_op.cc Resolved
run_lua_script() was relying on s->yield for the coroutine handle, but
was called from RGWDeleteMultiObj::handle_individual_object() in a
different coroutine context. suspending an async operation on the wrong
coroutine is likely to cause crashes as seen in teuthology

Fixes: https://tracker.ceph.com/issues/81309

Reported-by: Matthew N. Heler <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
@BBoozmen BBoozmen added wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Oct 5, 2026
@cbodley
cbodley merged commit 7210abb into ceph:main Oct 5, 2026
16 checks passed
@cbodley
cbodley deleted the wip-81309 branch October 5, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants