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

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 16 09:02:52 PST 2011


commit 46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list