qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-block] [PATCH v2] ide: ahci: reset ncq object to


From: Kevin Wolf
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2] ide: ahci: reset ncq object to unused on error
Date: Mon, 11 Jan 2016 16:00:13 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 08.01.2016 um 20:48 hat P J P geschrieben:
> From: Prasad J Pandit <address@hidden>
> 
> When processing NCQ commands, ACHI device emulation prepares a

s/ACHI/AHCI/

Can you still fix this in your tree, John?

Kevin

> NCQ transfer object; To which an aio control block(aiocb) object
> is assigned in 'execute_ncq_command'. In case, when the NCQ
> command is invalid, the 'aiocb' object is not assigned, and NCQ
> transfer object is left as 'used'. This leads to a use after
> free kind of error in 'bdrv_aio_cancel_async' via 'ahci_reset_port'.
> Reset NCQ transfer object to 'unused' to avoid it.
> 
> Reported-by: Qinghao Tang <address@hidden>
> Signed-off-by: Prasad J Pandit <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]