[PATCH 0/3] x86/mce: Fix more noinstr fun

From: Borislav Petkov
Date: Fri Feb 04 2022 - 03:30:31 EST


From: Borislav Petkov <bp@xxxxxxx>

Hi all,

here's a second small set of fixes for objtool noinstr validation issues
in the MCE code.

It goes ontop of tip:locking/core where there are some more commits
changing generic helpers to be always inlined.

As always, comments and suggestions are appreciated.

Thx.

Borislav Petkov (3):
cpumask: Add a x86-specific cpumask_clear_cpu() helper
x86/ptrace: Always inline v8086_mode() for instrumentation
x86/mce: Use arch atomic and bit helpers

arch/x86/include/asm/cpumask.h | 10 ++++++
arch/x86/include/asm/ptrace.h | 2 +-
arch/x86/kernel/cpu/mce/core.c | 58 ++++++++++--------------------
arch/x86/kernel/cpu/mce/internal.h | 23 ++++++++++--
arch/x86/kernel/cpu/mce/severity.c | 2 +-
include/linux/cpumask.h | 4 +--
6 files changed, 54 insertions(+), 45 deletions(-)

--
2.29.2