[PATCH 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()
Stephen Hemminger
stephen at networkplumber.org
Thu Jan 30 19:24:07 CET 2025
On Thu, 16 Jan 2025 20:56:38 +0100
Ariel Otilibili <ariel.otilibili at 6wind.com> wrote:
> tx_bytes is computed after both branches are tested. This might
> produce a use after memory free.
>
> The computation is now moved into both branches.
>
> Bugzilla ID: 1440
> Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks")
> Signed-off-by: Ariel Otilibili <ariel.otilibili at 6wind.com>
> ---
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list