forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit7b75cd5
Alexandru Elisei
Marc Zyngier
KVM: arm64: Update page shift if stage 2 block mapping not supported
Commit196f878 (" KVM: arm/arm64: Signal SIGBUS when stage2 discovershwpoison memory") modifies user_mem_abort() to send a SIGBUS signal whenthe fault IPA maps to a hwpoisoned page. Commit1559b75 ("KVM:arm/arm64: Re-check VMA on detecting a poisoned page") changedkvm_send_hwpoison_signal() to use the page shift instead of the VMA becauseat that point the code had already released the mmap lock, which meansuserspace could have modified the VMA.If userspace uses hugetlbfs for the VM memory, user_mem_abort() tries tomap the guest fault IPA using block mappings in stage 2. That is not alwayspossible, if, for example, userspace uses dirty page logging for the VM.Update the page shift appropriately in those cases when we downgrade thestage 2 entry from a block mapping to a page.Fixes:1559b75 ("KVM: arm/arm64: Re-check VMA on detecting a poisoned page")Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>Signed-off-by: Marc Zyngier <maz@kernel.org>Reviewed-by: Gavin Shan <gshan@redhat.com>Link:https://lore.kernel.org/r/20200901133357.52640-2-alexandru.elisei@arm.com1 parent376426b commit7b75cd5
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
| 1874 | + | |
1874 | 1875 | | |
1875 | 1876 | | |
1876 | 1877 | | |
| |||
0 commit comments
Comments
(0)