[PATCH v2] examples/ipsec-secgw: fix dequeue count from cryptodev

Akhil Goyal gakhil at marvell.com
Wed Sep 18 07:44:45 CEST 2024


> Subject: [PATCH v2] examples/ipsec-secgw: fix dequeue count from cryptodev
> 
> Setting dequeue packet count to max of MAX_PKT_BURST
> size instead of MAX_PKTS.
> 
> Dequeue from cryptodev is called with MAX_PKTS but
> routing functions allocate hop/dst_ip arrays of
> size MAX_PKT_BURST. This can corrupt stack causing
> stack smashing error when more than MAX_PKT_BURST
> packets are returned from cryptodev.
> 
> Fixes: a2b445b810ac ("examples/ipsec-secgw: allow larger burst size for
> vectors")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Tejasree Kondoj <ktejasree at marvell.com>
Acked-by: Akhil Goyal <gakhil at marvell.com>


More information about the dev mailing list