From: Greg Kroah-Hartman Date: Sat, 23 May 2026 09:20:32 +0000 (+0200) Subject: 7.0-stable patches X-Git-Tag: v6.6.141~6 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=1dc34be5f1ecb66ccb01fa87163a6c7c55df8544;p=thirdparty%2Fkernel%2Fstable-queue.git 7.0-stable patches added patches: selftests-bpf-remove-test_access_variable_array.patch --- diff --git a/queue-7.0/selftests-bpf-remove-test_access_variable_array.patch b/queue-7.0/selftests-bpf-remove-test_access_variable_array.patch new file mode 100644 index 0000000000..757a69fc30 --- /dev/null +++ b/queue-7.0/selftests-bpf-remove-test_access_variable_array.patch @@ -0,0 +1,74 @@ +From aacee214d57636fa1f63007c65f333b5ea75a7a0 Mon Sep 17 00:00:00 2001 +From: Venkat Rao Bagalkote +Date: Fri, 10 Apr 2026 16:24:04 +0530 +Subject: selftests/bpf: Remove test_access_variable_array + +From: Venkat Rao Bagalkote + +commit aacee214d57636fa1f63007c65f333b5ea75a7a0 upstream. + +test_access_variable_array relied on accessing struct sched_domain::span +to validate variable-length array handling via BTF. Recent scheduler +refactoring removed or hid this field, causing the test +to fail to build. + +Given that this test depends on internal scheduler structures that are +subject to refactoring, and equivalent variable-length array coverage +already exists via bpf_testmod-based tests, remove +test_access_variable_array entirely. + +Link: https://lore.kernel.org/all/177434340048.1647592.8586759362906719839.tip-bot2@tip-bot2/ + +Signed-off-by: Venkat Rao Bagalkote +Tested-by: Naveen Kumar Thummalapenta +Link: https://lore.kernel.org/r/20260410105404.91126-1-venkat88@linux.ibm.com +Signed-off-by: Alexei Starovoitov +Signed-off-by: Greg Kroah-Hartman +--- + tools/testing/selftests/bpf/prog_tests/access_variable_array.c | 16 -------- + tools/testing/selftests/bpf/progs/test_access_variable_array.c | 19 ---------- + 2 files changed, 35 deletions(-) + delete mode 100644 tools/testing/selftests/bpf/prog_tests/access_variable_array.c + delete mode 100644 tools/testing/selftests/bpf/progs/test_access_variable_array.c + +--- a/tools/testing/selftests/bpf/prog_tests/access_variable_array.c ++++ /dev/null +@@ -1,16 +0,0 @@ +-// SPDX-License-Identifier: GPL-2.0 +-/* Copyright (c) 2022 Bytedance */ +- +-#include +-#include "test_access_variable_array.skel.h" +- +-void test_access_variable_array(void) +-{ +- struct test_access_variable_array *skel; +- +- skel = test_access_variable_array__open_and_load(); +- if (!ASSERT_OK_PTR(skel, "test_access_variable_array__open_and_load")) +- return; +- +- test_access_variable_array__destroy(skel); +-} +--- a/tools/testing/selftests/bpf/progs/test_access_variable_array.c ++++ /dev/null +@@ -1,19 +0,0 @@ +-// SPDX-License-Identifier: GPL-2.0 +-/* Copyright (c) 2023 Bytedance */ +- +-#include "vmlinux.h" +-#include +-#include +- +-unsigned long span = 0; +- +-SEC("fentry/sched_balance_rq") +-int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq, +- struct sched_domain *sd) +-{ +- span = sd->span[0]; +- +- return 0; +-} +- +-char _license[] SEC("license") = "GPL"; diff --git a/queue-7.0/series b/queue-7.0/series index ae18c89a48..a6f33a699e 100644 --- a/queue-7.0/series +++ b/queue-7.0/series @@ -1141,3 +1141,4 @@ tracefs-removed-unused-ret-variable-in-eventfs_iterate.patch workqueue-annotate-alloc_workqueue_va-with-__printf-1-0.patch net-skbuff-preserve-shared-frag-marker-during-coalescing.patch net-skbuff-propagate-shared-frag-marker-through-frag-transfer-helpers.patch +selftests-bpf-remove-test_access_variable_array.patch