Re: [PATCH v4] examples/vm_power_manager: use safe version of list iterator

2022-08-22 Thread Hunt, David
On 22/08/2022 11:58, Reshma Pattan wrote: From: Hamza Khan Currently, when vm_power_manager exits, we are using a LIST_FOREACH macro to iterate over VM info structures while freeing them. This leads to use-after-free error. To address this, replace all usages of LIST_* with TAILQ_* macros, an

[PATCH v4] examples/vm_power_manager: use safe version of list iterator

2022-08-22 Thread Reshma Pattan
From: Hamza Khan Currently, when vm_power_manager exits, we are using a LIST_FOREACH macro to iterate over VM info structures while freeing them. This leads to use-after-free error. To address this, replace all usages of LIST_* with TAILQ_* macros, and use the RTE_TAILQ_FOREACH_SAFE macro to iter