summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-09-12 07:13:15 +0000
committeralc <alc@FreeBSD.org>2003-09-12 07:13:15 +0000
commit6808836f35763fea89846f4ea80bd59acea1fe37 (patch)
treebc0f6e676df21de428cba2b64bc288816566654d /sys/kern/sys_pipe.c
parent76fcb264a0e0f5a09371c6617c166472bd775658 (diff)
downloadFreeBSD-src-6808836f35763fea89846f4ea80bd59acea1fe37.zip
FreeBSD-src-6808836f35763fea89846f4ea80bd59acea1fe37.tar.gz
pipe_build_write_buffer() only requires read access of the page that it
obtains from pmap_extract_and_hold().
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 0e7d6f2..76e23b7 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -668,7 +668,8 @@ pipe_build_write_buffer(wpipe, uio)
vm_page_unlock_queues();
return (EFAULT);
}
- wpipe->pipe_map.ms[i] = pmap_extract_and_hold(pmap, addr);
+ wpipe->pipe_map.ms[i] = pmap_extract_and_hold(pmap, addr,
+ VM_PROT_READ);
if (wpipe->pipe_map.ms[i] == NULL)
goto race;
}
OpenPOWER on IntegriCloud