linux_dsm_epyc7002/arch/arm64/kernel/vdso
Mark Rutland c80ed088a5 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: 9031fefde6 ("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>
2017-10-31 09:49:33 +00:00
..
.gitignore arm64: drop non-existing vdso-offsets.h from .gitignore 2017-03-30 19:29:30 +01:00
gen_vdso_offsets.sh arm64: VDSO support 2012-09-17 13:42:09 +01:00
gettimeofday.S arm64: vdso: fix clock_getres for 4GiB-aligned res 2017-10-31 09:49:33 +00:00
Makefile arm64: fix vdso-offsets.h dependency 2016-07-11 17:10:11 +01:00
note.S arm64: VDSO support 2012-09-17 13:42:09 +01:00
sigreturn.S arm64: VDSO support 2012-09-17 13:42:09 +01:00
vdso.lds.S arm64: vdso: move data page before code pages 2014-07-17 16:18:57 +01:00
vdso.S arm64: vdso: Mark vDSO code as read-only 2016-02-16 18:20:23 +00:00