numam-dpdk/lib
David Marchand b81bf1efe3 eal: fix leak in shared lib mode detection
This is reported by our internal covscan:

1. dpdk-20.11/lib/librte_eal/common/eal_common_options.c:508: alloc_fn:
Storage is returned from allocation function "dlopen".
6. dpdk-20.11/lib/librte_eal/common/eal_common_options.c:508:
leaked_storage: Failing to save or free storage allocated by
"dlopen("librte_eal.so.21.0", 5)" leaks it.

 #   506|   	 * shared library is not already loaded i.e. it's
 #   statically linked.)
 #   507|   	 */
 #   508|-> 	if (dlopen("librte_eal.so."ABI_VERSION, RTLD_LAZY |
 #   RTLD_NOLOAD) != NULL &&
 #   509|   			*default_solib_dir != '\0' &&
 #   510|   			stat(default_solib_dir, &sb) == 0 &&

This leak is not an issue per se, but on the other hand, this is easy
to fix and I prefer not having to waive this warning later.

Fixes: 06c7871dde ("eal: restrict default plugin path to shared lib mode")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-05-10 15:31:42 +02:00
..
acl acl: fix build with GCC 11 2021-05-05 12:10:15 +02:00
bbdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
bitratestats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
bpf bpf: fix JSLT validation 2021-05-05 12:22:30 +02:00
cfgfile lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
cmdline lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
compressdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
cryptodev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
distributor lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal eal: fix leak in shared lib mode detection 2021-05-10 15:31:42 +02:00
efd lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev ethdev: add missing buses in device iterator 2021-05-04 18:33:09 +02:00
eventdev eventdev: fix memory leakage on thread creation failure 2021-05-03 11:46:26 +02:00
fib lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
flow_classify lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
graph lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
gro lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
gso lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
hash lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ip_frag ip_frag: fix fragmenting IPv4 packet with header option 2021-04-21 16:50:46 +02:00
ipsec lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
jobstats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
kni lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
kvargs lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
latencystats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
lpm lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
mbuf mbuf: clarify usage of packet pool initializers 2021-05-04 22:41:32 +02:00
member lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
mempool mempool: distinguish cache and pool debug counters 2021-05-04 09:44:55 +02:00
meter lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
metrics lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
node lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
pci lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
pdump lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
pipeline lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
port lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power power: save original ACPI governor always 2021-05-05 12:29:12 +02:00
rawdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rcu lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
regexdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
reorder lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rib lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ring lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
sched sched: fix traffic class oversubscription parameter 2021-04-21 16:57:18 +02:00
security lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
stack stack: allow lock-free only on relevant architectures 2021-05-03 18:46:15 +02:00
table build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
telemetry telemetry: fix race on callbacks list 2021-05-05 18:21:26 +02:00
timer lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
vhost vhost: fix offload flags in Rx path 2021-05-04 10:22:17 +02:00
meson.build build: fix default drivers list without Python 2021-05-07 15:41:45 +02:00