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

看板DFBSD_commit作者時間15年前 (2010/09/14 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CZcRjdi (DFBSD_commit)