[pve-devel] applied: [PATCH qemu] fix #2874: SATA: avoid unsolicited write to sector 0 during reset

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Sep 26 11:33:55 CEST 2023


Am 24/08/2023 um 15:51 schrieb Fiona Ebner:
> If there is a pending DMA operation during ide_bus_reset(), the fact
> that the IDEstate is already reset before the operation is canceled
> can be problematic. In particular, ide_dma_cb() might be called and
> then use the reset IDEstate which contains the signature after the
> reset. When used to construct the IO operation this leads to
> ide_get_sector() returning 0 and nsector being 1. This is particularly
> bad, because a write command will thus destroy the first sector which
> often contains a partition table or similar.
> 
> Upstream discussion:
> https://lists.nongnu.org/archive/html/qemu-devel/2023-08/msg04239.html
> 
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
>  ...cel-async-DMA-operation-before-reset.patch | 100 ++++++++++++++++++
>  debian/patches/series                         |   1 +
>  2 files changed, 101 insertions(+)
>  create mode 100644 debian/patches/extra/0012-hw-ide-reset-cancel-async-DMA-operation-before-reset.patch
> 
>

applied, thanks!





More information about the pve-devel mailing list