+1
−1
+0
−42
arch/arm64/mm/pageattr.c
0 → 100644
+121
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Commit 802ae1e1 (arm64: mm: Introduce PTE_WRITE) changed pte_wrprotect and pte_mkwrite to use software read only bits instead of the hardware bits explicitly. The hardware read only bits are updated in set_pte_at. Unfortunately, the check in set_pte_at only works for user page tables which breaks support for the read only functions in modules. Move to an alternative implementation which does not use pte_mkwrite/pte_wrprotect. Change-Id: I4251a0929b1fe6f43f84b14f0a64fed30769700e Signed-off-by:Laura Abbott <lauraa@codeaurora.org>