[arm64:for-next/selftests 2/4] seccomp_ptrace_x0_bypass.c:67:28: error: array type has incomplete element type 'struct sock_filter'
kernel test robot <[email protected]> Sun, 02 Aug 2026 18:11:26 +0200
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
:::::: :::::: Manual check reason: "low confidence bisect report" :::::: BCC: [email protected] CC: [email protected] CC: [email protected] TO: Jinjie Ruan <[email protected]> CC: Will Deacon <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/selftests head: 2b989c411ab98fa76b7bb3b87ba7a2a4c3b5e946 commit: 2fcbc4adf99790564b83381b2f239294185603d5 [2/4] kselftest/arm64: Add seccomp ptrace x0 bypass test :::::: branch date: 6 hours ago :::::: commit date: 6 hours ago config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260802/[email protected]/config) compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ Note: the arm64/for-next/selftests HEAD 2b989c411ab98fa76b7bb3b87ba7a2a4c3b5e946 builds fine. It only hurts bisectability. All error/warnings (new ones prefixed by >>): seccomp_ptrace_x0_bypass.c: In function 'do_child': >> seccomp_ptrace_x0_bypass.c:67:28: error: array type has incomplete element type 'struct sock_filter' 67 | struct sock_filter filter[] = { | ^~~~~~ >> seccomp_ptrace_x0_bypass.c:68:17: error: implicit declaration of function 'BPF_STMT'; did you mean 'BPF_STX'? [-Wimplicit-function-declaration] 68 | BPF_STMT(BPF_LD | BPF_W | BPF_ABS, offsetof(struct seccomp_data, nr)), /* nr */ | ^~~~~~~~ | BPF_STX >> seccomp_ptrace_x0_bypass.c:69:17: error: implicit declaration of function 'BPF_JUMP'; did you mean 'BPF_JMP'? [-Wimplicit-function-declaration] 69 | BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_write, 0, 3), | ^~~~~~~~ | BPF_JMP >> seccomp_ptrace_x0_bypass.c:75:16: error: variable 'prog' has initializer but incomplete type 75 | struct sock_fprog prog = { | ^~~~~~~~~~ >> seccomp_ptrace_x0_bypass.c:76:18: error: 'struct sock_fprog' has no member named 'len' 76 | .len = ARRAY_SIZE(filter), | ^~~ In file included from seccomp_ptrace_x0_bypass.c:38: >> tools/testing/selftests/kselftest.h:64:25: warning: excess elements in struct initializer 64 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) | ^ seccomp_ptrace_x0_bypass.c:76:24: note: in expansion of macro 'ARRAY_SIZE' 76 | .len = ARRAY_SIZE(filter), | ^~~~~~~~~~ tools/testing/selftests/kselftest.h:64:25: note: (near initialization for 'prog') 64 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) | ^ seccomp_ptrace_x0_bypass.c:76:24: note: in expansion of macro 'ARRAY_SIZE' 76 | .len = ARRAY_SIZE(filter), | ^~~~~~~~~~ >> seccomp_ptrace_x0_bypass.c:77:18: error: 'struct sock_fprog' has no member named 'filter' 77 | .filter = filter, | ^~~~~~ >> seccomp_ptrace_x0_bypass.c:77:27: warning: excess elements in struct initializer 77 | .filter = filter, | ^~~~~~ seccomp_ptrace_x0_bypass.c:77:27: note: (near initialization for 'prog') >> seccomp_ptrace_x0_bypass.c:75:27: error: storage size of 'prog' isn't known 75 | struct sock_fprog prog = { | ^~~~ >> seccomp_ptrace_x0_bypass.c:75:27: warning: unused variable 'prog' [-Wunused-variable] >> seccomp_ptrace_x0_bypass.c:67:28: warning: unused variable 'filter' [-Wunused-variable] 67 | struct sock_filter filter[] = { | ^~~~~~ -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki