[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 03/11] block/iscsi: fix double-free on BUSY or similar statuse
From: |
Fiona Ebner |
Subject: |
Re: [PULL 03/11] block/iscsi: fix double-free on BUSY or similar statuses |
Date: |
Tue, 21 Feb 2023 13:15:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Am 08.02.23 um 18:19 schrieb Paolo Bonzini:
> Commit 8c460269aa77 ("iscsi: base all handling of check condition on
> scsi_sense_to_errno", 2019-07-15) removed a "goto out" so that the
> same coroutine is re-entered twice; once from iscsi_co_generic_cb,
> once from the timer callback iscsi_retry_timer_expired. This can
> cause a crash.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1378
> Reported-by: Grzegorz Zdanowski <https://gitlab.com/kiler129>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> block/iscsi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/block/iscsi.c b/block/iscsi.c
> index b3e10f40b649..3aacd0709f93 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -269,6 +269,7 @@ iscsi_co_generic_cb(struct iscsi_context *iscsi, int
> status,
> timer_mod(&iTask->retry_timer,
> qemu_clock_get_ms(QEMU_CLOCK_REALTIME) +
> retry_time);
> iTask->do_retry = 1;
> + return;
> } else if (status == SCSI_STATUS_CHECK_CONDITION) {
> int error = iscsi_translate_sense(&task->sense);
> if (error == EAGAIN) {
Thank you for the fix! CC-ing stable, because this is a regression fix.
- [PULL 00/11] Misc patches for 2022-02-08, Paolo Bonzini, 2023/02/08
- [PULL 01/11] build: make meson-buildoptions.sh stable, Paolo Bonzini, 2023/02/08
- [PULL 03/11] block/iscsi: fix double-free on BUSY or similar statuses, Paolo Bonzini, 2023/02/08
- Re: [PULL 03/11] block/iscsi: fix double-free on BUSY or similar statuses,
Fiona Ebner <=
- [PULL 06/11] libqtest: ensure waitpid() is only called once, Paolo Bonzini, 2023/02/08
- [PULL 11/11] target/i386: fix ADOX followed by ADCX, Paolo Bonzini, 2023/02/08
- [PULL 05/11] libqtest: split qtest_spawn_qemu function, Paolo Bonzini, 2023/02/08
- [PULL 08/11] tests/tcg/i386: Introduce and use reg_t consistently, Paolo Bonzini, 2023/02/08
- [PULL 10/11] target/i386: Fix C flag for BLSI, BLSMSK, BLSR, Paolo Bonzini, 2023/02/08
- [PULL 04/11] vl: catch [accel] entry without accelerator, Paolo Bonzini, 2023/02/08
- [PULL 07/11] readconfig-test: add test for accelerator configuration, Paolo Bonzini, 2023/02/08
- [PULL 09/11] target/i386: Fix BEXTR instruction, Paolo Bonzini, 2023/02/08