Skip to contentSkip to conversation

RAS updates for v5.16

GIT PULL Merged Borislav Petkov 2 participants 2 messages Nov 1, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Linus,

please pull a couple of RAS updates for 5.16.

As Thomas already mentioned, this branch has a merge conflict with x86/fpu and will conflict in a different way, depending on what you merge first.

I've added the resolve we've been doing in the tip tree at the end of this message too, for your convenience.

Thx.

---

The following changes since commit e4e737bb5c170df6135a127739a9e6148ee3da82:

Linux 5.15-rc2 (2021-09-19 17:28:22 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/ras_core_for_v5.16_rc1

for you to fetch changes up to 15802468a95bd8ec9060eb861468f4a0f0106fa4:

x86/mce: Sort mca_config members to get rid of unnecessary padding (2021-09-23 11:38:04 +0200)

----------------------------------------------------------------
- Get rid of a bunch of function pointers used in MCA land in favor of normal functions. This is in preparation of making the MCA code noinstr-aware

- When the kernel copies data from user addresses and it encounters a machine check, a SIGBUS is sent to that process. Change this action to either an -EFAULT which is returned to the user or a short write, making the recovery action a lot more user-friendly

----------------------------------------------------------------
Borislav Petkov (5):
x86/mce: Get rid of the mce_severity function pointer x86/mce: Get rid of machine_check_vector
x86/mce: Get rid of msr_ops
x86/mce: Get rid of the ->quirk_no_way_out() indirect call x86/mce: Sort mca_config members to get rid of unnecessary padding

Tony Luck (2):
x86/mce: Change to not send SIGBUS error during copy from user x86/mce: Drop copyin special case for #MC

 arch/x86/include/asm/mce.h         |  12 --
 arch/x86/kernel/cpu/mce/amd.c      |  10 +-
 arch/x86/kernel/cpu/mce/core.c     | 252 ++++++++++++++++---------------------
 arch/x86/kernel/cpu/mce/internal.h |  59 ++++++---
 arch/x86/kernel/cpu/mce/p5.c       |   6 +-
 arch/x86/kernel/cpu/mce/severity.c |  11 +-
 arch/x86/kernel/cpu/mce/winchip.c  |   6 +-
 arch/x86/lib/copy_user_64.S        |  13 --
 8 files changed, 161 insertions(+), 208 deletions(-)

---

Merge conflict resolve:

arch/x86/kernel/cpu/mce/internal.h +0 -0
diff --cc arch/x86/kernel/cpu/mce/internal.h
index 37b9e381ef02,3463f8cedb32..acd61c41846c
@@@ -190,31 -183,7 +190,21 @@@ extern bool filter_mce(struct mce *m)
  #ifdef CONFIG_X86_MCE_AMD
  extern bool amd_filter_mce(struct mce *m);
  #else
- static inline bool amd_filter_mce(struct mce *m)			{ return false; };
+ static inline bool amd_filter_mce(struct mce *m) { return false; }
  #endif
  
- __visible bool ex_handler_rdmsr_fault(const struct exception_table_entry *fixup,
- 				      struct pt_regs *regs, int trapnr,
- 				      unsigned long error_code,
- 				      unsigned long fault_addr);
- 
- __visible bool ex_handler_wrmsr_fault(const struct exception_table_entry *fixup,
- 				      struct pt_regs *regs, int trapnr,
- 				      unsigned long error_code,
- 				      unsigned long fault_addr);
- 
 +#ifdef CONFIG_X86_ANCIENT_MCE
 +void intel_p5_mcheck_init(struct cpuinfo_x86 *c);
 +void winchip_mcheck_init(struct cpuinfo_x86 *c);
 +noinstr void pentium_machine_check(struct pt_regs *regs);
 +noinstr void winchip_machine_check(struct pt_regs *regs);
 +static inline void enable_p5_mce(void) { mce_p5_enabled = 1; }
 +#else
 +static inline void intel_p5_mcheck_init(struct cpuinfo_x86 *c) {}
 +static inline void winchip_mcheck_init(struct cpuinfo_x86 *c) {}
 +static inline void enable_p5_mce(void) {}
 +static inline void pentium_machine_check(struct pt_regs *regs) {}
 +static inline void winchip_machine_check(struct pt_regs *regs) {}
 +#endif
 +
  #endif /* __X86_MCE_INTERNAL_H__ */
Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg
merge bot Merged
#1 lore raw
The pull request you sent on Mon, 1 Nov 2021 10:36:36 +0100:

The pull request you sent on Mon, 1 Nov 2021 10:36:36 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/ras_core_for_v5.16_rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/158405e888133f89dc9ec3e179c33544acdcf22a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html