Date: Fri, 02 Jan 2015 17:30:18 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194974] Limit /dev/mem access to addresses in phys_avail[] - i.e. actual memory Message-ID: <bug-194974-8-JEB9tZgC9E@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194974-8@https.bugs.freebsd.org/bugzilla/> References: <bug-194974-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194974 Alan Cox <alc@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alc@FreeBSD.org --- Comment #2 from Alan Cox <alc@FreeBSD.org> --- Use dump_avail[] rather than phys_avail[]. Between the time that we first initialize phys_avail[] and finally execute vm_page_startup(), we remove pages from phys_avail[] for various purposes. Also, dump_avail[] includes pages containing the kernel code and data that are excluded from phys_avail[]. In summary, dump_avail[] more accurately describes the physical memory of the machine. See the arm version of this code. It already implements the check against dump_avail[]. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194974-8-JEB9tZgC9E>