Re: [PATCH] RISC-V: Don't allow write+exec only page mapping request in mmap

2020-06-18 Thread Palmer Dabbelt
On Tue, 16 Jun 2020 07:03:06 PDT (-0700), yash.s...@sifive.com wrote: As per the table 4.2 of the RISC-V instruction set manual[0], the PTE permission bit combination of "write+exec only" is invalid and reserved for future use. Hence, don't allow such mapping request in mmap call. An issue is

[PATCH] RISC-V: Don't allow write+exec only page mapping request in mmap

2020-06-16 Thread Yash Shah
As per the table 4.2 of the RISC-V instruction set manual[0], the PTE permission bit combination of "write+exec only" is invalid and reserved for future use. Hence, don't allow such mapping request in mmap call. An issue is been reported by David Abdurachmanov, that while running stress-ng with