Commit 19233c4
committed
generator: Disable ARM configs with BPF enabled in -next with clang-13
After commit 9aa0ebde0014 ("bpf, verifier: Improve precision of
BPF_MUL") [1], there is an error in certain ARM configurations that
enable CONFIG_BPF_SYSCALL:
ld.lld: error: undefined symbol: __mulodi4
>>> referenced by verifier.c:14221 (/builds/linux/kernel/bpf/verifier.c:14221)
>>> kernel/bpf/verifier.o:(adjust_reg_min_max_vals) in archive vmlinux.a
>>> referenced by verifier.c:14222 (/builds/linux/kernel/bpf/verifier.c:14222)
>>> kernel/bpf/verifier.o:(adjust_reg_min_max_vals) in archive vmlinux.a
>>> referenced by verifier.c:14223 (/builds/linux/kernel/bpf/verifier.c:14223)
>>> kernel/bpf/verifier.o:(adjust_reg_min_max_vals) in archive vmlinux.a
>>> referenced 1 more times
This was encountered previously [2], where it was fixed in clang-14 and
avoided in the kernel with a source code workaround (that ended up being
cleaner anyways).
This time around, inserting a source code workaround would not be as
clean, as it may involve disabling a core part of the kernel on a
limited condition (as it only impacts one supported LLVM version and
architecture combination) or having a separate code path for this
situation.
For now, just disable the builds that are impacted by this. If more
people notice this problem, we can explore bumping the minimum supported
version of LLVM for building `ARCH=arm` to 14.
Link: https://git.kernel.org/bpf/bpf-next/c/9aa0ebde0014f01a8ca82adcbf43b92345da0d50 [1]
Link: ClangBuiltLinux/linux#1438 [2]
Signed-off-by: Nathan Chancellor <[email protected]>1 parent de47851 commit 19233c4
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
0 commit comments