git: devfs - Fix use-after-free case when making pty's invisible
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Sep 13 08:25:00 PDT 2010
commit 92fb0c6a27383d51b2bf2ee766f3fe9443f8d786
Author: Matthew Dillon <dillon at 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 at 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
More information about the Commits
mailing list