Skip to content

x86/mce: Fix more noinstr fun

Borislav Petkov lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3cpumask: Add a x86-specific cpumask_clear_cpu() helperarch/x86/include/asm/cpumask.h include/linux/cpumask.h+12 -22 replies
2/3x86/ptrace: Always inline v8086_mode() for instrumentationarch/x86/include/asm/ptrace.h+1 -10 replies
3/3x86/mce: Use arch atomic and bit helpersarch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/internal.h arch/x86/kernel/cpu/mce/severity.c+41 -420 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarco Elver
SeriesA-b
1/3
2/3
3/3

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 0/3] x86/mce: Fix more noinstr fun

From: Borislav Petkov <[email protected]>

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(-)
Signature · 1 line
2.29.2