public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable 6.12 0/5] Backport selftest for "bpf: Check skb->transport_header is set in bpf_skb_check_mtu"
@ 2026-02-24  7:38 Shung-Hsi Yu
  2026-02-24  7:38 ` [PATCH stable 6.12 1/5] selftests/bpf: ns_current_pid_tgid: Rename the test function Shung-Hsi Yu
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Shung-Hsi Yu @ 2026-02-24  7:38 UTC (permalink / raw)
  To: stable; +Cc: Ricardo B. Marlière, Shung-Hsi Yu

This patchset backport the corresponding BPF selftests for commit
d946f3c98328 ("bpf: Check skb->transport_header is set in
bpf_skb_check_mtu"), which has already been included since 6.12.63.

The BPF selftest added in commit 6cc73f35406c ("selftests/bpf: Test
bpf_skb_check_mtu(BPF_MTU_CHK_SEGS) when transport_header is not set")
additionally depends on network namespace support for BPF selftests
added by Bastien, otherwise the MTU in root networking namespace will be
set to 10, causing other BPF selftests to fail. Credit goes to Ricardo
Marlière for figuring out the dependency.

Bastien Curutchet (eBPF Foundation) (4):
  selftests/bpf: ns_current_pid_tgid: Rename the test function
  selftests/bpf: Optionally open a dedicated namespace to run test in it
  selftests/bpf: tc_links/tc_opts: Unserialize tests
  selftests/bpf: ns_current_pid_tgid: Use test_progs's ns_ feature

Martin KaFai Lau (1):
  selftests/bpf: Test bpf_skb_check_mtu(BPF_MTU_CHK_SEGS) when
    transport_header is not set

 .../selftests/bpf/prog_tests/check_mtu.c      | 23 ++++++++-
 .../bpf/prog_tests/ns_current_pid_tgid.c      | 49 +++++++------------
 .../selftests/bpf/prog_tests/tc_links.c       | 28 +++++------
 .../selftests/bpf/prog_tests/tc_opts.c        | 40 +++++++--------
 .../selftests/bpf/progs/test_check_mtu.c      | 12 +++++
 tools/testing/selftests/bpf/test_progs.c      | 12 +++++
 6 files changed, 98 insertions(+), 66 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-02-26  7:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24  7:38 [PATCH stable 6.12 0/5] Backport selftest for "bpf: Check skb->transport_header is set in bpf_skb_check_mtu" Shung-Hsi Yu
2026-02-24  7:38 ` [PATCH stable 6.12 1/5] selftests/bpf: ns_current_pid_tgid: Rename the test function Shung-Hsi Yu
2026-02-24  7:38 ` [PATCH stable 6.12 2/5] selftests/bpf: Optionally open a dedicated namespace to run test in it Shung-Hsi Yu
2026-02-24  7:38 ` [PATCH stable 6.12 3/5] selftests/bpf: tc_links/tc_opts: Unserialize tests Shung-Hsi Yu
2026-02-24  7:38 ` [PATCH stable 6.12 4/5] selftests/bpf: ns_current_pid_tgid: Use test_progs's ns_ feature Shung-Hsi Yu
2026-02-24  7:38 ` [PATCH stable 6.12 5/5] selftests/bpf: Test bpf_skb_check_mtu(BPF_MTU_CHK_SEGS) when transport_header is not set Shung-Hsi Yu
2026-02-24  7:53 ` [PATCH stable 6.12 0/5] Backport selftest for "bpf: Check skb->transport_header is set in bpf_skb_check_mtu" Harshit Mogalapalli
2026-02-24 12:18   ` Ricardo B. Marlière
2026-02-25  2:35     ` Latest BPF selftests on stable kernels (was 'Re: [PATCH stable 6.12 0/5] Backport selftest for "bpf: Check skb->transport_header is set in bpf_skb_check_mtu"') Shung-Hsi Yu
2026-02-25 14:32       ` Greg KH
2026-02-26  7:33         ` Shung-Hsi Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox