Systems supporting BBML3 can split blocks without risking unhandled page-faults. It is therefore safe for them to set the direct map unconditionally. Signed-off-by: Vincent Donnefort diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c index bbe98ac9ad8c..58898ae53f5d 100644 --- a/arch/arm64/mm/pageattr.c +++ b/arch/arm64/mm/pageattr.c @@ -99,7 +99,8 @@ bool can_set_direct_map(void) * Realms need to make pages shared/protected at page granularity. */ return rodata_full || debug_pagealloc_enabled() || - arm64_kfence_can_set_direct_map() || is_realm_world(); + arm64_kfence_can_set_direct_map() || is_realm_world() || + system_supports_bbml3(); } static int update_range_prot(unsigned long start, unsigned long size, -- 2.55.0.970.g62bdec98f9-goog