From owner-freebsd-stable@FreeBSD.ORG Fri May 15 15:03:48 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17133106566B for ; Fri, 15 May 2009 15:03:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5A8178FC16 for ; Fri, 15 May 2009 15:03:46 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA11076; Fri, 15 May 2009 18:03:44 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4A0D8450.5070706@icyb.net.ua> Date: Fri, 15 May 2009 18:03:44 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: Helmut Schneider , freebsd-stable@freebsd.org References: <4A019B38.3060101@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: kbd0 at both atkbd0 and ukbd0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 15:03:48 -0000 on 07/05/2009 17:17 Helmut Schneider said the following: > Andriy Gapon wrote: >> on 06/05/2009 14:43 Helmut Schneider said the following: >>> kbd1 at kbdmux0 >> [snip] >>> atkbdc0: at port 0x60,0x64 on isa0 atkbd0: >>> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] >>> atkbd0: [ITHREAD] >> [snip] >>> ukbd0: on uhub0 kbd0 at >>> ukbd0 >> >> It took me three passes to notice the above: "kbd0 at atkbd0" and then again >> "kbd0 at ukbd0". > > Good point: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=122887 > http://www.freebsd.org/cgi/query-pr.cgi?pr=133919 > > I have 'hint.atkbd.0.disabled="1"' at /boot/default.hints and (probably) > freebsd-update killed that one and silently replaced it with 1.16.8.1. The > whole mess might be related. D'oh! I don't actually understand fine details of what is happening when you don't have atkbd disabled (or configured for acpi attachment as opposed to isa). But I have a guess about why the system ultimately panics: - atkbd_timeout function: first called from atkbd_attach_unit and then reschedules itself at hz/10 - it accesses kbdsw[kbd->kb_index] without any checks, but there are couple of places where kbd_unregister could be called - thus kbdsw[kbd->kb_index] could become null or different keyboard - and there is no untimeout ever -- Andriy Gapon