Merge tag 'kvmarm-fixes-6.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmar...
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Mar 2023 14:03:16 +0000 (10:03 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Mar 2023 14:03:16 +0000 (10:03 -0400)
commit8607daa2145f277c2548eee22e9fa45dfecd8dea
treeda3d966ea5889ef16d11bcf3fff06239b22cc8ad
parentf3e707413dbe3920a972d0c2b51175180e7de36b
parent8c2e8ac8ad4be68409e806ce1cc78fc7a04539f3
Merge tag 'kvmarm-fixes-6.3-2' of git://git./linux/kernel/git/kvmarm/kvmarm into HEAD

KVM/arm64 fixes for 6.3, part #2

Fixes for a rather interesting set of bugs relating to the MMU:

 - Read the MMU notifier seq before dropping the mmap lock to guard
   against reading a potentially stale VMA

 - Disable interrupts when walking user page tables to protect against
   the page table being freed

 - Read the MTE permissions for the VMA within the mmap lock critical
   section, avoiding the use of a potentally stale VMA pointer

Additionally, some fixes targeting the vPMU:

 - Return the sum of the current perf event value and PMC snapshot for
   reads from userspace

 - Don't save the value of guest writes to PMCR_EL0.{C,P}, which could
   otherwise lead to userspace erroneously resetting the vPMU during VM
   save/restore