[PATCH] arm64: mm: support setting page attributes for debug situation

Will Deacon will at kernel.org
Thu Jan 16 03:09:14 PST 2020

On Fri, Jan 10, 2020 at 03:47:41PM +0800, yeyunfeng wrote:
> When rodata_full is set or pagealloc debug is enabled, block mappings or
> contiguou hints are no longer used for linear address area. Therefore,
> support setting page attributes in this case is useful for debugging
> memory corruption problems.
> Signed-off-by: Yunfeng Ye <yeyunfeng at huawei.com>
> ---
>  arch/arm64/mm/pageattr.c | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)

Although I can kind of see what you're getting at, I'm not keen on merging
this without a user. If you're just referring to random debug hacks, then I
think this change could be part of those too.


More information about the linux-arm-kernel mailing list