aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2017-10-30 21:23:19 +0000
committerWill Deacon <[email protected]>2017-10-31 09:49:33 +0000
commitc80ed088a519da53f27b798a69748eaabc66aadf (patch)
treec46b7d933904bf8dc37f1f2f05520ff54922c28c /tools/perf/scripts/python/check-perf-trace.py
parentfd9dde6abcb9bfe6c6bee48834e157999f113971 (diff)
arm64: vdso: fix clock_getres for 4GiB-aligned res
The vdso tries to check for a NULL res pointer in __kernel_clock_getres, but only checks the lower 32 bits as is uses CBZ on the W register the res pointer is held in. Thus, if the res pointer happened to be aligned to a 4GiB boundary, we'd spuriously skip storing the timespec to it, while returning a zero error code to the caller. Prevent this by checking the whole pointer, using CBZ on the X register the res pointer is held in. Fixes: 9031fefde6f2ac1d ("arm64: VDSO support") Signed-off-by: Mark Rutland <[email protected]> Reported-by: Andrew Pinski <[email protected]> Reported-by: Mark Salyzyn <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions