aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-tve.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2017-01-31 10:27:10 +0000
committerIngo Molnar <[email protected]>2017-02-10 08:04:50 +0000
commit451d24d1e5f40bad000fa9abe36ddb16fc9928cb (patch)
tree532b1fe208f3223a3b447f535f4a761f08c2527a /drivers/gpu/drm/imx/imx-tve.c
parentMerge tag 'perf-urgent-for-mingo-4.10-20170203' of git://git.kernel.org/pub/s... (diff)
downloadkernel-451d24d1e5f40bad000fa9abe36ddb16fc9928cb.tar.gz
kernel-451d24d1e5f40bad000fa9abe36ddb16fc9928cb.zip
perf/core: Fix crash in perf_event_read()
Alexei had his box explode because doing read() on a package (rapl/uncore) event that isn't currently scheduled in ends up doing an out-of-bounds load. Rework the code to more explicitly deal with event->oncpu being -1. Reported-by: Alexei Starovoitov <[email protected]> Tested-by: Alexei Starovoitov <[email protected]> Tested-by: David Carrillo-Cisneros <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Fixes: d6a2f9035bfc ("perf/core: Introduce PMU_EV_CAP_READ_ACTIVE_PKG") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-tve.c')
0 files changed, 0 insertions, 0 deletions