Message ID | 20250113170619.484698-1-yury.khrustalev@arm.com (mailing list archive) |
---|---|
Headers | show |
Series | mm/pkey: Add PKEY_UNRESTRICTED macro | expand |
On Mon, Jan 13, 2025 at 05:06:16PM +0000, Yury Khrustalev wrote: > Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. > > For context, this change will also allow for more consistent update of the > Glibc manual which in turn will help with introducing memory protection > keys on AArch64 targets. [...] > Yury Khrustalev (3): > mm/pkey: Add PKEY_UNRESTRICTED macro > selftests/mm: Use PKEY_UNRESTRICTED macro > selftests/powerpc: Use PKEY_UNRESTRICTED macro > > include/uapi/asm-generic/mman-common.h | 1 + > tools/testing/selftests/mm/mseal_test.c | 6 +++--- > tools/testing/selftests/mm/pkey-helpers.h | 3 ++- > tools/testing/selftests/mm/pkey_sighandler_tests.c | 4 ++-- > tools/testing/selftests/mm/protection_keys.c | 2 +- > tools/testing/selftests/powerpc/include/pkeys.h | 2 +- > tools/testing/selftests/powerpc/mm/pkey_exec_prot.c | 2 +- > tools/testing/selftests/powerpc/mm/pkey_siginfo.c | 2 +- > tools/testing/selftests/powerpc/ptrace/core-pkey.c | 6 +++--- > tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c | 6 +++--- > 10 files changed, 18 insertions(+), 16 deletions(-) Andrew, Arnd - are you ok if I take these patches through the arm64 tree? Thanks.
On Wed, 12 Feb 2025 17:24:58 +0000 Catalin Marinas <catalin.marinas@arm.com> wrote: > On Mon, Jan 13, 2025 at 05:06:16PM +0000, Yury Khrustalev wrote: > > Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. > > > > For context, this change will also allow for more consistent update of the > > Glibc manual which in turn will help with introducing memory protection > > keys on AArch64 targets. > [...] > > Yury Khrustalev (3): > > mm/pkey: Add PKEY_UNRESTRICTED macro > > selftests/mm: Use PKEY_UNRESTRICTED macro > > selftests/powerpc: Use PKEY_UNRESTRICTED macro > > > > include/uapi/asm-generic/mman-common.h | 1 + > > tools/testing/selftests/mm/mseal_test.c | 6 +++--- > > tools/testing/selftests/mm/pkey-helpers.h | 3 ++- > > tools/testing/selftests/mm/pkey_sighandler_tests.c | 4 ++-- > > tools/testing/selftests/mm/protection_keys.c | 2 +- > > tools/testing/selftests/powerpc/include/pkeys.h | 2 +- > > tools/testing/selftests/powerpc/mm/pkey_exec_prot.c | 2 +- > > tools/testing/selftests/powerpc/mm/pkey_siginfo.c | 2 +- > > tools/testing/selftests/powerpc/ptrace/core-pkey.c | 6 +++--- > > tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c | 6 +++--- > > 10 files changed, 18 insertions(+), 16 deletions(-) > > Andrew, Arnd - are you ok if I take these patches through the arm64 > tree? Sure.
On Mon, 13 Jan 2025 17:06:16 +0000, Yury Khrustalev wrote: > Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. > > For context, this change will also allow for more consistent update of the > Glibc manual which in turn will help with introducing memory protection > keys on AArch64 targets. > > Applies to 5bc55a333a2f (tag: v6.13-rc7). > > [...] Applied to arm64 (for-next/pkey_unrestricted), thanks! [1/3] mm/pkey: Add PKEY_UNRESTRICTED macro https://git.kernel.org/arm64/c/6d61527d931b [2/3] selftests/mm: Use PKEY_UNRESTRICTED macro https://git.kernel.org/arm64/c/3809cefe93f6 [3/3] selftests/powerpc: Use PKEY_UNRESTRICTED macro https://git.kernel.org/arm64/c/00894c3fc917
On Mon, Feb 17, 2025 at 09:33:10PM +0000, Catalin Marinas wrote: > On Mon, 13 Jan 2025 17:06:16 +0000, Yury Khrustalev wrote: > > Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. > > > > For context, this change will also allow for more consistent update of the > > Glibc manual which in turn will help with introducing memory protection > > keys on AArch64 targets. > > > > Applies to 5bc55a333a2f (tag: v6.13-rc7). > > > > [...] > > Applied to arm64 (for-next/pkey_unrestricted), thanks! Thank you! Kind regards, Yury > > [1/3] mm/pkey: Add PKEY_UNRESTRICTED macro > https://git.kernel.org/arm64/c/6d61527d931b > [2/3] selftests/mm: Use PKEY_UNRESTRICTED macro > https://git.kernel.org/arm64/c/3809cefe93f6 > [3/3] selftests/powerpc: Use PKEY_UNRESTRICTED macro > https://git.kernel.org/arm64/c/00894c3fc917 > > -- > Catalin >
Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. For context, this change will also allow for more consistent update of the Glibc manual which in turn will help with introducing memory protection keys on AArch64 targets. Applies to 5bc55a333a2f (tag: v6.13-rc7). Note that I couldn't build ppc tests so I would appreciate if someone could check the 3rd patch. Thank you! Signed-off-by: Yury Khrustalev <yury.khrustalev@arm.com> --- Changes in v4: - Removed change to tools/include/uapi/asm-generic/mman-common.h as it is not necessary. Link to v3: https://lore.kernel.org/all/20241028090715.509527-1-yury.khrustalev@arm.com/ Changes in v3: - Replaced previously missed 0-s tools/testing/selftests/mm/mseal_test.c - Replaced previously missed 0-s in tools/testing/selftests/mm/mseal_test.c Link to v2: https://lore.kernel.org/linux-arch/20241027170006.464252-2-yury.khrustalev@arm.com/ Changes in v2: - Update tools/include/uapi/asm-generic/mman-common.h as well - Add usages of the new macro to selftests. Link to v1: https://lore.kernel.org/linux-arch/20241022120128.359652-1-yury.khrustalev@arm.com/ --- Yury Khrustalev (3): mm/pkey: Add PKEY_UNRESTRICTED macro selftests/mm: Use PKEY_UNRESTRICTED macro selftests/powerpc: Use PKEY_UNRESTRICTED macro include/uapi/asm-generic/mman-common.h | 1 + tools/testing/selftests/mm/mseal_test.c | 6 +++--- tools/testing/selftests/mm/pkey-helpers.h | 3 ++- tools/testing/selftests/mm/pkey_sighandler_tests.c | 4 ++-- tools/testing/selftests/mm/protection_keys.c | 2 +- tools/testing/selftests/powerpc/include/pkeys.h | 2 +- tools/testing/selftests/powerpc/mm/pkey_exec_prot.c | 2 +- tools/testing/selftests/powerpc/mm/pkey_siginfo.c | 2 +- tools/testing/selftests/powerpc/ptrace/core-pkey.c | 6 +++--- tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c | 6 +++--- 10 files changed, 18 insertions(+), 16 deletions(-)