DragonFly BSD
DragonFly commits List (threaded) for 2011-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Nov 2011 08:53:56 -0800 (PST)

commit 65622d85922eb51fe098fef2323a0bdb2ac7dee8
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]