On Mon, Feb 17, 2025 at 09:33:10PM +, 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
imes used near mprotect() that uses PROT_ macros.
This patch adds PKEY_UNRESTRICTED macro defined as 0x0.
Signed-off-by: Yury Khrustalev
Acked-by: Dave Hansen
---
include/uapi/asm-generic/mman-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/asm-generic/mman-common.h
b
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys for ppc target.
Signed-off-by: Yury Khrustalev
Suggested-by: Kevin Brodsky
Reviewed-by: Kevin Brodsky
---
Note that I couldn't build these tests so I would apprecia
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys.
Signed-off-by: Yury Khrustalev
Suggested-by: Joey Gouly
Acked-by: Dave Hansen
---
tools/testing/selftests/mm/mseal_test.c| 6 +++---
tools/testing/selftests
couldn't build ppc tests so I would appreciate if someone
could check the 3rd patch. Thank you!
Signed-off-by: Yury Khrustalev
---
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.5
imes used near mprotect() that uses PROT_ macros.
This patch adds PKEY_UNRESTRICTED macro defined as 0x0.
Signed-off-by: Yury Khrustalev
Acked-by: Dave Hansen
---
include/uapi/asm-generic/mman-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/asm-generic/mman-common.h
b
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys for ppc target.
Signed-off-by: Yury Khrustalev
Suggested-by: Kevin Brodsky
Reviewed-by: Kevin Brodsky
---
Note that I couldn't build these tests so I would apprecia
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys.
Signed-off-by: Yury Khrustalev
Suggested-by: Joey Gouly
Acked-by: Dave Hansen
---
tools/testing/selftests/mm/mseal_test.c| 6 +++---
tools/testing/selftests
couldn't build ppc tests so I would appreciate if someone
could check the 3rd patch. Thank you!
Signed-off-by: Yury Khrustalev
---
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.5
Hi Michael,
On Wed, Nov 06, 2024 at 12:00:42PM +1100, Michael Ellerman wrote:
> Yury Khrustalev writes:
> > Memory protection keys (pkeys) uapi has two macros for pkeys restrictions:
> >
> > - PKEY_DISABLE_ACCESS 0x1
> > - PKEY_DISABLE_WRITE 0x2
> >
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys for ppc target.
Signed-off-by: Yury Khrustalev
Suggested-by: Kevin Brodsky
---
Note that I couldn't build these tests so I would appreciate if someone
could check
imes used near mprotect() that uses PROT_ macros.
This patch adds PKEY_UNRESTRICTED macro defined as 0x0.
Signed-off-by: Yury Khrustalev
---
include/uapi/asm-generic/mman-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/asm-generic/mman-common.h
b/include/uapi/a
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys.
Signed-off-by: Yury Khrustalev
Suggested-by: Joey Gouly
---
tools/testing/selftests/mm/mseal_test.c| 6 +++---
tools/testing/selftests/mm/pkey-helpers.h
d-off-by: Yury Khrustalev
---
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.khrusta...@arm.com/
Changes in v3:
- Replaced previously missed 0-s tools/testing/self
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys for ppc target.
Signed-off-by: Yury Khrustalev
Suggested-by: Kevin Brodsky
---
Note that I couldn't build these tests so I would appreciate if someone
could check
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys.
Signed-off-by: Yury Khrustalev
Suggested-by: Joey Gouly
---
tools/testing/selftests/mm/mseal_test.c| 6 +++---
tools/testing/selftests/mm/pkey-helpers.h
imes used near mprotect() that uses PROT_ macros.
This patch adds PKEY_UNRESTRICTED macro defined as 0x0.
Signed-off-by: Yury Khrustalev
---
include/uapi/asm-generic/mman-common.h | 1 +
tools/include/uapi/asm-generic/mman-common.h | 1 +
2 files changed, 2 insertions(+)
diff --git a
d-off-by: Yury Khrustalev
---
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.khrusta...@arm.com/
Ch
18 matches
Mail list logo