aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2019-05-28 22:08:31 +0000
committerIngo Molnar <[email protected]>2019-06-24 17:19:24 +0000
commit90d424915ab6550826d297fd62df8ee255345b95 (patch)
treeaf69d593c50e2c5b974ecfbef2445ba667ac3d7c /lib/test_xarray.c
parentperf/x86: Disable extended registers for non-supported PMUs (diff)
downloadkernel-90d424915ab6550826d297fd62df8ee255345b95.tar.gz
kernel-90d424915ab6550826d297fd62df8ee255345b95.zip
perf/x86/regs: Check reserved bits
The perf fuzzer triggers a warning which map to: if (WARN_ON_ONCE(idx >= ARRAY_SIZE(pt_regs_offset))) return 0; The bits between XMM registers and generic registers are reserved. But perf_reg_validate() doesn't check these bits. Add PERF_REG_X86_RESERVED for reserved bits on X86. Check the reserved bits in perf_reg_validate(). Reported-by: Vince Weaver <[email protected]> Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Fixes: 878068ea270e ("perf/x86: Support outputting XMM registers") Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions