[dpdk-stable] [PATCH v2] vhost/vhost_crypto: do not use possibly NULL Pointers

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jun 17 18:49:36 CEST 2021



On 5/24/21 11:08 AM, Thierry Herbelot wrote:
> Use vc_req only after it was checked not to be NULL.
> 
> Fixes: 2d962bb736521 ("vhost/crypto: fix possible TOCTOU attack")
> Cc: stable at dpdk.org
> Cc: Maxime Coquelin <maxime.coquelin at redhat.com>
> Cc: Chenbo Xia <chenbo.xia at intel.com>
> 
> Signed-off-by: Thierry Herbelot <thierry.herbelot at 6wind.com>
> --
> V2: fix copy/paste typo
> ---
>  lib/vhost/vhost_crypto.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 

Applied to dpdk-next-virtio/main.

Thanks,
Maxime



More information about the stable mailing list