NetBSD Problem Report #43631

From jakllsch@trantor.kollasch.net  Sun Jul 18 01:58:20 2010
Return-Path: <jakllsch@trantor.kollasch.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D6D0263BAFE
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Jul 2010 01:58:20 +0000 (UTC)
Message-Id: <20100718015817.36D718FE00@trantor.kollasch.net>
Date: Sun, 18 Jul 2010 01:58:17 +0000 (UTC)
From: jakllsch@kollasch.net
Reply-To: jakllsch@kollasch.net
To: gnats-bugs@gnats.NetBSD.org
Subject: pckbc(4) failure during setroot() on SMP
X-Send-Pr-Version: 3.95

>Number:         43631
>Category:       kern
>Synopsis:       pckbc(4) failure during setroot() on SMP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 02:00:00 +0000 2010
>Closed-Date:    Wed Nov 21 08:04:45 +0000 2018
>Last-Modified:  Wed Nov 21 08:04:45 +0000 2018
>Originator:     Jonathan A. Kollasch
>Release:        NetBSD 5.99.36
>Organization:
>Environment:
System: NetBSD trantor.kollasch.net 5.99.36 NetBSD 5.99.36 (TRANTOR) #4: Sat Jul 17 15:00:17 CDT 2010 jakllsch@trantor.kollasch.net:/local/jakllsch/nbsd-head/build/objdir/sys/arch/amd64/compile/TRANTOR amd64
Architecture: x86_64
Machine: amd64
>Description:
Two processors try to access one pckbc(4) during setroot() in RB_ASKNAME case.
>How-To-Repeat:
`boot -a` on a modern quad-core x86 box.
Note that the keyboard input doesn't show up when it asks for the root device,
and that using a keyboard LED toggling key (numlock) repeatedly soon causes an
access fault.  If you happen to get a working ddb at this point, you may find
the keyboard interrput handler trying to toggle the LED on one cpu while
setroot() is polling the same keyboard for input on another.
It should also be noted that boot -d and boot -c have working keyboard,
as does ddb when entered while the system is multiuser.
>Fix:
better locking?

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: jakllsch@NetBSD.org
State-Changed-When: Wed, 15 Mar 2017 14:33:10 +0000
State-Changed-Why:
I probably fixed this in 1.56 of pckbc.c.  Need to test sometime.


State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 21 Nov 2018 08:04:45 +0000
State-Changed-Why:
I used pckbc a lot (ddb, boot -a) and didn't have such issues, you probably did manage to fix it :-)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.