diff options
author | 2005-09-10 19:44:57 +0200 | |
---|---|---|
committer | 2005-09-10 12:00:18 -0700 | |
commit | d129f31236c241c07e583e8bc695c382365d02ce (patch) | |
tree | 53e6370fe8e3134f41d8b0c08d9af400ab9504eb /lib/dec_and_lock.c | |
parent | [PATCH] uml: inline mk_pte and various friends (diff) | |
download | wireguard-linux-d129f31236c241c07e583e8bc695c382365d02ce.tar.xz wireguard-linux-d129f31236c241c07e583e8bc695c382365d02ce.zip |
[PATCH] uml: fix fault handler on write
The UML fault handler was recently changed to enforce PROT_NONE protections,
by requiring VM_READ or VM_EXEC on VMA's.
However, by mistake, things were changed such that VM_READ is always checked,
also on write faults; so a VMA mapped with only PROT_WRITE is not readable
(unless it's prefaulted with MAP_POPULATE or with a write), which is different
from i386.
Discovered while testing remap_file_pages protection support.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions