aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/module-plts.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2021-09-09 16:59:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-26 14:08:55 +0200
commit79286ea830b3922b38bcefbd150b2010f91a55ce (patch)
tree7ef7be05026d71a89636848bfe302820788a39c8 /arch/arm/kernel/module-plts.c
parent74d54e5ceba3f50b9b695e4740172d876327815a (diff)
downloadkernel_replicant_linux-79286ea830b3922b38bcefbd150b2010f91a55ce.tar.gz
kernel_replicant_linux-79286ea830b3922b38bcefbd150b2010f91a55ce.tar.bz2
kernel_replicant_linux-79286ea830b3922b38bcefbd150b2010f91a55ce.zip
s390/pci_mmio: fully validate the VMA before calling follow_pte()
commit a8b92b8c1eac8d655a97b1e90f4d83c25d9b9a18 upstream. 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 <schnelle@linux.ibm.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Fixes: dd2283f2605e ("mm: mmap: zap pages with read mmap_sem in munmap") Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/kernel/module-plts.c')
0 files changed, 0 insertions, 0 deletions