[EXT] [PATCH] crypto/ipsec_mb: Do not dequeue ops from ring after job flush.

Akhil Goyal gakhil at marvell.com
Mon Oct 30 08:10:17 CET 2023


> Subject: [EXT] [PATCH] crypto/ipsec_mb: Do not dequeue ops from ring after job
> flush.
> Previously it was possible to increment `processed_jobs` to a value
> greater than requested `nb_ops`, because after flushing at most
> `nb_ops` jobs the while loop continued, so `processed_jobs` could
> still be incremented and it was possible for this variable to be
> greater than `nb_ops`. If `ops` provided to the function were
> only `nb_ops` long, then the `aesni_mb_dequeue_burst()` would
> write to the memory outside of `ops` array.
> 
> Fixes: b50b8b5b38f8 ("crypto/ipsec_mb: use burst API in AESNI")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Krzysztof Karas <krzysztof.karas at intel.com>
> 
Pablo/Kai,
Can you please review?


More information about the stable mailing list