]> git.ipfire.org Git - thirdparty/linux.git/commit
Merge branch 'xsk-fixes-for-af_xdp-fragment-handling'
authorJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:55:14 +0000 (08:55 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:55:15 +0000 (08:55 -0800)
commit0eb5965b29989e9e593f502f7c4ef3923141adfd
treeefe2e3a637547b1c1dfb26c2e76b3f64dacafce4
parent6df0022b6cdbe31c00cf7a47addaf242a2984016
parentf7387d6579d65efd490a864254101cb665f2e7a7
Merge branch 'xsk-fixes-for-af_xdp-fragment-handling'

Nikhil P. Rao says:

====================
xsk: Fixes for AF_XDP fragment handling

This series fixes two issues in AF_XDP zero-copy fragment handling:

Patch 1 fixes a buffer leak caused by incorrect list node handling after
commit b692bf9a7543. The list_node field is now reused for both the xskb
pool list and the buffer free list. Using list_del() instead of
list_del_init() causes list_empty() checks in xp_free() to fail, preventing
buffers from being added to the free list.

Patch 2 fixes partial packet delivery to userspace. In the zero-copy path,
if the Rx queue fills up while enqueuing fragments, the remaining fragments
are dropped, causing the application to receive incomplete packets. The fix
ensures the Rx queue has sufficient space for all fragments before starting
to enqueue them.

[1] https://lore.kernel.org/oe-kbuild-all/202602051720.YfZO23pZ-lkp@intel.com/
[2] https://lore.kernel.org/oe-kbuild-all/202602172046.vf9DtpdF-lkp@intel.com/
====================

Link: https://patch.msgid.link/20260225000456.107806-1-nikhil.rao@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>