Date: Tue, 26 Feb 2013 03:46:35 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r247303 - stable/9/sys/ia64/ia64 Message-ID: <201302260346.r1Q3kZEl045969@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Tue Feb 26 03:46:35 2013 New Revision: 247303 URL: http://svnweb.freebsd.org/changeset/base/247303 Log: MFC r246882: Return EFAULT when the address is not a kernel virtual address. Modified: stable/9/sys/ia64/ia64/mem.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/ia64/ia64/mem.c ============================================================================== --- stable/9/sys/ia64/ia64/mem.c Tue Feb 26 03:39:15 2013 (r247302) +++ stable/9/sys/ia64/ia64/mem.c Tue Feb 26 03:46:35 2013 (r247303) @@ -128,6 +128,8 @@ kmemphys: */ addr = trunc_page(v); eaddr = round_page(v + c); + if (addr < VM_MAXUSER_ADDRESS) + return (EFAULT); for (; addr < eaddr; addr += PAGE_SIZE) { if (pmap_kextract(addr) == 0) return (EFAULT);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302260346.r1Q3kZEl045969>