[PATCH] riscv: Allow PROT_WRITE-only mmap()
Andrew Bresticker
abrestic at rivosinc.com
Thu Sep 8 11:14:08 PDT 2022
On Thu, Sep 8, 2022 at 1:28 PM SS JieJi <c141028 at gmail.com> wrote:
>
> > https://fars.ee/1sPb, showing *inconsistent* read results on -r- pages
> > before/after a write attempt performed by the kernel.
>
> That said, maybe prohibit mmap-ing -w- pages is not the best fix for
> this issue. If -w- pages are irreplaceable for some use cases (and
> hence need to be allowed), I'd suggest at least we need to re-fix the
> read result inconsistency issue somewhere else despite simply
> reverting the patch.
Ah, this is because do_page_fault() also needs to be made aware of
write-implying-read. Will send a v2 shortly.
-Andrew
>
> Yours, Pan Ruizhe
More information about the linux-riscv
mailing list