ANDROID: 16K: Remove anon name for fixup VMA

This is s preparatory patch to fix the alingnment in anon vma
naming -- which can cause non-__PAGE_ALIGNED splits.

These VMAs are hidden from /pid/*/[s]maps, and name was mostly
used for early debugging, remove it.

Bug: 383389337
Bug: 302403436
Bug: 315325080
Change-Id: Iece9c91a29b4be54f1ec33be1714b5666a29b12e
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
Kalesh Singh
2024-03-19 22:14:10 -07:00
committed by Carlos Llamas
parent f7f25a5b1a
commit 68e0528b38

View File

@@ -10,7 +10,6 @@
#include <linux/init.h>
#include <linux/kstrtox.h>
#include <linux/mm.h>
#include <linux/mm_inline.h>
#include <linux/page_size_compat.h>
#define MIN_PAGE_SHIFT_COMPAT (PAGE_SHIFT + 1)
@@ -138,14 +137,4 @@ void ___filemap_fixup(unsigned long addr, unsigned long prot, unsigned long old_
anon_addr = do_mmap(NULL, anon_addr, anon_len, prot,
MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED|__MAP_NO_COMPAT,
0, 0, &populate, NULL);
if (!IS_ERR_VALUE(anon_addr)) {
struct anon_vma_name *anon_name = anon_vma_name_alloc("filemap_fixup");
if (!anon_name)
return;
/* Label the fixup VMA */
madvise_set_anon_name(mm, anon_addr, anon_len, anon_name);
}
}