]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 4 Apr 2019 12:20:05 +0000 (12:20 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Apr 2019 20:57:19 +0000 (06:57 +1000)
commitdd9a994fc68d196a052b73747e3366c57d14a09e
tree9efe2bd04bd1b13af611d8ef231a145b7396231b
parentfd427103e8dfcb4b438269afd710b63e7af61463
powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64

Commit b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC
inconsistencies across Y2038") changed the type of wtom_clock_sec
to s64 on PPC64. Therefore, VDSO32 needs to read it with a 4 bytes
shift in order to retrieve the lower part of it.

Fixes: b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038")
Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/vdso32/gettimeofday.S