diff options
author | David Hildenbrand <[email protected]> | 2021-09-09 16:59:42 +0200 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2021-09-15 14:29:21 +0200 |
commit | a8b92b8c1eac8d655a97b1e90f4d83c25d9b9a18 (patch) | |
tree | efc9ffdd54542816652aa34d9daa2b8230e375e6 /tools/perf/scripts/python/bin/netdev-times-record | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
s390/pci_mmio: fully validate the VMA before calling follow_pte()
We should not walk/touch page tables outside of VMA boundaries when
holding only the mmap sem in read mode. Evil user space can modify the
VMA layout just before this function runs and e.g., trigger races with
page table removal code since commit dd2283f2605e ("mm: mmap: zap pages
with read mmap_sem in munmap").
find_vma() does not check if the address is >= the VMA start address;
use vma_lookup() instead.
Reviewed-by: Niklas Schnelle <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Fixes: dd2283f2605e ("mm: mmap: zap pages with read mmap_sem in munmap")
Signed-off-by: David Hildenbrand <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/netdev-times-record')
0 files changed, 0 insertions, 0 deletions