summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/namespace_devs.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-10-30 21:23:19 +0000
committerMark Salyzyn <salyzyn@google.com>2017-11-29 20:54:38 +0000
commit67a8ab4adc2d30e3f3442a0659b887b4da83f7c2 (patch)
tree038c678f87483fae2d3f1bacc2a6c405c9cb5bd8 /drivers/nvdimm/namespace_devs.c
parent353c16247d72937c90e7ef04cbd603502581019a (diff)
UPSTREAM: arm64: vdso: fix clock_getres for 4GiB-aligned res
(cherry pick from commit c80ed088a519da53f27b798a69748eaabc66aadf) 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 <mark.rutland@arm.com> Reported-by: Andrew Pinski <apinski@cavium.com> Reported-by: Mark Salyzyn <salyzyn@android.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Bug: 20045882 Bug: 63737556 Change-Id: Iab5449d8515f9d655e792e3d7ce43a8f016fa2a0
Diffstat (limited to 'drivers/nvdimm/namespace_devs.c')
0 files changed, 0 insertions, 0 deletions