numam-dpdk/examples/l3fwd
Rahul Bhansali 0490d69d58 examples/l3fwd: fix buffer overflow in Tx
This patch fixes the stack buffer overflow error reported
from AddressSanitizer.
Function send_packetsx4() tries to access out of bound data
from rte_mbuf and fill it into TX buffer even in the case
where no pending packets (len = 0).
Performance impact:- No

ASAN error report:-
==819==ERROR: AddressSanitizer: stack-buffer-overflow on address
0xffffe2c0dcf0 at pc 0x0000005e791c bp 0xffffe2c0d7e0 sp 0xffffe2c0d800
READ of size 8 at 0xffffe2c0dcf0 thread T0
 #0 0x5e7918 in send_packetsx4 ../examples/l3fwd/l3fwd_common.h:251
 #1 0x5e7918 in send_packets_multi ../examples/l3fwd/l3fwd_neon.h:226

Fixes: 96ff445371 ("examples/l3fwd: reorganise and optimize LPM code path")
Cc: stable@dpdk.org

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
Reviewed-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2022-03-15 01:14:56 +01:00
..
em_default_v4.cfg examples/l3fwd: support config file for EM 2022-03-08 09:59:53 +01:00
em_default_v6.cfg examples/l3fwd: support config file for EM 2022-03-08 09:59:53 +01:00
em_route_parse.c examples/l3fwd: support config file for EM 2022-03-08 09:59:53 +01:00
l3fwd_altivec.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_common.h examples/l3fwd: fix buffer overflow in Tx 2022-03-15 01:14:56 +01:00
l3fwd_em_hlm_neon.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_em_hlm_sse.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_em_hlm.h examples/l3fwd: support event vector 2021-10-21 10:16:00 +02:00
l3fwd_em_sequential.h examples/l3fwd: support event vector 2021-10-21 10:16:00 +02:00
l3fwd_em.c examples/l3fwd: support config file for EM 2022-03-08 09:59:53 +01:00
l3fwd_em.h examples/l3fwd: support event vector 2021-10-21 10:16:00 +02:00
l3fwd_event_generic.c eventdev: express DLB/DLB2 PMD constraints 2020-10-15 23:16:07 +02:00
l3fwd_event_internal_port.c examples/l3fwd: fix Rx burst size for event mode 2022-01-21 12:57:52 +01:00
l3fwd_event.c examples/l3fwd: share queue size variables 2022-03-08 10:21:49 +01:00
l3fwd_event.h examples/l3fwd: support event vector 2021-10-21 10:16:00 +02:00
l3fwd_fib.c examples/l3fwd: support config file for LPM/FIB 2022-03-08 09:59:42 +01:00
l3fwd_lpm_altivec.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_lpm_neon.h examples/l3fwd: remove useless calculations in NEON LPM 2021-07-05 11:30:58 +02:00
l3fwd_lpm_sse.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_lpm.c examples/l3fwd: support config file for LPM/FIB 2022-03-08 09:59:42 +01:00
l3fwd_lpm.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
l3fwd_neon.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l3fwd_route.h examples/l3fwd: support config file for EM 2022-03-08 09:59:53 +01:00
l3fwd_sse.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l3fwd.h examples/l3fwd: share queue size variables 2022-03-08 10:21:49 +01:00
lpm_default_v4.cfg examples/l3fwd: support config file for LPM/FIB 2022-03-08 09:59:42 +01:00
lpm_default_v6.cfg examples/l3fwd: support config file for LPM/FIB 2022-03-08 09:59:42 +01:00
lpm_route_parse.c examples/l3fwd: support config file for LPM/FIB 2022-03-08 09:59:42 +01:00
main.c examples/l3fwd: make Rx and Tx queue size configurable 2022-03-08 10:22:12 +01:00
Makefile examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
meson.build build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00