numam-dpdk/examples
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
..
bbdev_app fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
bond fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
bpf mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
cmdline doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
distributor examples/distributor: reduce Tx queue number to 1 2022-03-08 12:38:39 +01:00
dma fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ethtool fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
eventdev_pipeline ethdev: add namespace 2021-10-22 18:15:38 +02:00
fips_validation remove unnecessary null checks 2022-02-12 12:07:48 +01:00
flow_classify examples/flow_classify: fix failure message 2022-03-08 14:17:27 +01:00
flow_filtering examples/flow_filtering: enhance code snippet readability 2021-11-16 16:22:26 +01:00
helloworld doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
ip_fragmentation mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
ip_pipeline remove unnecessary null checks 2022-02-12 12:07:48 +01:00
ip_reassembly fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ipsec-secgw examples/ipsec-secgw: add pool size parameters 2022-02-23 11:43:14 +01:00
ipv4_multicast ethdev: add namespace 2021-10-22 18:15:38 +02:00
kni examples/kni: add missing trailing newline in log 2022-03-08 14:27:11 +01:00
l2fwd examples/l2fwd: add promiscuous mode option 2021-10-25 22:31:53 +02:00
l2fwd-cat remove unnecessary null checks 2022-02-12 12:07:48 +01:00
l2fwd-crypto examples/l2fwd-crypto: fix port mask overflow 2022-02-23 11:50:02 +01:00
l2fwd-event fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l2fwd-jobstats fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l2fwd-keepalive eal: remove FINISHED lcore state 2021-10-25 18:20:59 +02:00
l3fwd examples/l3fwd: fix buffer overflow in Tx 2022-03-15 01:14:56 +01:00
l3fwd-acl fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l3fwd-graph ethdev: add namespace 2021-10-22 18:15:38 +02:00
l3fwd-power fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
link_status_interrupt ethdev: add namespace 2021-10-22 18:15:38 +02:00
multi_process examples/multi_process: make RSS and checksum optional 2022-03-08 14:20:11 +01:00
ntb fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
packet_ordering fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
pipeline examples/pipeline: print table entries to file 2022-02-13 22:31:39 +01:00
ptpclient examples/ptpclient: fix delay request message 2021-11-24 15:11:42 +01:00
qos_meter mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
qos_sched examples/qos_sched: fix core mask overflow 2022-02-25 10:39:26 +01:00
rxtx_callbacks ethdev: add namespace 2021-10-22 18:15:38 +02:00
server_node_efd fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
service_cores examples/service_cores: fix lcore count check 2021-09-16 17:31:03 +02:00
skeleton fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
timer doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
vdpa vhost: rename driver callbacks struct 2021-11-03 11:59:27 +01:00
vhost examples/vhost: fix launch with physical port 2022-03-04 15:14:30 +01:00
vhost_blk remove unnecessary null checks 2022-02-12 12:07:48 +01:00
vhost_crypto examples: skip build when missing dependencies 2021-11-10 11:42:34 +01:00
vm_power_manager lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
vmdq fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
vmdq_dcb ethdev: add namespace 2021-10-22 18:15:38 +02:00
meson.build examples/performance-thread: remove 2022-01-20 14:30:59 +01:00