aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAndrew Bresticker <[email protected]>2022-09-15 15:37:01 -0400
committerPalmer Dabbelt <[email protected]>2022-09-22 09:44:50 -0700
commit7ab72c597356be1e7f0f3d856e54ce78527f43c8 (patch)
treec65d1600b224e02e67b6130f31b8d1559104ae87 /lib/string_helpers.c
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff)
riscv: Make VM_WRITE imply VM_READ
RISC-V does not presently have write-only mappings as that PTE bit pattern is considered reserved in the privileged spec, so allow handling of read faults in VMAs that have VM_WRITE without VM_READ in order to be consistent with other architectures that have similar limitations. Fixes: 2139619bcad7 ("riscv: mmap with PROT_WRITE but no PROT_READ is invalid") Reviewed-by: Atish Patra <[email protected]> Signed-off-by: Andrew Bresticker <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions