Re: [PATCH] selftests/mm: Handle implicit read permissions in madv_populate
From: Andrew Morton
Date: Tue Nov 17 2026 - 00:59:35 EST
On Mon, 16 Nov 2026 15:00:56 +0800 cxg <evers_chen@xxxxxxx> wrote:
> Thanks for the suggestion.
>
> Agreed. Since this behavior is specific to RISC-V, a simple
> architecture-specific check is sufficient.
>
> I've simplified the patch to use |#ifdef __riscv|in |test_prot_write()|,
> removing the |/proc/self/maps|parsing and the additional PROT_NONE test.
>
> The updated test passes all 16 tests on RISC-V with Linux 7.2.0.
>
> Since the original patch is already in Andrew's mm tree, would you
> prefer a v2 or an incremental fix?
A v2, please.