Skip to content

x86: Rewrite the retpoline rewrite logic

Peter Zijlstra bpf 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17objtool: Handle __sanitize_cov*() tail callstools/objtool/arch/x86/decode.c tools/objtool/check.c tools/objtool/include/objtool/arch.h+105 -740 replies
2/17objtool: Classify symbolstools/objtool/check.c tools/objtool/include/objtool/elf.h+26 -130 replies
3/17objtool: Explicitly avoid self modifying code in .altinstr_replacementtools/objtool/check.c+31 -110 replies
4/17objtool: Shrink struct instructiontools/objtool/check.c tools/objtool/include/objtool/check.h+3 -40 replies
5/17objtool,x86: Replace alternatives with .retpoline_sitesarch/x86/kernel/vmlinux.lds.S tools/objtool/arch/x86/decode.c tools/objtool/check.c +3 more+107 -2520 replies
6/17x86/retpoline: Remove unused replacement symbolsarch/x86/include/asm/asm-prototypes.h arch/x86/lib/retpoline.S+0 -520 replies
7/17x86/asm: Fix register orderarch/x86/include/asm/GEN-for-each-reg.h+10 -40 replies
8/17x86/asm: Fixup odd GEN-for-each-reg.h usagearch/x86/include/asm/asm-prototypes.h arch/x86/lib/retpoline.S+3 -30 replies
9/17x86/retpoline: Move the retpoline thunk declarations to nospec-branch.harch/x86/include/asm/asm-prototypes.h arch/x86/include/asm/nospec-branch.h arch/x86/net/bpf_jit_comp.c+7 -90 replies
10/17x86/retpoline: Create a retpoline thunk arrayarch/x86/include/asm/nospec-branch.h arch/x86/lib/retpoline.S+16 -60 replies
11/17x86/alternative: Implement .retpoline_sites supportarch/um/kernel/um_arch.c arch/x86/include/asm/alternative.h arch/x86/kernel/alternative.c +1 more+150 -50 replies
12/17x86/alternative: Handle Jcc __x86_indirect_thunk_\regarch/x86/kernel/alternative.c+34 -40 replies
13/17x86/alternative: Try inline spectre_v2=retpoline,amdarch/x86/kernel/alternative.c+14 -20 replies
14/17x86/alternative: Add debug prints to apply_retpolines()arch/x86/kernel/alternative.c+6 -00 replies
15/17x86,bugs: Unconditionally allow spectre_v2=retpoline,amdarch/x86/kernel/cpu/bugs.c+0 -70 replies
16/17bpf, x86: Simplify computing label offsetsarch/x86/net/bpf_jit_comp.c+42 -810 replies
17/17bpf,x86: Respect X86_FEATURE_RETPOLINE*arch/x86/include/asm/nospec-branch.h arch/x86/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp32.c+41 -860 replies

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by.

PatchMarco Elver
1/17A-b
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 00/17] x86: Rewrite the retpoline rewrite logic

For the BPF CI robots.

Rebased to bpf-next/master, one additional patch from tip/objtool/core to ease that.

Please don't reply to this, but instead comment on the thread here:

https://lkml.kernel.org/r/[email protected]