Commit 80cf2ca
committed
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 [email protected] 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 <[email protected]>1 parent 5ef9f89 commit 80cf2ca
1 file changed
+16
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| 447 | + | |
| 448 | + | |
447 | 449 | | |
448 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
453 | | - | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
| |||
609 | 613 | | |
610 | 614 | | |
611 | 615 | | |
612 | | - | |
613 | | - | |
| 616 | + | |
| 617 | + | |
614 | 618 | | |
615 | | - | |
616 | | - | |
617 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
618 | 626 | | |
| 627 | + | |
619 | 628 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | 629 | | |
624 | 630 | | |
625 | 631 | | |
| |||
646 | 652 | | |
647 | 653 | | |
648 | 654 | | |
649 | | - | |
| 655 | + | |
650 | 656 | | |
651 | 657 | | |
652 | 658 | | |
| |||
0 commit comments