git: kernel - Fix overflows and races in zalloc()

Matthew Dillon dillon at
Sat Nov 12 08:54:54 PST 2011

commit 65622d85922eb51fe098fef2323a0bdb2ac7dee8
Author: Matthew Dillon <dillon at>
Date:   Sat Nov 12 08:51:18 2011 -0800

    kernel - Fix overflows and races in zalloc()
    * Fix a 32 bit overflow which would crash machines with large amounts of
      ram once the number of PV entries (in bytes) exceeds the 2GB mark.
    * Refactor the page allocation to allow vm_page_alloc() and friends to block.
    * Don't depend on being unqueued, wire the related pages.

Summary of changes:
 sys/vm/vm_zone.c |   70 ++++++++++++++++++++++++++++++++---------------------
 1 files changed, 42 insertions(+), 28 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list