Jisheng Zhang 0ffe1ae702
riscv: mm: implement pgprot_nx
commit cca98e9f8b5e ("mm: enforce that vmap can't map pages
executable") enforces the W^X protection by not allowing remapping
existing pages as executable. Add riscv bits so that riscv can benefit
the same protection.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20231121160637.3856-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-03-27 07:09:06 -07:00
..
2022-03-10 09:29:21 -08:00
2023-11-05 09:11:23 -08:00
2022-01-19 17:54:09 -08:00
2022-05-11 11:50:10 -07:00
2024-01-02 13:19:40 -05:00
2022-03-29 14:31:07 -07:00
2024-03-27 07:09:06 -07:00
2021-01-14 15:09:06 -08:00
2024-03-15 10:17:38 -07:00
2021-01-07 19:00:50 -08:00
2023-08-23 14:16:36 -07:00
2024-03-22 10:41:13 -07:00