Files
linux-stable-mirror/include/net
Amery HungandGreg Kroah-Hartman 9c55db5837 bpf: Clear pfmemalloc flag when freeing all fragments
[ Upstream commit 8f12d1137c ]

It is possible for bpf_xdp_adjust_tail() to free all fragments. The
kfunc currently clears the XDP_FLAGS_HAS_FRAGS bit, but not
XDP_FLAGS_FRAGS_PF_MEMALLOC. So far, this has not caused a issue when
building sk_buff from xdp_buff since all readers of xdp_buff->flags
use the flag only when there are fragments. Clear the
XDP_FLAGS_FRAGS_PF_MEMALLOC bit as well to make the flags correct.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://patch.msgid.link/20250922233356.3356453-2-ameryhung@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-11-24 10:29:22 +01:00
..
2025-07-17 18:35:09 +02:00
2025-02-08 09:51:55 +01:00
2023-11-20 11:59:34 +01:00
2024-01-31 16:19:01 -08:00
2025-03-07 16:45:39 +01:00
2024-12-19 18:11:28 +01:00
2025-02-27 04:10:50 -08:00
2025-02-27 04:10:50 -08:00
2024-07-18 13:21:12 +02:00
2023-11-20 11:58:56 +01:00