forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit1559b75
James Morse
Marc Zyngier
KVM: arm/arm64: Re-check VMA on detecting a poisoned page
When we check for a poisoned page, we use the VMA to tell userspaceabout the looming disaster. But we pass a pointer to this VMAafter having released the mmap_sem, which isn't a good idea.Instead, stash the shift value that goes with this pfn whilewe are holding the mmap_sem.Reported-by: Marc Zyngier <maz@kernel.org>Signed-off-by: James Morse <james.morse@arm.com>Signed-off-by: Marc Zyngier <maz@kernel.org>Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>Link:https://lore.kernel.org/r/20191211165651.7889-3-maz@kernel.orgLink:https://lore.kernel.org/r/20191217123809.197392-1-james.morse@arm.com1 parentde93756 commit1559b75
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
1599 | | - | |
1600 | | - | |
| 1599 | + | |
1601 | 1600 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | 1601 | | |
1610 | 1602 | | |
1611 | 1603 | | |
| |||
1678 | 1670 | | |
1679 | 1671 | | |
1680 | 1672 | | |
| 1673 | + | |
1681 | 1674 | | |
1682 | 1675 | | |
1683 | 1676 | | |
| |||
1701 | 1694 | | |
1702 | 1695 | | |
1703 | 1696 | | |
1704 | | - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
1705 | 1703 | | |
1706 | 1704 | | |
1707 | 1705 | | |
| |||
1741 | 1739 | | |
1742 | 1740 | | |
1743 | 1741 | | |
1744 | | - | |
| 1742 | + | |
1745 | 1743 | | |
1746 | 1744 | | |
1747 | 1745 | | |
| |||
0 commit comments
Comments
(0)