cvs commit: src/sys/kern tty_tty.c
Konstantin Belousov
kib at FreeBSD.org
Tue Jul 3 17:46:38 UTC 2007
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
More information about the cvs-src
mailing list