Re: [Qemu-devel] [PATCH] cryptodev-vhost-user: fix a oob access

2019-03-17 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Li Qiang [mailto:liq...@163.com] > Sent: Sunday, March 17, 2019 5:10 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Li Qiang > Subject: [PATCH] cryptodev-vhost-user: fix a oob access > > The 'queue_index' of create/close_session function > is from

[Qemu-devel] [PATCH] cryptodev-vhost-user: fix a oob access

2019-03-17 Thread Li Qiang
The 'queue_index' of create/close_session function is from guest and can be exceed 'MAX_CRYPTO_QUEUE_NUM'. This leads oob access. This patch avoid this. Signed-off-by: Li Qiang --- backends/cryptodev-vhost-user.c | 4 1 file changed, 4 insertions(+) diff --git a/backends/cryptodev-vhost-us