]> 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)
commit2e4cb40e675babb180a396097743606cd2b029b6
tree31891cea71837f04ce0cde26826b2054c60ef906
parent8ff8e355af637dbdeec50296cdca7ae1ca4049b9
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