summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2019-10-24 11:28:29 +0800
committerThomas Gleixner <tglx@linutronix.de>2019-11-04 23:02:53 +0100
commit52338415cf4d4064ae6b8dd972dadbda841da4fa (patch)
tree963f580852fda99183be99a2e7700b39c7d54da5 /fs
parentd7e8d149c5f3774fd8d422364c38afb69501ccb0 (diff)
downloadlinux-52338415cf4d4064ae6b8dd972dadbda841da4fa.tar.bz2
timekeeping/vsyscall: Update VDSO data unconditionally
The update of the VDSO data is depending on __arch_use_vsyscall() returning True. This is a leftover from the attempt to map the features of various architectures 1:1 into generic code. The usage of __arch_use_vsyscall() in the actual vsyscall implementations got dropped and replaced by the requirement for the architecture code to return U64_MAX if the global clocksource is not usable in the VDSO. But the __arch_use_vsyscall() check in the update code stayed which causes the VDSO data to be stale or invalid when an architecture actually implements that function and returns False when the current clocksource is not usable in the VDSO. As a consequence the VDSO implementations of clock_getres(), time(), clock_gettime(CLOCK_.*_COARSE) operate on invalid data and return bogus information. Remove the __arch_use_vsyscall() check from the VDSO update function and update the VDSO data unconditionally. [ tglx: Massaged changelog and removed the now useless implementations in asm-generic/ARM64/MIPS ] Fixes: 44f57d788e7deecb50 ("timekeeping: Provide a generic update_vsyscall() implementation") Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/1571887709-11447-1-git-send-email-chenhc@lemote.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions