Skip to content

Commit df50110

Browse files
committed
Merge tag 'perf-urgent-2021-06-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 perf fix from Ingo Molnar: "An LBR buffer fix for code that probably only worked accidentally" * tag 'perf-urgent-2021-06-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86/intel/lbr: Zero the xstate buffer on allocation
2 parents c0e4578 + 7f049fb commit df50110

File tree

1 file changed

+2
-1
lines changed
  • arch/x86/events/intel

1 file changed

+2
-1
lines changed

arch/x86/events/intel/lbr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ void reserve_lbr_buffers(void)
731731
if (!kmem_cache || cpuc->lbr_xsave)
732732
continue;
733733

734-
cpuc->lbr_xsave = kmem_cache_alloc_node(kmem_cache, GFP_KERNEL,
734+
cpuc->lbr_xsave = kmem_cache_alloc_node(kmem_cache,
735+
GFP_KERNEL | __GFP_ZERO,
735736
cpu_to_node(cpu));
736737
}
737738
}

0 commit comments

Comments
 (0)