android_kernel_xiaomi_sm7250/kernel/events
Sultan Alsawaf 3e0eb86439 perf/core: Fix risky smp_processor_id() usage in perf_event_read_local()
There's no requirement that perf_event_read_local() be used from a
context where CPU migration isn't possible, yet smp_processor_id() is
used with the assumption that the caller guarantees CPU migration can't
occur. Since IRQs are disabled here anyway, the smp_processor_id() can
simply be moved to the IRQ-disabled section to guarantee its safety.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2022-11-12 11:24:20 +00:00
..
callchain.c treewide: convert ISO_8859-1 text comments to utf-8 2018-08-23 18:48:43 -07:00
core.c perf/core: Fix risky smp_processor_id() usage in perf_event_read_local() 2022-11-12 11:24:20 +00:00
hw_breakpoint.c perf/hw_breakpoint: Fix arch_hw_breakpoint use-before-initialization 2019-10-17 13:45:44 -07:00
internal.h perf: Fix get_recursion_context() 2020-11-18 19:18:48 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ring_buffer.c perf/ring-buffer: Always use {READ,WRITE}_ONCE() for rb->user_page data 2019-06-22 08:15:16 +02:00
uprobes.c mm/mmap.c: use IS_ERR_VALUE to check return value of get_unmapped_area 2022-11-12 11:21:20 +00:00