NetBSD Problem Report #55389

From gson@gson.org  Mon Jun 15 08:42:48 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F3F611A9213
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 15 Jun 2020 08:42:47 +0000 (UTC)
Message-Id: <20200615084242.E535E253EE5@guava.gson.org>
Date: Mon, 15 Jun 2020 11:42:42 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: Repeated "ifconfig wpi0 list scan" causes panic
X-Send-Pr-Version: 3.95

>Number:         55389
>Category:       kern
>Synopsis:       Repeated "ifconfig wpi0 list scan" causes panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 15 08:45:00 +0000 2020
>Closed-Date:    Sun Mar 07 14:22:03 +0000 2021
>Last-Modified:  Sun Mar 07 14:22:03 +0000 2021
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2020.06.13.14.31.49
>Organization:
>Environment:
System: NetBSD
Architecture: i386
Machine: i386
>Description:

Running NetBSD-current/i386 on a Fujitsu-Siemens Amilo Pro V3205
laptop, whose built-in WiFi device attaches as wpi0, when I run
the following commands as root:

  ifconfig wpi0 up
  while true; do ifconfig wpi0 list scan; done

the machine panics within a few minutes.

dmesg output:

  https://www.gson.org/netbsd/bugs/wpi.panic/dmesg.txt

Panic message and backtrace:

  https://www.gson.org/netbsd/bugs/wpi.panic/panic.jpg

>How-To-Repeat:

See above.

>Fix:

>Release-Note:

>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55389 CVS commit: src
Date: Wed, 24 Jun 2020 09:11:26 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Wed Jun 24 09:11:26 UTC 2020

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/tests/sbin/ifconfig: Makefile
 Added Files:
 	src/tests/sbin/ifconfig: t_repeated_scan.sh

 Log Message:
 Add a test case for PR bin/55389.


 To generate a diff of this commit:
 cvs rdiff -u -r1.843 -r1.844 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.1 -r1.2 src/tests/sbin/ifconfig/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/sbin/ifconfig/t_repeated_scan.sh

 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: jakllsch@NetBSD.org
State-Changed-When: Sat, 06 Feb 2021 14:40:49 +0000
State-Changed-Why:
looks the same as kern/55975, for which a fix was committed


From: Andreas Gustafsson <gson@gson.org>
To: jakllsch@NetBSD.org
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/55389 (Repeated "ifconfig wpi0 list scan" causes panic)
Date: Sun, 7 Mar 2021 16:16:05 +0200

 On Feb 6, jakllsch@NetBSD.org wrote:
 > State-Changed-From-To: open->feedback
 > State-Changed-By: jakllsch@NetBSD.org
 > State-Changed-When: Sat, 06 Feb 2021 14:40:49 +0000
 > State-Changed-Why:
 > looks the same as kern/55975, for which a fix was committed

 After updating to -current built from source date 2021.03.07.10.56.18,
 I can confirm that the system no longer panics.  It still doesn't
 work, though - it completes a few scans, but then logs "wpi0: fatal
 firmware error" and stops scanning.  I figure that's a separate bug,
 so I will close this PR and file a new one.
 -- 
 Andreas Gustafsson, gson@gson.org

State-Changed-From-To: feedback->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Sun, 07 Mar 2021 14:22:03 +0000
State-Changed-Why:
The machine no longer panics.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.