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

git: kern - Do not allow calls to vmspace_president_count() from userland.


From: Antonio Huete Jimenez <tuxillo@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 Oct 2011 14:19:18 -0700 (PDT)

commit acdfde5e73417023e2740e25ae90519996401c2a
Author: Antonio Huete Jimenez <tuxillo@quantumachine.net>
Date:   Sat Oct 22 12:20:29 2011 +0200

    kern - Do not allow calls to vmspace_president_count() from userland.
    
    - Processes' vm_map is not read in by kvm_proclist() thus we cannot
      call vmspace_president_count() which entirely relies on that.
    - This fixes segfaults in ps(1), w(1) and fstat(1) when using -M
      and -N parameters.
    
    Help-from: @corecode

Summary of changes:
 sys/kern/kern_kinfo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/acdfde5e73417023e2740e25ae90519996401c2a


-- 
DragonFly BSD source repository



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