From owner-freebsd-current@FreeBSD.ORG Fri Jul 13 18:43:00 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF53216A404 for ; Fri, 13 Jul 2007 18:43:00 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outM.internet-mail-service.net (outM.internet-mail-service.net [216.240.47.236]) by mx1.freebsd.org (Postfix) with ESMTP id A2C9D13C4AA for ; Fri, 13 Jul 2007 18:43:00 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Fri, 13 Jul 2007 11:43:00 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id E273F125AEB; Fri, 13 Jul 2007 11:42:59 -0700 (PDT) Message-ID: <4697C7C4.3070500@elischer.org> Date: Fri, 13 Jul 2007 11:43:16 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Kostik Belousov References: <46970DF7.3000803@elischer.org> <46972B28.1010409@FreeBSD.org> <20070713082705.GI2200@deviant.kiev.zoral.com.ua> In-Reply-To: <20070713082705.GI2200@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Attilio Rao , FreeBSD Current Subject: Re: crash in tty code in 6.1.. fixed since? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 18:43:00 -0000 >>> tp_session is NULL but it shouldn't have been able to have run that line >>> (line 1659) if it had tested NULL 2 lines before.. >>> this suggests a locking problem.. >> I think it has been fixed some months ago IIRC. >> The problem here, should be that if sx_slock() let thread sleep, Giant >> is released before to sleep and tp->t_session can be accessed in racy way. >> Another nice side-effect about having tty Giant :) > > Yes, it seems that rev. 1.267 fixed it and was MFCed as rev. 1.228.2.6. > There was a lot of commits around this one, it may be safer to update to > RELENG_6. That's not an option on a product. 6.1 has passed all sorts of QA benchmarks etc. and while we will upgrade, it will probably happen next year.