]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: mmu: Verify that restored PTE has needed perms in fast page fault
authorJunaid Shahid <junaids@google.com>
Thu, 22 Dec 2016 04:29:32 +0000 (20:29 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 14:46:40 +0000 (15:46 +0100)
commit451d878080613d62a219ba808e893be5a4835239
tree31891cea71837f04ce0cde26826b2054c60ef906
parentf7b247bd04e64d7f6009d1e07c25b6be9f63cf3d
kvm: x86: mmu: Verify that restored PTE has needed perms in fast page fault

Before fast page fault restores an access track PTE back to a regular PTE,
it now also verifies that the restored PTE would grant the necessary
permissions for the faulting access to succeed. If not, it falls back
to the slow page fault path.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c