[PATCH 22.11] common/idpf: fix use after free in mailbox init

Luca Boccassi luca.boccassi at gmail.com
Fri Oct 25 17:50:20 CEST 2024


On Fri, 25 Oct 2024 at 01:14, Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> [ upstream commit 4baf54ed9dc87b89ea2150578c51120bc0157bb0 ]
>
> The macro in this driver was redefining LIST_FOR_EACH_ENTRY_SAFE
> as a simple LIST_FOR_EACH macro.
> But they are not the same the _SAFE variant guarantees that
> there will not be use after free.
>
> Fixes: fb4ac04e9bfa ("common/idpf: introduce common library")
> Cc: stable at dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> Acked-by: Wathsala Vithanage <wathsala.vithanage at arm.com>
> ---
>  drivers/common/idpf/base/idpf_osdep.h | 10 ++++++++--
>  drivers/net/idpf/idpf_ethdev.c        |  3 +--
>  2 files changed, 9 insertions(+), 4 deletions(-)

Thanks, applied


More information about the stable mailing list