x86/urgent for v5.10-rc6
Hi Linus,
please pull a couple of urgent fixes which accumulated this last week.
Thx.
---
The following changes since commit 418baf2c28f3473039f2f7377760bd8f6897ae18:
Linux 5.10-rc5 (2020-11-22 15:36:08 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_urgent_for_v5.10-rc6
for you to fetch changes up to 25bc65d8ddfc17cc1d7a45bd48e9bdc0e729ced3:
x86/mce: Do not overwrite no_way_out if mce_end() fails (2020-11-27 17:38:36 +0100)
----------------------------------------------------------------
- Two resctrl fixes to prevent refcount leaks when manipulating the resctrl fs (Xiaochen Shen)
- Correct prctl(PR_GET_SPECULATION_CTRL) reporting (Anand K Mistry)
- A fix to not lose already seen MCE severity which determines whether the machine can recover (Gabriele Paoloni)
----------------------------------------------------------------
Anand K Mistry (1):
x86/speculation: Fix prctl() when spectre_v2_user={seccomp,prctl},ibpb
Gabriele Paoloni (1):
x86/mce: Do not overwrite no_way_out if mce_end() fails
Xiaochen Shen (2):
x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leak x86/resctrl: Add necessary kernfs_put() calls to prevent refcount leak
arch/x86/kernel/cpu/bugs.c | 4 +-- arch/x86/kernel/cpu/mce/core.c | 6 ++-- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 65 ++++++++++++++-------------------- 3 files changed, 32 insertions(+), 43 deletions(-)
arch/x86/kernel/cpu/bugs.c +2 -2
@@ -739,11 +739,13 @@ spectre_v2_user_select_mitigation(enum spectre_v2_mitigation_cmd v2_cmd)if (boot_cpu_has (X86_FEATURE_IBPB )) {setup_force_cpu_cap (X86_FEATURE_USE_IBPB ); + spectre_v2_user_ibpb = mode;switch (cmd) {case SPECTRE_V2_USER_CMD_FORCE :case SPECTRE_V2_USER_CMD_PRCTL_IBPB :case SPECTRE_V2_USER_CMD_SECCOMP_IBPB :static_branch_enable (&switch_mm_always_ibpb); + spectre_v2_user_ibpb =SPECTRE_V2_USER_STRICT ;break ;case SPECTRE_V2_USER_CMD_PRCTL :case SPECTRE_V2_USER_CMD_AUTO :
@@ -757,8 +759,6 @@ spectre_v2_user_select_mitigation(enum spectre_v2_mitigation_cmd v2_cmd)pr_info ("mitigation: Enabling %s Indirect Branch Prediction Barrier\n" ,static_key_enabled (&switch_mm_always_ibpb) ?"always-on" :"conditional" ); - - spectre_v2_user_ibpb = mode; }/*
arch/x86/kernel/cpu/mce/core.c +4 -2
@@ -1384,8 +1384,10 @@ noinstr void do_machine_check(struct pt_regs *regs)* When there's any problem use only local no_way_out state. */ if (!lmce) { -if (mce_end (order) <0 ) - no_way_out = worst >=MCE_PANIC_SEVERITY ; +if (mce_end (order) <0 ) { +if (!no_way_out) + no_way_out = worst >=MCE_PANIC_SEVERITY ; + } }else {/* * If there was a fatal machine check we should have
arch/x86/kernel/cpu/resctrl/rdtgroup.c +26 -39
166 lines not on this page · raw message
Signature · 4 lines
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG NürnbergThe pull request you sent on Sun, 29 Nov 2020 11:38:44 +0100:
The pull request you sent on Sun, 29 Nov 2020 11:38:44 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gittags/x86_urgent_for_v5.10-rc6
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7255a39d24a7960da3a55e840ca5cbed5fcb476f
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html