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

git: kernel - Fix token ordering in sysctl_kern_proc_args(), sysctl_kern_proc_cwd()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Nov 2011 09:01:23 -0800 (PST)

commit 46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Nov 16 08:40:40 2011 -0800

    kernel - Fix token ordering in sysctl_kern_proc_args(), sysctl_kern_proc_cwd()
    
    * We have to PHOLD() first, then get p->p_token, not the other way around.
      Use pfind() instead of pfindn().
    
    * Extract and ref the the ncdir from p->p_fd before calling cache_fullpath()
      on it to ensure stability.

Summary of changes:
 sys/kern/kern_proc.c |   41 +++++++++++++++++++++++------------------
 1 files changed, 23 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d


-- 
DragonFly BSD source repository



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