[dpdk-dev] [EXT] [v2] test: fix crypto_op length for sessionless case
Akhil Goyal
gakhil at marvell.com
Mon Jul 19 21:01:39 CEST 2021
> Currently, private_data_offset for the sessionless is computed
> wrongly which includes extra bytes added by
> sizeof(struct rte_crypto_sym_xform) * 2. This causes buffer
> overflow which leads to test application crash while freeing the
> ops mempool. This patch provides fix for the same and also takes
> care of increasing the length of ops to accommodate space for
> rte_event_crypto_metadata while creating the crypto ops mempool.
>
> Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
> Reported-by: ciara.power at intel.com
>
> Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar at intel.com>
> ---
>
> v2:
> - Fix length calculation for copying metadata
> - Update mempool's size to accommodate space for metadata
Acked-by: Akhil Goyal <gakhil at marvell.com>
Applied to dpdk-next-crypto
More information about the dev
mailing list