diff options
author | Joey Gouly <[email protected]> | 2024-08-22 16:11:04 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-09-04 12:54:05 +0100 |
commit | d0d6e7e0812b24fc3220745d946ddb06a7a911dd (patch) | |
tree | a159c1284df3f8b064f7bedbe2f4ab447d5d9d3e /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 17519819926211e6b2834e00e4554bec0daf22ac (diff) |
arm64: enable POE and PIE to coexist
Permission Indirection Extension and Permission Overlay Extension can be
enabled independently.
When PIE is disabled and POE is enabled, the permissions set by POR_EL0 will be
applied on top of the permissions set in the PTE.
When both PIE and POE are enabled, the permissions set by POR_EL0 will be
applied on top of the permissions set by the PIRE0_EL1 register.
However PIRE0_EL1 has encodings that specifically enable and disable the
overlay from applying.
For example:
0001 Read, Overlay applied.
1000 Read, Overlay not applied.
Switch to using the 'Overlay applied' encodings in PIRE0_EL1, so that PIE and
POE can coexist.
Signed-off-by: Joey Gouly <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions