[PATCH v2] crypto/ipsec_mb: do not dequeue ops after flush

Akhil Goyal gakhil at marvell.com
Thu Nov 16 18:50:08 CET 2023


> > > Subject: [PATCH v2] crypto/ipsec_mb: do not dequeue ops after 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>
> >
> > Acked-by: Marcel Cornu <marcel.d.cornu at intel.com>
> 
> Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Applied to dpdk-next-crypto
Thanks.


More information about the stable mailing list