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

Peter Zijlstra posted 10 patches 9 months, 3 weeks ago
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(-)
[PATCH v4 00/10] x86/ibt: FineIBT-BHI
Posted by Peter Zijlstra 9 months, 3 weeks ago
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/20250219162107.880673196@infradead.org


---
 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(-)