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

DragonFly-2.3.0.786.g85d25bc master sys/kern kern_exec.c sys/vm vm_map.c vm_map.h vm_mmap.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Apr 2009 11:56:16 -0700 (PDT)

commit 85d25bcf562abac1b78f0828f44e3cc7e67e93fa
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Apr 23 11:54:47 2009 -0700

    Fix VM panic.  Add required overflow check for MAP_STACK and MAP_FIXED mmaps
    
    Certain mmap() calls were not properly checking that (addr + size) does not
    overflow, causing a kernel panic.
    
    Reported-by: Alex Hornung <ahornung@gmail.com>

Summary of changes:
 sys/kern/kern_exec.c |    2 +-
 sys/vm/vm_map.c      |   40 ++++++++++++++++++++++++++++++++--------
 sys/vm/vm_map.h      |    3 ++-
 sys/vm/vm_mmap.c     |   19 +++++++++++++++++--
 4 files changed, 52 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/85d25bcf562abac1b78f0828f44e3cc7e67e93fa


-- 
DragonFly BSD source repository



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