From owner-freebsd-current@FreeBSD.ORG Tue Jul 5 08:21:57 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4238916A41F for ; Tue, 5 Jul 2005 08:21:57 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [194.58.105.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA73043D53 for ; Tue, 5 Jul 2005 08:21:56 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.44 (FreeBSD)) id 1Dpigk-000EJN-Cg; Tue, 05 Jul 2005 12:21:54 +0400 Date: Tue, 5 Jul 2005 12:21:54 +0400 From: Slawa Olhovchenkov To: Poul-Henning Kamp Message-ID: <20050705082154.GA80025@zxy.spb.ru> References: <42C925A5.8060901@cronyx.ru> <29842.1120480672@phk.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29842.1120480672@phk.freebsd.dk> User-Agent: Mutt/1.5.7i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-current@freebsd.org, Roman Kurakin Subject: Re: TTY code problems in current 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: Tue, 05 Jul 2005 08:21:57 -0000 On Mon, Jul 04, 2005 at 02:37:52PM +0200, Poul-Henning Kamp wrote: > In message <42C925A5.8060901@cronyx.ru>, Roman Kurakin writes: > >Hi, > > > > I observe some problems with my driver in async mode. > >One of the panics I see is in function putc() from tty_subr.c. > >It seems that this panic due to the fact that clist is not protected > >by any locks if driver works in smpsafe mode without Giant. > > > > The panic occur beacuse of pointer modification (the new value > >of the pointer eq. to NULL. > >Any comments? > > We do not support smpsafe tty drivers yet. IMHO, this problem related to sio (or puc) too. I got 'clist reservation botch' on SMP kernel.