qemu-devel
[Top][All Lists]
Advanced

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

Re: RE: [PATCH] virtio-crypto: fix NULL pointer dereference in virtio_cr


From: zhenwei pi
Subject: Re: RE: [PATCH] virtio-crypto: fix NULL pointer dereference in virtio_crypto_free_request
Date: Tue, 9 May 2023 09:45:01 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0



On 5/9/23 09:02, Gonglei (Arei) wrote:


-----Original Message-----
From: Mauro Matteo Cascella [mailto:mcascell@redhat.com]
Sent: Monday, May 8, 2023 11:02 PM
To: qemu-devel@nongnu.org
Cc: mst@redhat.com; Gonglei (Arei) <arei.gonglei@huawei.com>;
pizhenwei@bytedance.com; taoym@zju.edu.cn; mcascell@redhat.com
Subject: [PATCH] virtio-crypto: fix NULL pointer dereference in
virtio_crypto_free_request

Ensure op_info is not NULL in case of QCRYPTODEV_BACKEND_ALG_SYM
algtype.

Fixes: 02ed3e7c ("virtio-crypto: zeroize the key material before free")

I have to say the fixes is incorrect. The bug was introduced by commit 
0e660a6f90a, which
changed the semantic meaning of request-> flag.

Regards,
-Gonglei


Hi Mauro

Agree with Lei, could you please change the Fixes as Lei suggested?

--
zhenwei pi



reply via email to

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