]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix conversion of addresses to linear in 32-bit protected mode
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Feb 2016 17:07:21 +0000 (18:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2016 13:47:45 +0000 (14:47 +0100)
commita9e76d811813a80e993683a79c4fdc5fe605f31c
treeb7cdb81b498534c3deb7c8685405824ab1fb5b86
parent11c5bfeaaa04ad2df9b95c5ebfb6cdf98a6a8f5a
KVM: x86: fix conversion of addresses to linear in 32-bit protected mode

Commit 3276e6c9cb5f ("Silence compiler warning in arch/x86/kvm/emulate.c",
2015-09-06) broke boot of the Hurd.  The bug is that the "default:"
case actually could modify "la", but after the patch this change is
not reflected in *linear.

The bug is visible whenever a non-zero segment base causes the linear
address to wrap around the 4GB mark.

Fixes: 3276e6c9cb5fed053212a5dc72308ce34c10c732
Cc: stable@vger.kernel.org
Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c