ANDROID: 16K: procfs: maps: Don't show fixup VMAs
Hide fixup VMAs from userspace which may parse maps to deduce inputs to other syscalls (such as madvise). The implicit __PAGE_ALIGN rounding on the length of the preceding adjacent VMA already covers any operations needed on the fixup VMAs Bug: 383389337 Bug: 315325080 Bug: 302403436 Change-Id: I2beef95474ced70d784213084c9b6e3d18f3ded2 Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
committed by
Carlos Llamas
parent
e076e9ff2c
commit
7dea17008f
@@ -17,6 +17,7 @@
|
||||
#include <linux/swapops.h>
|
||||
#include <linux/mmu_notifier.h>
|
||||
#include <linux/page_idle.h>
|
||||
#include <linux/page_size_compat.h>
|
||||
#include <linux/shmem_fs.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/pkeys.h>
|
||||
@@ -343,6 +344,11 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
|
||||
|
||||
start = vma->vm_start;
|
||||
end = vma->vm_end;
|
||||
|
||||
/* Skip page size fixup VMAs */
|
||||
if (flags & __VM_NO_COMPAT)
|
||||
return;
|
||||
|
||||
show_vma_header_prefix(m, start, end, flags, pgoff, dev, ino);
|
||||
|
||||
get_vma_name(vma, &path, &name, &name_fmt);
|
||||
|
||||
Reference in New Issue
Block a user