Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 692616731b1a8b24ee1bb4cb63e4cb04893fffee ("[RFC PATCH] bpf: introduce new bpf map type BPF_MAP_TYPE_WILDCARD")
url: https://github.com/intel-lab-lkp/linux/commits/Anton-Protopopov/bpf-introduce-new-bpf-map-type-BPF_MAP_TYPE_WILDCARD/20220907-160629
base: https://git.kernel.org/cgit/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/bpf/[email protected]
in testcase: kernel-selftests
version: kernel-selftests-x86_64-700a8991-1_20220823
with following parameters:
group: net
test: fcnal-test.sh
atomic_test: ipv4_bind
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 28G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/r/[email protected]
CLNG-BPF [test_maps] map_ptr_kern.bpf.o
progs/map_ptr_kern.c:314:26: error: field 'trie_key' with variable sized type 'struct bpf_lpm_trie_key' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
struct bpf_lpm_trie_key trie_key;
^
1 error generated.
make: *** [Makefile:522: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-692616731b1a8b24ee1bb4cb63e4cb04893fffee/tools/testing/selftests/bpf/map_ptr_kern.bpf.o] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-692616731b1a8b24ee1bb4cb63e4cb04893fffee/tools/testing/selftests/bpf'
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
--
0-DAY CI Kernel Test Service
https://01.org/lkp