]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vdso: Fix vDSO syscall fallback asm constraint regression
authorAndy Lutomirski <luto@kernel.org>
Wed, 3 Oct 2018 23:23:49 +0000 (16:23 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 4 Oct 2018 06:17:50 +0000 (08:17 +0200)
commitc146adeeefa07b4d34d926cf27153a60d91de65c
tree4694f40f6acceb4c1715cc8b9e1b08ee19eaf014
parentae0d40f3a903f9f7cccdf0974b60de1f1b68730c
x86/vdso: Fix vDSO syscall fallback asm constraint regression

When I added the missing memory outputs, I failed to update the
index of the first argument (ebx) on 32-bit builds, which broke the
fallbacks.  Somehow I must have screwed up my testing or gotten
lucky.

Add another test to cover gettimeofday() as well.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Fixes: d5b4aa400ae4 ("x86/vdso: Fix asm constraints on vDSO syscall fallbacks")
Link: http://lkml.kernel.org/r/21bd45ab04b6d838278fa5bebfa9163eceffa13c.1538608971.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/vdso/vclock_gettime.c
tools/testing/selftests/x86/test_vdso.c