svn commit: r238502 - in head/sys: kern vm
mdf at FreeBSD.org
mdf at FreeBSD.org
Sun Jul 15 20:31:46 UTC 2012
On Sun, Jul 15, 2012 at 1:29 PM, Matthew D Fleming <mdf at freebsd.org> wrote:
> Author: mdf
> Date: Sun Jul 15 20:29:48 2012
> New Revision: 238502
> URL: http://svn.freebsd.org/changeset/base/238502
>
> Log:
> Fix a bug with memguard(9) on 32-bit architectures without a
> VM_KMEM_MAX_SIZE.
>
> The code was not taking into account the size of the kernel_map, which
> the kmem_map is allocated from, so it could produce a sub-map size too
> large to fit. The simplest solution is to ignore VM_KMEM_MAX entirely
> and base the memguard map's size off the kernel_map's size, since this
> is always relevant and always smaller.
>
> Found by: Justin Hibbits
MFC after: 3 days
Thanks,
matthew
More information about the svn-src-head
mailing list