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

git: devfs - Fix use-after-free case when making pty's invisible


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Sep 2010 08:22:42 -0700 (PDT)

commit 92fb0c6a27383d51b2bf2ee766f3fe9443f8d786
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Sep 13 08:20:16 2010 -0700

    devfs - Fix use-after-free case when making pty's invisible
    
    * Fix a use-after-free case when making a pty devfs node invisible.
      The dev_dclose().  Move the test/flag to before the dev_dclose() call.
    
    * Document that the pty code may destroy the device in the dev_dclose()
      call, causing the node to become stale.
    
    Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
    Reminded-by: sjg

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/92fb0c6a27383d51b2bf2ee766f3fe9443f8d786


-- 
DragonFly BSD source repository



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