Skip to content

x86/ibt: FineIBT-BHI

Peter Zijlstra lkml 3 versions – Applied

Status from this message: The following commit has been merged into the x86/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 22 repliesApplied
  2. v310 patches 27 repliesSuperseded
  3. v111 patches 8 repliesApplied

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/10x86/cfi: Add warn optionarch/x86/kernel/alternative.c include/linux/cfi.h kernel/cfi.c+8 -11 reply
2/10x86/ibt: Add exact_endbr() helperarch/x86/kernel/alternative.c+13 -30 replies
3/10x86/traps: Decode 0xEA #UDarch/x86/include/asm/bug.h arch/x86/kernel/traps.c+18 -31 reply
4/10x86/traps: Allow custom fixups in handle_bug()arch/x86/kernel/cfi.c arch/x86/kernel/traps.c+17 -72 replies
5/10x86/ibt: Optimize FineIBT sequencearch/x86/kernel/alternative.c arch/x86/net/bpf_jit_comp.c+42 -240 replies
6/10x86/traps: Decode LOCK Jcc.d8 #UDarch/x86/include/asm/bug.h arch/x86/kernel/traps.c+25 -32 replies
7/10x86/ibt: Add paranoid FineIBT modearch/x86/kernel/alternative.c+138 -61 reply
8/10x86: BHI stubsarch/x86/include/asm/cfi.h arch/x86/lib/Makefile arch/x86/lib/bhi.S+152 -13 replies
9/10x86/ibt: Implement FineIBT-BHI mitigationMakefile arch/x86/Kconfig arch/x86/include/asm/cfi.h +2 more+134 -1912 replies
10/10x86/ibt: Optimize fineibt-bhi arity 1 casearch/x86/include/asm/ibt.h arch/x86/kernel/alternative.c+54 -90 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchKees Cook
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v4 thread

Cover letter [PATCH v4 00/10] x86/ibt: FineIBT-BHI

Hi all!

Hopefully final version of these here patches.

As reported, these patches include the cfi=paranoid flag for dealing with the FineIBT SYSCALL pivot and cfi=bhi for further hardering FineIBT.

Biggest difference since last time is the reworking (vastly simplifying) of cfi=warn, and getting rid of the ud_type propagation in favour of using is_cfi_trap().

As reported earlier, available at:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fineibt-bhi2

Previous version at:

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

---
 Makefile                      |   3 +
 arch/x86/Kconfig              |   8 +
 arch/x86/include/asm/bug.h    |   3 +
 arch/x86/include/asm/cfi.h    |  10 ++
 arch/x86/include/asm/ibt.h    |   4 +
 arch/x86/kernel/alternative.c | 370 +++++++++++++++++++++++++++++++++++++-----
 arch/x86/kernel/cfi.c         |   8 +-
 arch/x86/kernel/traps.c       |  54 +++++-
 arch/x86/lib/Makefile         |   3 +-
 arch/x86/lib/bhi.S            | 146 +++++++++++++++++
 arch/x86/net/bpf_jit_comp.c   |  30 ++--
 include/linux/cfi.h           |   2 +
 kernel/cfi.c                  |   4 +-
 13 files changed, 585 insertions(+), 60 deletions(-)