Date: Wed, 16 Oct 2019 21:47:59 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353666 - head/sys/vm Message-ID: <201910162147.x9GLlxPZ027318@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Oct 16 21:47:58 2019 New Revision: 353666 URL: https://svnweb.freebsd.org/changeset/base/353666 Log: Correct the range boundaries used by kern_mincore(). Reported by: alc Sponsored by: Netflix Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c ============================================================================== --- head/sys/vm/vm_mmap.c Wed Oct 16 21:46:49 2019 (r353665) +++ head/sys/vm/vm_mmap.c Wed Oct 16 21:47:58 2019 (r353666) @@ -800,7 +800,7 @@ kern_mincore(struct thread *td, uintptr_t addr0, size_ * mode. */ first_addr = addr = trunc_page(addr0); - end = addr + (vm_size_t)round_page(len); + end = round_page(addr0 + len); map = &td->td_proc->p_vmspace->vm_map; if (end > vm_map_max(map) || end < addr) return (ENOMEM);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910162147.x9GLlxPZ027318>