[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251003140243.2534865-1-maciej.fijalkowski@intel.com>
Date: Fri, 3 Oct 2025 16:02:41 +0200
From: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
To: bpf@...r.kernel.org,
ast@...nel.org,
daniel@...earbox.net,
hawk@...nel.org,
ilias.apalodimas@...aro.org,
toke@...hat.com,
lorenzo@...nel.org
Cc: netdev@...r.kernel.org,
magnus.karlsson@...el.com,
andrii@...nel.org,
stfomichev@...il.com,
aleksander.lobakin@...el.com,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>
Subject: [PATCH bpf 0/2] xdp: fix page_pool leaks
Hi,
this set fixes page_pool leaks which happen when fragment is released
within XDP program and memory type is set incorrectly. The reports come
from syzbot and AF_XDP test suite.
This work was started by Octavian Purdila, below you can find links to
two revisions:
v2:
https://lore.kernel.org/bpf/20251001074704.2817028-1-tavip@google.com/
- use a local xdp_rxq_info structure and update mem.type instead of
skipping using page pool if the netdev xdp_rxq_info is not set to
MEM_TYPE_PAGE_POOL (which is always the case currently)
v1:
https://lore.kernel.org/netdev/20250924060843.2280499-1-tavip@google.com/
In this approach we use a small helper that utilizes
page_pool_page_is_pp(), which is enough for setting correct mem type in
xdp_rxq_info.
Thanks!
Maciej Fijalkowski (2):
xdp: update xdp_rxq_info's mem type in XDP generic hook
veth: update mem type in xdp_buff
drivers/net/veth.c | 2 ++
include/net/xdp.h | 7 +++++++
net/core/dev.c | 2 ++
3 files changed, 11 insertions(+)
--
2.43.0
Powered by blists - more mailing lists