[GIT PULL] x86/alternatives for v6.3-rc1

From: Borislav Petkov
Date: Mon Feb 20 2023 - 10:24:54 EST


Hi Linus,

please pull some x86 alternatives improvements for 6.3.

Thx.

---

The following changes since commit 1b929c02afd37871d5afb9d498426f83432e71c2:

Linux 6.2-rc1 (2022-12-25 13:41:39 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_alternatives_for_v6.3_rc1

for you to fetch changes up to 923510c88d2b7d947c4217835fd9ca6bd65cc56c:

x86/static_call: Add support for Jcc tail-calls (2023-01-31 15:05:31 +0100)

----------------------------------------------------------------
- Teach the static_call patching infrastructure to handle conditional
tall calls properly which can be static calls too

- Add proper struct alt_instr.flags which controls different aspects of
insn patching behavior

----------------------------------------------------------------
Borislav Petkov (AMD) (1):
x86/alternatives: Add alt_instr.flags

Peter Zijlstra (3):
x86/alternatives: Introduce int3_emulate_jcc()
x86/alternatives: Teach text_poke_bp() to patch Jcc.d32 instructions
x86/static_call: Add support for Jcc tail-calls

arch/x86/include/asm/alternative.h | 132 +++++++++++++++-----------
arch/x86/include/asm/text-patching.h | 31 ++++++
arch/x86/kernel/alternative.c | 76 ++++++++++-----
arch/x86/kernel/kprobes/core.c | 38 ++------
arch/x86/kernel/static_call.c | 50 +++++++++-
tools/objtool/arch/x86/include/arch/special.h | 6 +-
6 files changed, 218 insertions(+), 115 deletions(-)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette