]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: compat: Fix syscall number of compat_clock_getres
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Thu, 19 Mar 2020 14:11:38 +0000 (14:11 +0000)
committerWill Deacon <will@kernel.org>
Thu, 19 Mar 2020 19:23:46 +0000 (19:23 +0000)
The syscall number of compat_clock_getres was erroneously set to 247
(__NR_io_cancel!) instead of 264. This causes the vDSO fallback of
clock_getres() to land on the wrong syscall for compat tasks.

Fix the numbering.

Cc: <stable@vger.kernel.org>
Fixes: 53c489e1dfeb6 ("arm64: compat: Add missing syscall numbers")
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/unistd.h

index 1dd22da1c3a95985ad22331c5f59975edefedf6a..803039d504de609b188e62abd2fc102f00d73db5 100644 (file)
@@ -25,8 +25,8 @@
 #define __NR_compat_gettimeofday       78
 #define __NR_compat_sigreturn          119
 #define __NR_compat_rt_sigreturn       173
-#define __NR_compat_clock_getres       247
 #define __NR_compat_clock_gettime      263
+#define __NR_compat_clock_getres       264
 #define __NR_compat_clock_gettime64    403
 #define __NR_compat_clock_getres_time64        406