commit 04d5eb7c76580f5757b6968ad2fe8707a980532f Author: Alexandre Frade Date: Thu Jun 18 10:52:51 2020 -0300 Linux 5.7.4-xanmod1 Signed-off-by: Alexandre Frade commit 7e32038e00d4f72906723dc5303251204229d393 Merge: d061306374aa 901e2c6cc177 Author: Alexandre Frade Date: Thu Jun 18 10:52:17 2020 -0300 Merge tag 'v5.7.4' into 5.7 This is the 5.7.4 stable release commit 901e2c6cc177dd4151a4c88c62948703caa160cb Author: Greg Kroah-Hartman Date: Thu Jun 18 14:31:08 2020 +0200 Linux 5.7.4 commit 72b01e01812e774e8aece494c845dadf86825168 Author: Thomas Gleixner Date: Sat Jun 6 23:51:16 2020 +0200 lib/vdso: Provide sanity check for cycles (again) commit 72ce778007e57e8996b4bebdec738fc5e1145fd2 upstream. The original x86 VDSO implementation checked for the validity of the clock source read by testing whether the returned signed cycles value is less than zero. This check was also used by the vdso read function to signal that the current selected clocksource is not VDSO capable. During the rework of the VDSO code the check was removed and replaced with a check for the clocksource mode being != NONE. This turned out to be a mistake because the check is necessary for paravirt and hyperv clock sources. The reason is that these clock sources have their own internal sequence counter to validate the clocksource at the point of reading it. This is necessary because the hypervisor can invalidate the clocksource asynchronously so a check during the VDSO data update is not sufficient. Having a separate indicator for the validity is slower than just validating the cycles value. The check for it being negative turned out to be the fastest implementation and safe as it would require an uptime of ~73 years with a 4GHz counter frequency to result in a false positive. Add an optional function to validate the cycles with a default implementation which allows the compiler to optimize it out for architectures which do not require it. Fixes: 5d51bee725cc ("clocksource: Add common vdso clock mode storage") Reported-by: Miklos Szeredi Signed-off-by: Thomas Gleixner Tested-by: Miklos Szeredi Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20200606221531.963970768@linutronix.de Signed-off-by: Greg Kroah-Hartman commit d061306374aae02b4890eda8a49010c6b8d214d1 Author: Alexandre Frade Date: Wed Jun 17 13:57:33 2020 -0300 Linux 5.7.3-xanmod1 Signed-off-by: Alexandre Frade commit e690d1529bf68b5994749463635658c30bc82d27 Merge: 5d808274eaa0 264e468fc201 Author: Alexandre Frade Date: Wed Jun 17 13:56:31 2020 -0300 Merge tag 'v5.7.3' into 5.7 This is the 5.7.3 stable release