vhost/crypto: fix descriptor deduction
authorFan Zhang <roy.fan.zhang@intel.com>
Mon, 28 Sep 2020 10:59:14 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 28 Sep 2020 11:16:37 +0000 (13:16 +0200)
commit5677e68c05d8b205b121e8f54f3eab61990b77eb
treecd3760993c439cabcc2b26f714d6a169df9a2b45
parent57680e34498b7f941f86bb38537bc49854880b6d
vhost/crypto: fix descriptor deduction

This patch fixes the incorrect descriptor deduction for vhost crypto.

CVE-2020-14378
Fixes: 16d2e718b8ce ("vhost/crypto: fix possible out of bound access")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/vhost_crypto.c