]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: Fix use-after-move in retry logic in logbacking 57858/head
authorAdam Emerson <aemerson@redhat.com>
Tue, 4 Jun 2024 03:17:33 +0000 (23:17 -0400)
committerAdam Emerson <aemerson@redhat.com>
Tue, 4 Jun 2024 03:22:18 +0000 (23:22 -0400)
commit80cf2ca3b44246ad8f2e333182b3c8b1835a71f7
treea9a0d93bf11a214c00cdc4fb38e01467dc90b1ea
parent5ef9f8990d0f61a8ccd50efa2c0880b14eeef562
rgw/multisite: Fix use-after-move in retry logic in logbacking

Fitting a retry loop around a call that took the lock changed the
logic to potentially have the lock be used after moving.

Thanks to Suyash Dongre suyashd999@gmail.com for finding it.

This patch also fixes a lock being held across an I/O operation.

Fixes: https://tracker.ceph.com/issues/66340
Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/rgw/driver/rados/rgw_log_backing.cc