[Bug 194974] Limit /dev/mem access to addresses in phys_avail[] - i.e. actual memory
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 2 17:30:19 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194974
Alan Cox <alc at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alc at FreeBSD.org
--- Comment #2 from Alan Cox <alc at 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.
More information about the freebsd-bugs
mailing list