Re: [PATCH v4 00/45] x86: Kernel IBT

From: Alexei Starovoitov
Date: Tue Mar 08 2022 - 15:01:02 EST


On Tue, Mar 08, 2022 at 04:30:11PM +0100, Peter Zijlstra wrote:
> Hopefully last posting...
>
> Since last time:
>
> - updated the ftrace_location() patch (naveen, rostedt)
> - added a few comments and clarifications (bpetkov)
> - disable jump-tables (joao)
> - verified clang-14-rc2 works
> - fixed a whole bunch of objtool unreachable insn issue
> - picked up a few more tags
>
> Patches go on top of tip/master + arm64/for-next/linkage. Also available here:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt

I've tried to test it.
Applied the first 23 patches, since patch 24 failed to apply to bpf and bpf-next trees.
selftest/bpf/test_progs
shows that all bpf trampoline tests are failing and
eventually the kernel is crashing:
[ 53.040582] RIP: 0010:do_init_module+0x9/0x6f0
[ 53.052044] Call Trace:
[ 53.052319] <TASK>
[ 53.052559] bpf_trampoline_6442471381_0+0x32/0x1000
[ 53.053117] do_init_module+0x5/0x6f0
[ 53.053550] load_module+0x77c0/0x9c00

I havne't had time to debug what's going on.