Re: [PATCH] lib/vdso: use CLOCK_REALTIME_COARSE for time()

From: Thomas Gleixner
Date: Thu Jun 11 2020 - 15:34:11 EST


Mark Salyzyn <salyzyn@xxxxxxxxxxx> writes:
> From: Chiawei Wang <chiaweiwang@xxxxxxxxxx>
>
> CLOCK_REALTIME in vdso data won't be updated if
> __arch_use_vsyscall() returns false.

Errm!

# git grep __arch_use_vsyscall
#

Aside of that update_vsyscall() updates CLOCK_REALTIME data
unconditionally. No idea what this patch is solving.

> Cc: stable@xxxxxxxxxxxxxxx # 5.4+

This # 5.4+ is pointless. You really want to add a fixes tag which pin
points the commit which introduced the wreckage.

But thats moot as this is not fixing anything not even in 5.4.

I assume this was developed against some Frankenkernel which has a messy
backport or a snapshot of some development version of that vdso stuff.

Not that I want to know, but please make sure that something you send my
way makes sense on sane kernels.

Oh well.

Thanks,

tglx