[dpdk-stable] [PATCH] telemetry: fix accessing callbacks list using lock

Bruce Richardson bruce.richardson at intel.com
Wed May 5 17:35:49 CEST 2021


On Wed, May 05, 2021 at 03:22:48PM +0000, Ciara Power wrote:
> 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: f38748736eb2 ("telemetry: add default callback commands")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ciara Power <ciara.power at intel.com>
> Reported-by: David Marchand <david.marchand at redhat.com>
> ---

Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the stable mailing list