From 27d203eab329f0c6065e1d14fab9e1ecbf61795f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 12 Sep 2003 07:13:15 +0000 Subject: [PATCH] pipe_build_write_buffer() only requires read access of the page that it obtains from pmap_extract_and_hold(). --- sys/kern/sys_pipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 0e7d6f229f4..76e23b733a9 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; }