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

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Nov 12 08:54:54 PST 2011


commit 65622d85922eb51fe098fef2323a0bdb2ac7dee8
Author: Matthew Dillon <dillon at apollo.backplane.com>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/65622d85922eb51fe098fef2323a0bdb2ac7dee8


-- 
DragonFly BSD source repository





More information about the Commits mailing list