numam-dpdk/lib
Ciara Power 048960272e telemetry: fix race on callbacks list
The list_commands() function accessed the callbacks list,
but did not take the lock. This may have caused inconsistencies if
callbacks were being registered at the same time.
This is now fixed to lock before iterating the list,
and unlock afterwards.

Fixes: f38748736e ("telemetry: add default callback commands")
Cc: stable@dpdk.org

Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-05-05 18:21:26 +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/windows: fix MinGW build 2021-05-04 19:32:28 +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: allocate and free packets in bulk in Tx packed 2021-04-28 04:53:30 +02:00
meson.build build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00