]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/vdso32: Fallback on getres syscall when clock is unknown
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 9 May 2020 09:42:14 +0000 (09:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:22:29 +0000 (08:22 +0200)
commit249b99a8d8d0f19f4694f4c8f05bc6ec7921c425
tree401429099a6da0746271ed98045a6f2d97e62253
parent81f275dfd2cb3ad8d9723b8f3b71e1a13894fd5b
powerpc/vdso32: Fallback on getres syscall when clock is unknown

commit e963b7a28b2bf2416304e1a15df967fcf662aff5 upstream.

There are other clocks than the standard ones, for instance
per process clocks. Therefore, being above the last standard clock
doesn't mean it is a bad clock. So, fallback to syscall instead
of returning -EINVAL inconditionaly.

Fixes: e33ffc956b08 ("powerpc/vdso32: implement clock_getres entirely")
Cc: stable@vger.kernel.org # v5.6+
Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Link: https://lore.kernel.org/r/7316a9e2c0c2517923eb4b0411c4a08d15e675a4.1589017281.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/vdso32/gettimeofday.S