]> git.itanic.dy.fi Git - linux-stable/commit
x86/vdso: Fix lsl operand order
authorSamuel Neves <sneves@dei.uc.pt>
Sat, 1 Sep 2018 20:14:52 +0000 (21:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:29:51 +0000 (09:29 +0200)
commitaa3ad43145515c29d2d1176288cbc5e2b5ae00e4
treee35e7c607a5a23e6212136a11012ee5a9599718a
parent306f625c2231b85b5c9bfcf9da964a6939ed9c6f
x86/vdso: Fix lsl operand order

commit e78e5a91456fcecaa2efbb3706572fe043766f4d upstream.

In the __getcpu function, lsl is using the wrong target and destination
registers. Luckily, the compiler tends to choose %eax for both variables,
so it has been working so far.

Fixes: a582c540ac1b ("x86/vdso: Use RDPID in preference to LSL when available")
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180901201452.27828-1-sneves@dei.uc.pt
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/vgtod.h