]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vdso/pvclock: Protect STABLE check with the seqcount
authorAndy Lutomirski <luto@kernel.org>
Mon, 4 Jan 2016 23:14:28 +0000 (15:14 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Jan 2016 10:46:29 +0000 (11:46 +0100)
commit58f284ff93fa983b1e5e02a3b8da40f59619d81c
treef3f3325a926eab379f0451264a20a3536a911eb3
parent771e0ef1266c96f7c2813dc23f8c9286cac939ee
x86/vdso/pvclock: Protect STABLE check with the seqcount

If the clock becomes unstable while we're reading it, we need to
bail.  We can do this by simply moving the check into the
seqcount loop.

Reported-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Alexander Graf <agraf@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Radim Krcmar <rkrcmar@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/755dcedb17269e1d7ce12a9a713dea303835137e.1451949191.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/vdso/vclock_gettime.c