Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2007 17:46:37 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern tty_tty.c
Message-ID:  <200707031746.l63HkccW097014@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2007-07-03 17:46:37 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty_tty.c 
  Log:
  Lock Giant and proctree lock around dereferencing p_session->s_ttyvp->v_rdev.
  Lock cdev mutex too to close the race with tty being freed.
  Relock clone_drain_lock to prevent the LOR with proctree lock, thus
  add #include <fs/devfs/devfs_int.h>.
  
  Suggested by:   tegge
  Debugging help and testing by:  Peter Holm
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.60      +13 -1     src/sys/kern/tty_tty.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707031746.l63HkccW097014>