linux_dsm_epyc7002/arch/x86/vdso
Radim Krčmář 80f7fdb1c7 x86: vdso: fix pvclock races with task migration
If we were migrated right after __getcpu, but before reading the
migration_count, we wouldn't notice that we read TSC of a different
VCPU, nor that KVM's bug made pvti invalid, as only migration_count
on source VCPU is increased.

Change vdso instead of updating migration_count on destination.

Cc: stable@vger.kernel.org
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Fixes: 0a4e6be9ca ("x86: kvm: Revert "remove sched notifier for cross-cpu migrations"")
Message-Id: <1428000263-11892-1-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-04-08 10:46:55 +02:00
..
vdso32 x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
.gitignore x86, vdso: Reimplement vdso.so preparation in build-time C 2014-05-05 13:18:51 -07:00
checkundef.sh x86, vdso: Don't quote $nm in the script for checking vdso references 2010-07-27 23:52:29 -07:00
Makefile x86_64: add KASan support 2015-02-13 21:21:41 -08:00
vclock_gettime.c x86: vdso: fix pvclock races with task migration 2015-04-08 10:46:55 +02:00
vdso2c.c x86, vdso: Get rid of the fake section mechanism 2014-07-11 16:58:07 -07:00
vdso2c.h x86/vdso: Fix vdso2c's special_pages[] error checking 2014-09-24 09:55:38 +02:00
vdso32-setup.c arm64,ia64,ppc,s390,sh,tile,um,x86,mm: remove default gate area 2014-08-08 15:57:27 -07:00
vdso-layout.lds.S x86, vdso: Move the vvar area before the vdso text 2014-07-11 16:57:51 -07:00
vdso-note.S x86_64: move vdso 2007-10-11 11:17:10 +02:00
vdso.lds.S x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vdsox32.lds.S x86/vdso: Improve the fake section headers 2014-06-19 15:45:12 -07:00
vgetcpu.c x86,vdso: Use LSL unconditionally for vgetcpu 2014-11-03 13:41:53 +01:00
vma.c x86_64, vdso: Fix the vdso address randomization algorithm 2014-12-20 16:56:57 -08:00