diff options
| author | Celeste Liu <[email protected]> | 2022-05-31 07:56:52 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2022-07-21 22:53:46 +0000 |
| commit | 2139619bcad7ac44cc8f6f749089120594056613 (patch) | |
| tree | 4812491207fc6eb4cbeeafc88ad3e7bb70494ee0 /drivers/fpga/machxo2-spi.c | |
| parent | RISC-V: Support for 64bit hartid on RV64 platforms (diff) | |
| download | kernel-2139619bcad7ac44cc8f6f749089120594056613.tar.gz kernel-2139619bcad7ac44cc8f6f749089120594056613.zip | |
riscv: mmap with PROT_WRITE but no PROT_READ is invalid
As mentioned in Table 4.5 in RISC-V spec Volume 2 Section 4.3, write
but not read is "Reserved for future use.". For now, they are not valid.
In the current code, -wx is marked as invalid, but -w- is not marked
as invalid.
This patch refines that judgment.
Reported-by: xctan <[email protected]>
Co-developed-by: dram <[email protected]>
Signed-off-by: dram <[email protected]>
Co-developed-by: Ruizhe Pan <[email protected]>
Signed-off-by: Ruizhe Pan <[email protected]>
Signed-off-by: Celeste Liu <[email protected]>
Link: https://lore.kernel.org/r/PH7PR14MB559464DBDD310E755F5B21E8CEDC9@PH7PR14MB5594.namprd14.prod.outlook.com
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions
