Re: [PATCH v23 06/28] riscv/mm : ensure PROT_WRITE leads to VM_READ | VM_WRITE

From: Andreas Schwab

Date: Sat May 30 2026 - 17:48:32 EST


On Mai 30 2026, Deepak Gupta wrote:

> I see two ways forward:
>
> - It can be done in generic way where incoming PROT_WRITE means
> PROT_READ | PROT_WRITE irrespective of RISC-V. Although others
> (x86, arm, etc) would have to weigh in.
>
> OR
>
> - mmap04 LTP test can be updated to expect either of "rw-p" or "-w-p"
> whenever only PROT_WRITE was specified.

OR

- Add a new PROT_ flag.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."