Re: [PATCH v9 2/3] mm: add a field to store names for private anonymous memory

From: Kees Cook
Date: Fri Oct 01 2021 - 01:21:51 EST


On Thu, Sep 30, 2021 at 08:44:25PM -0700, Suren Baghdasaryan wrote:
> While testing v10 I found one case when () are used in the name
> "dalvik-main space (region space)". So I can add ` and $ to the
> restricted set but not ( and ). Kees, would you be happy with:
>
> static inline bool is_valid_name_char(char ch)
> {
> return ch > 0x1f && ch < 0x7f && !strchr("\\`$[]", ch);
> }
>
> ?

That works for me! :)

--
Kees Cook