NetBSD Problem Report #47957

From www@NetBSD.org  Sun Jun 23 20:43:16 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 237B871669
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 23 Jun 2013 20:43:16 +0000 (UTC)
Message-Id: <20130623204314.881FE7166B@mollari.NetBSD.org>
Date: Sun, 23 Jun 2013 20:43:14 +0000 (UTC)
From: erde74@googlemail.com
Reply-To: erde74@googlemail.com
To: gnats-bugs@NetBSD.org
Subject: ath0n crash
X-Send-Pr-Version: www-1.0

>Number:         47957
>Category:       kern
>Synopsis:       ath0n crash
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    martin
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 23 20:45:00 +0000 2013
>Closed-Date:    
>Last-Modified:  Tue Jun 25 12:13:22 +0000 2013
>Originator:     Stefan Hertenberger
>Release:        current
>Organization:
>Environment:
>Description:
Hello,

i use netbsd current on a Packard Bell TS11HR-267GE, after upgrading to
the latest sources, i get a kernel panic.

Jun 23 20:13:10 nbbook dhcpcd[368]: athn0: offered 192.168.1.21 from
192.168.1.50
Jun 23 20:13:14 nbbook dhcpcd[368]: athn0: carrier lost
Jun 23 20:13:18 nbbook dhcpcd[368]: athn0: carrier acquired
Jun 23 20:13:18 nbbook dhcpcd[368]: athn0: soliciting an IPv6 router
Jun 23 20:13:18 nbbook dhcpcd[368]: athn0: rebinding lease of 192.168.1.21
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Jun
23 20:15:22 nbbook syslogd[499]: restart
Jun 23 20:15:22 nbbook /netbsd: athn0: device timeout
Jun 23 20:15:22 nbbook /netbsd: panic: kernel diagnostic assertion
"!cpu_softintr_p()" failed: file "/usr/src/sys/kern/subr_kmem.c", line 380
Jun 23 20:15:22 nbbook /netbsd: cpu0: Begin traceback...
Jun 23 20:15:22 nbbook /netbsd: vpanic() at netbsd:vpanic+0x136
Jun 23 20:15:22 nbbook /netbsd: kern_assert() at netbsd:kern_assert+0x48
Jun 23 20:15:22 nbbook /netbsd: kmem_free() at netbsd:kmem_free+0x82
Jun 23 20:15:22 nbbook /netbsd: athn_pci_suspend() at
netbsd:athn_pci_suspend+0x31
Jun 23 20:15:22 nbbook /netbsd: device_pmf_driver_suspend() at
netbsd:device_pmf_driver_suspend+0x3f
Jun 23 20:15:22 nbbook /netbsd: pmf_device_suspend_locked() at
netbsd:pmf_device_suspend_locked+0xeb
Jun 23 20:15:22 nbbook /netbsd: pmf_device_suspend() at
netbsd:pmf_device_suspend+0x47
Jun 23 20:15:22 nbbook /netbsd: pmf_device_recursive_suspend() at
netbsd:pmf_device_recursive_suspend+0x94
Jun 23 20:15:22 nbbook /netbsd: athn_watchdog() at netbsd:athn_watchdog+0x5d
Jun 23 20:15:22 nbbook /netbsd: if_slowtimo() at netbsd:if_slowtimo+0x46
Jun 23 20:15:22 nbbook /netbsd: callout_softclock() at
netbsd:callout_softclock+0x396
Jun 23 20:15:22 nbbook /netbsd: softint_dispatch() at
netbsd:softint_dispatch+0xd9
Jun 23 20:15:22 nbbook /netbsd: DDB lost frame for
netbsd:Xsoftintr+0x4f, trying 0xfffffe810e501d70
Jun 23 20:15:22 nbbook /netbsd: Xsoftintr() at netbsd:Xsoftintr+0x4f
Jun 23 20:15:22 nbbook /netbsd: --- interrupt ---
Jun 23 20:15:22 nbbook /netbsd: 0:
Jun 23 20:15:22 nbbook /netbsd: cpu0: End traceback...



>How-To-Repeat:
use current
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 23 Jun 2013 20:47:23 +0000
Responsible-Changed-Why:
take


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47957 CVS commit: src/sys/dev/ic
Date: Mon, 24 Jun 2013 19:43:58 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Jun 24 19:43:58 UTC 2013

 Modified Files:
 	src/sys/dev/ic: athn.c

 Log Message:
 Stopgap for PR kern/47957: when reinitializing the chip in if_timeout,
 avoid pmf operations as we are called from softint context.

 This is not a 100% solution, since we still may end up panicing if
 initialization fails.

 Instead of hacking around it on a per driver level, wouldn't it be better
 to have a single global workqueue and dispatch the if_slowtimo() calls
 via that?


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 src/sys/dev/ic/athn.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: martin@NetBSD.org
State-Changed-When: Mon, 24 Jun 2013 19:47:52 +0000
State-Changed-Why:
I couldn't reproduce the issue - could you try again with the change commited?


From: Stefan Hertenberger <erde74@googlemail.com>
To: gnats-bugs@NetBSD.org
Cc: martin@NetBSD.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: kern/47957 (ath0n crash)
Date: Tue, 25 Jun 2013 13:50:52 +0200

 Am 24.06.2013 21:47, schrieb martin@NetBSD.org:
 > Synopsis: ath0n crash
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: martin@NetBSD.org
 > State-Changed-When: Mon, 24 Jun 2013 19:47:52 +0000
 > State-Changed-Why:
 > I couldn't reproduce the issue - could you try again with the change co=
 mmited?
 >
 >
 >
 Thank you, that solved the problem.


State-Changed-From-To: feedback->analyzed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 25 Jun 2013 12:13:22 +0000
State-Changed-Why:
Keeping this open for now, will explore the global workqueue idea and
maybe fix differently then


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.