On 10/22/24 05:01, Yury Khrustalev wrote: > diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h > index 6ce1f1ceb432..ea40e27e6dea 100644 > --- a/include/uapi/asm-generic/mman-common.h > +++ b/include/uapi/asm-generic/mman-common.h > @@ -82,6 +82,7 @@ > /* compatibility flags */ > #define MAP_FILE 0 > > +#define PKEY_UNRESTRICTED 0x0 > #define PKEY_DISABLE_ACCESS 0x1 > #define PKEY_DISABLE_WRITE 0x2 > #define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\ It seems sane, but it would be nice to have at least site or two use it in the kernel so show that it's useful in practice. Is there any kernel code or anything in selftests/ that would be improved with this? That said, it's pretty harmless: Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>