I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
16 lines
705 B
Diff
16 lines
705 B
Diff
Index: sys/kern/sys_pipe.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/kern/sys_pipe.c,v
|
|
retrieving revision 1.201
|
|
diff -p -u -I__FBSDID -I$FreeBSD -r1.201 sys_pipe.c
|
|
--- sys/kern/sys_pipe.c 10 Mar 2009 21:28:43 -0000 1.201
|
|
+++ sys/kern/sys_pipe.c 5 Jun 2009 07:53:01 -0000
|
|
@@ -761,6 +761,8 @@ pipe_build_write_buffer(wpipe, uio)
|
|
pmap = vmspace_pmap(curproc->p_vmspace);
|
|
endaddr = round_page((vm_offset_t)uio->uio_iov->iov_base + size);
|
|
addr = trunc_page((vm_offset_t)uio->uio_iov->iov_base);
|
|
+ if (endaddr < addr)
|
|
+ return (EFAULT);
|
|
for (i = 0; addr < endaddr; addr += PAGE_SIZE, i++) {
|
|
/*
|
|
* vm_fault_quick() can sleep. Consequently,
|