Bug 121061 - [ath] [panic] panic while ejecting ath(4)-adapter during shutdown
Summary: [ath] [panic] panic while ejecting ath(4)-adapter during shutdown
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-24 21:10 UTC by Martin
Modified: 2019-01-27 22:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2008-02-24 21:10:01 UTC
Ejecting the PCMCIA adapter WGT511T causes panic when a laptop is shutting down.

Here the backtrace:
#0  doadump () at pcpu.h:195
#1  0xc06bd69b in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc06bd96f in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc04ad309 in db_panic (addr=Could not find the frame base for "db_panic".
) at /usr/src/sys/ddb/db_command.c:433
#4  0xc04adc6c in db_command_loop () at /usr/src/sys/ddb/db_command.c:401
#5  0xc04af2b8 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:222
#6  0xc06e38de in kdb_trap (type=12, code=0, tf=0xe6b839e8)
    at /usr/src/sys/kern/subr_kdb.c:502
#7  0xc096bb59 in trap_fatal (frame=0xe6b839e8, eva=24)
    at /usr/src/sys/i386/i386/trap.c:890
#8  0xc096c3f4 in trap (frame=0xe6b839e8) at /usr/src/sys/i386/i386/trap.c:280
#9  0xc0953d3b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#10 0xc0779c09 in ieee80211_ioctl (ic=0xc4ab922c, cmd=2149345770, 
    data=0xc60c80c0 "ath0") at /usr/src/sys/net80211/ieee80211_ioctl.c:1257
#11 0xc04f045d in ath_ioctl (ifp=0xc402dc00, cmd=2149345770, 
    data=0xc60c80c0 "ath0") at /usr/src/sys/dev/ath/if_ath.c:5828
#12 0xc078c934 in in_control (so=0xc4682dec, cmd=2149345770, 
    data=0xc60c80c0 "ath0", ifp=0xc402dc00, td=0xc4384000)
    at /usr/src/sys/netinet/in.c:483
#13 0xc074d32f in ifioctl (so=0xc4682dec, cmd=2149345770, 
    data=0xc60c80c0 "ath0", td=0xc4384000) at /usr/src/sys/net/if.c:1888
#14 0xc06faf4d in soo_ioctl (fp=0xc460b510, cmd=2149345770, data=0xc60c80c0, 
    active_cred=0xc3f26a00, td=0xc4384000)
    at /usr/src/sys/kern/sys_socket.c:191
#15 0xc06f56d3 in kern_ioctl (td=0xc4384000, fd=3, com=2149345770, 
    data=0xc60c80c0 "ath0") at file.h:266
#16 0xc06f580b in ioctl (td=0xc4384000, uap=0xe6b83cfc)
    at /usr/src/sys/kern/sys_generic.c:570
#17 0xc096c030 in syscall (frame=0xe6b83d38)
    at /usr/src/sys/i386/i386/trap.c:1035
#18 0xc0953da0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196
#19 0x00000033 in ?? ()

How-To-Repeat: 1) Use halt -p or shutdown using your favourite display manager.
2) Eject the PCMCIA card during the shutdown sequence. I'm not sure if
   the PCMCIA was still associated at this point when it panic'ed, but I
   was using wireless LAN without problems before I shut down the laptop.
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-02-25 07:08:42 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer.
Comment 2 Sam Leffler freebsd_committer freebsd_triage 2008-02-25 17:19:23 UTC
Responsible Changed
From-To: freebsd-net->sam

assign to the correct person
Comment 3 Adrian Chadd freebsd_committer freebsd_triage 2012-11-29 20:26:26 UTC
Responsible Changed
From-To: sam->freebsd-wireless

Flip to maintainer email list.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:43:46 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 5 Andriy Voskoboinyk freebsd_committer freebsd_triage 2019-01-27 22:51:56 UTC
This code path does not exist since base r178354 and the last well-known (rare, but anyway) ioctl race was fixed in base r343213; I don't think this issue is still relevant.