x86 fixes
Subsystems (2)
Linus,
Please pull the latest x86-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus
# HEAD: a006483b2f97af685f0e60f3a547c9ad4c9b9e94 x86/CPU/AMD: Ensure clearing of SME/SEV features is maintained
Misc fixes:
- a resctrl fix for uninitialized objects found by debugobjects,
- a resctrl memory leak fix,
- fix the unintended re-enabling of the of SME and SEV CPU flags if memory encryption was disabled at bootup via the MSR space.
Thanks,
Ingo
------------------>
Qian Cai (1):
x86/resctrl: Fix an imbalance in domain_remove_cpu()
Shakeel Butt (1):
x86/resctrl: Fix potential memory leak
Tom Lendacky (1):
x86/CPU/AMD: Ensure clearing of SME/SEV features is maintained
arch/x86/kernel/cpu/amd.c | 4 ++-- arch/x86/kernel/cpu/resctrl/core.c | 2 +- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
arch/x86/kernel/cpu/amd.c +2 -2
@@ -615,9 +615,9 @@ static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)return ; clear_all: -clear_cpu_cap (c,X86_FEATURE_SME ); +setup_clear_cpu_cap (X86_FEATURE_SME ); clear_sev: -clear_cpu_cap (c,X86_FEATURE_SEV ); +setup_clear_cpu_cap (X86_FEATURE_SEV ); } }
arch/x86/kernel/cpu/resctrl/core.c +1 -1
@@ -618,7 +618,7 @@ static void domain_remove_cpu(int cpu, struct rdt_resource *r)if (static_branch_unlikely (&rdt_mon_enable_key))rmdir_mondata_subdir_allrdtgrp (r, d->id);list_del (&d->list); -if (is_mbm_enabled ()) +if (r->mon_capable &&is_mbm_enabled ())cancel_delayed_work (&d->mbm_over);if (is_llc_occupancy_enabled () &&has_busy_rmid (r, d)) {/*
arch/x86/kernel/cpu/resctrl/rdtgroup.c +3 -3
@@ -1741,9 +1741,6 @@ static int set_cache_qos_cfg(int level, bool enable)struct rdt_domain *d;int cpu; -if (!zalloc_cpumask_var (&cpu_mask,GFP_KERNEL )) -return -ENOMEM ; -if (level ==RDT_RESOURCE_L3 ) update = l3_qos_cfg_update;else if (level ==RDT_RESOURCE_L2 )
@@ -1751,6 +1748,9 @@ static int set_cache_qos_cfg(int level, bool enable)else return -EINVAL ; +if (!zalloc_cpumask_var (&cpu_mask,GFP_KERNEL )) +return -ENOMEM ; + r_l = &rdt_resources_all[level];list_for_each_entry (d, &r_l->domains, list) {/* Pick one CPU from each domain instance to update MSR */
The pull request you sent on Sat, 18 Jan 2020 19:52:58 +0100:
The pull request you sent on Sat, 18 Jan 2020 19:52:58 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitx86-urgent-for-linus
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/0cc2682d8baaa6c7383e40153afc19239ad28d77
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/prtracker