summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-01-30 17:07:21 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:29 +0100
commit71762f455a81141b5412b25d5edfb71f01e68bcf (patch)
treebd56924ed609994a8b542a7ea546b5b030ccace2 /kernel/workqueue.c
parentaa7a1bee54f98395cea97743cc7102783cf4939f (diff)
downloadlinux-71762f455a81141b5412b25d5edfb71f01e68bcf.tar.gz
linux-71762f455a81141b5412b25d5edfb71f01e68bcf.tar.bz2
linux-71762f455a81141b5412b25d5edfb71f01e68bcf.zip
perf/x86/intel: Ensure LBRs are disabled when a CPU is starting
commit c631a2de7ae48d50434bdc205d901423f8577c65 upstream. Explicitly clear DEBUGCTL.LBR when a CPU is starting, prior to purging the LBR MSRs themselves, as at least one system has been found to transfer control to the kernel with LBRs enabled (it's unclear whether it's a BIOS flaw or a CPU goof). Because the kernel preserves the original DEBUGCTL, even when toggling LBRs, leaving DEBUGCTL.LBR as is results in running with LBRs enabled at all times. Closes: https://lore.kernel.org/all/c9d8269bff69f6359731d758e3b1135dedd7cc61.camel@redhat.com Reported-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20250131010721.470503-1-seanjc@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions