aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSuren Baghdasaryan <[email protected]>2020-01-27 15:56:16 -0800
committerGreg Kroah-Hartman <[email protected]>2020-02-10 08:49:11 -0800
commit6d67b0290b4b84c477e6a2fc6e005e174d3c7786 (patch)
treec077940131b26debb4102649c5d97564cc0cb6eb /tools/perf/scripts/python/export-to-sqlite.py
parent93134df520f23f4e9998c425b8987edca7016817 (diff)
staging: android: ashmem: Disallow ashmem memory from being remapped
When ashmem file is mmapped, the resulting vma->vm_file points to the backing shmem file with the generic fops that do not check ashmem permissions like fops of ashmem do. If an mremap is done on the ashmem region, then the permission checks will be skipped. Fix that by disallowing mapping operation on the backing shmem file. Reported-by: Jann Horn <[email protected]> Signed-off-by: Suren Baghdasaryan <[email protected]> Cc: stable <[email protected]> # 4.4,4.9,4.14,4.18,5.4 Signed-off-by: Todd Kjos <[email protected]> Reviewed-by: Joel Fernandes (Google) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions