cc: peterz
On 2025-05-14 09:45, Holger Hoffstätte wrote:
While trying to build 6.14.7-rc1 with CONFIG_CPU_MITIGATIONS unset:
LD .tmp_vmlinux1 ld: arch/x86/net/bpf_jit_comp.o: in function `emit_indirect_jump': /tmp/linux-6.14.7/arch/x86/net/bpf_jit_comp.c:660:(.text+0x97e): undefined reference to `__x86_indirect_its_thunk_array' make[2]: *** [scripts/Makefile.vmlinux:77: vmlinux] Error 1 make[1]: *** [/tmp/linux-6.14.7/Makefile:1234: vmlinux] Error 2 make: *** [Makefile:251: __sub-make] Error 2
- applying 9f35e33144ae aka "x86/its: Fix build errors when CONFIG_MODULES=n"
did not help
- mainline at 9f35e33144ae does not have this problem (same config)
Are we missing a commit in stable?
It seems commit e52c1dc7455d ("x86/its: FineIBT-paranoid vs ITS") [1] is missing in the stable queue. It replaces the direct array reference in bpf_jit_comp.c:emit_indirect_jump() with a mostly-empty function stub when !CONFIG_MITIGATION_ITS, which is why mainline built and -stable does not.
Unfortunately it does not seem to apply on top of 6.14.7-rc1 at all. Any good suggestions?
thanks Holger
[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commi...