Date: Sun, 10 Sep 2006 16:51:56 +0000 (UTC) From: Martin Blapp <mbr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c Message-ID: <200609101651.k8AGpuqm069774@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mbr 2006-09-10 16:51:56 UTC
FreeBSD src repository
Modified files:
sys/kern tty.c
Log:
Fix locking race in ttymodem(). The locking of the proctree happens too late
and opens a small race window before tp->t_session->s_leader is accessed. In case
tp->t_session has just been set to NULL elsewhere, we get a panic().
This fix is a bandaid until someone else fixes the whole locking in the tty subsystem.
Definitly more work needs to be done.
MFC after: 1 week
Reviewed by: mlaier
PR: kern/103101
Revision Changes Path
1.258 +2 -2 src/sys/kern/tty.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609101651.k8AGpuqm069774>
