ANDROID: Change anon vma name limit from 80 to 256

Android uses vma names of up to 256 characters. Change the max limit
for anonymous vma names to support Android legacy use cases.

Bug: 120441514
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia0126ab3919281ce4d5c597a43a47de80eadf71a
This commit is contained in:
Suren Baghdasaryan
2021-10-01 13:05:47 -07:00
parent 2795c80c57
commit 2c37ba0309

View File

@@ -2265,7 +2265,7 @@ int __weak arch_prctl_spec_ctrl_set(struct task_struct *t, unsigned long which,
#ifdef CONFIG_ANON_VMA_NAME
#define ANON_VMA_NAME_MAX_LEN 80
#define ANON_VMA_NAME_MAX_LEN 256
#define ANON_VMA_NAME_INVALID_CHARS "\\`$[]"
static inline bool is_valid_name_char(char ch)