Re: [PATCH 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()

2025-01-30 Thread Ariel Otilibili
Hello Stephen, On Thu, Jan 30, 2025 at 7:24 PM Stephen Hemminger < step...@networkplumber.org> wrote: > Acked-by: Stephen Hemminger > Thanks for having looked into the patch; I have ACKed the fourth version by your name, https://inbox.dpdk.org/dev/20250130221853.789366-2-ariel.otilib...@6wind.co

Re: [PATCH 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()

2025-01-30 Thread Stephen Hemminger
On Thu, 16 Jan 2025 20:56:38 +0100 Ariel Otilibili 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 ch

[PATCH 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
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 --- drivers/net/af_xdp/rte_eth_af_