NetBSD Problem Report #35045

From www@NetBSD.org  Mon Nov 13 10:26:21 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 6258063B400; Mon, 13 Nov 2006 10:26:21 +0000 (UTC)
Message-Id: <20061113102621.6258063B400@narn.NetBSD.org>
Date: Mon, 13 Nov 2006 10:26:21 +0000 (UTC)
From: 1@ipex.ru
Reply-To: 1@ipex.ru
To: gnats-bugs@NetBSD.org
Subject: Netbsd 4.99.3 panic on ath0 mediaopt change
X-Send-Pr-Version: www-1.0

>Number:         35045
>Category:       port-i386
>Synopsis:       Netbsd 4.99.3 panic on ath0 mediaopt change
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 13 10:30:00 +0000 2006
>Last-Modified:  Sun Apr 04 09:41:30 +0000 2021
>Originator:     veider
>Release:        NetBSD 4.99.3
>Organization:
Darkzone Labs
>Environment:
NetBSD darkzone-mobile 4.99.3 NetBSD 4.99.3 (DARKZONE_MOBILE) #0: Sun Nov 12 22:02:44 MSK 2006  root@darkzone-mobile:/usr/obj/sys/arch/i386/compile/DARKZONE_MOBILE i386
>Description:
When changing mediaopt on ath interface (maybe not only ath) NetBSD 4.99.3 panics:

panic: fixed rate 3 not in rate set
Stopped in pid 1118.1 (ifconfig) ath netbsd:cpu_Debugger 0x4: leave

function stack is as follows:
cpu_Debugger
panic
ath_rate_ctl_reset
ath_newstate
ath_init
ath_media_change
ifmedia_ioctl
ieee80211_ioctl
ath_ioctl
ifioctl
sys_ioctl
syscall_plain
>How-To-Repeat:
# ifconfig ath0 media DS11 mediaopt hostap
# ifconfig ath0 up
# ifconfig ath0 media DS11 mediaopt monitor

panic..
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/35045 CVS commit: src
Date: Sat, 27 Jun 2020 05:07:08 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Sat Jun 27 05:07:08 UTC 2020

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

 Log Message:
 Add test cases for different 802.11 options. These include cases for
 PR kern/35045, PR kern/45745, and PR kern/55424.


 To generate a diff of this commit:
 cvs rdiff -u -r1.854 -r1.855 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.5 -r1.6 src/tests/sbin/ifconfig/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/sbin/ifconfig/t_woptions.sh

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

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-i386/35045: Netbsd 4.99.3 panic on ath0 mediaopt change
Date: Sun, 4 Apr 2021 12:27:29 +0300

 This bug is still present in -current as of source date
 2021.04.03.07.38.11.  Here's a backtrace:

 # ifconfig ath0 media DS11 mediaopt hostap
 # ifconfig ath0 up
 # ifconfig ath0 media DS11 mediaopt monitor
 panic: kernel diagnostic assertion "srate >= 0" failed: file "/tmp/build/2021.04.03.07.38.11-i386-baremetal/src/sys/dev/ic/athrate-sample.c", line 674 fixed rate 3 not in rate set
 [ 254.8563803] cpu0: Begin traceback...
 [ 254.8563803] vpanic(c1192b34,d9aa57f8,d9aa5834,c0538455,c1192b34,c111c1ff,c1192c1b,c119294c,2a2,3) at netbsd:vpanic+0x139
 [ 254.8563803] kern_assert(c1192b34,c111c1ff,c1192c1b,c119294c,2a2,3,c21d3c18,c3856004,c0a90764,c1427600) at netbsd:kern_assert+0x23
 [ 254.8563803] ath_rate_newassoc(c21d3000,c3856004,1,c21d3000,d9aa58bc,c0530265,c21d3000,4,0,c0a925a8) at netbsd:ath_rate_newassoc+0x424
 [ 254.8563803] ath_rate_newstate(c21d3000,4,0,c0a925a8,c1427600,d96b4000,8120,4,c237a000,c21d3000) at netbsd:ath_rate_newstate+0x39
 [ 254.8563803] ath_newstate(c21d3490,4,ffffffff,0,d9aa58e4,c21d3490,c21d3030,7,d,c21d3030) at netbsd:ath_newstate+0x2bb
 [ 254.8563803] ath_init(c21d3030,c21d3cd8,d9aa5928,c0d5f055,c21d3030,6,c20a2902,c24d4640,c21d3cd8,c21d3cd8) at netbsd:ath_init+0x228
 [ 254.8563803] ath_media_change(c21d3030,6,c20a2902,c24d4640,c21d3cd8,c21d3cd8,c21d3cd8,d9aa5964,c0d5f3c4,c21d3cd8) at netbsd:ath_media_change+0x39
 [ 254.8563803] ifmedia_change(c21d3cd8,c21d3030,187,0,d9aa5a14,8,0,c1924628,c2449d60,287) at netbsd:ifmedia_change+0x31
 [ 254.8563803] ifmedia_ioctl(c21d3030,c3765800,c21d3cd8,c0906937,0,0,c17eafa4,d9aa59d0,c0c1b2ba,d9aa59fc) at netbsd:ifmedia_ioctl+0xc5
 [ 254.8563803] ieee80211_ioctl(c21d3490,c0906937,c3765800,d7b118ff,9edee6b0,874d6d7e,d982f90a,c21d3490,0,89de1783) at netbsd:ieee80211_ioctl+0x519
 [ 254.8563803] ath_ioctl(c21d3030,c0906937,c3765800,c21d3030,c0906937,0,c21d3030,c3765800,c21d8843,0) at netbsd:ath_ioctl+0x70
 [ 254.8563803] doifioctl(c37b22b4,c0906937,c3765800,c24d4640,c2439cf0,c24df740,c0906937,d9aa5f68,c3765800,d9aa5f38) at netbsd:doifioctl+0x2e2
 [ 254.8563803] soo_ioctl(c24df740,c0906937,c3765800,c37c8580,c24d4640,d9aa5eac,c0c29203,c17bae24,c24df740,c3765800) at netbsd:soo_ioctl+0x168
 [ 254.8563803] sys_ioctl(c24d4640,d9aa5f68,d9aa5f60,c2082588,0,36,d9aa5f60,d9aa5f68,0,0) at netbsd:sys_ioctl+0x320
 [ 254.8563803] syscall() at netbsd:syscall+0x20c
 [ 254.8563803] --- syscall (number 54) ---
 [ 254.8563803] b0a6c7e7:
 [ 254.8563803] cpu0: End traceback...

 [ 254.8563803] dumping to dev 0,1 offset 1463
 [ 254.8563803] dump 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 succeeded

 I would be happy to test patches for this or other ath bugs.
 -- 
 Andreas Gustafsson, gson@gson.org

Responsible-Changed-From-To: port-i386-maintainer->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 04 Apr 2021 09:41:30 +0000
Responsible-Changed-Why:
take


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 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.