linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel panic/oops hotplugging USB flash storage on MIPS
@ 2002-08-17  1:29 Tom Collins
  2002-08-17 16:53 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Collins @ 2002-08-17  1:29 UTC (permalink / raw)
  To: linux-hotplug

I'm doing development for a MIPS-based (little endian, Globespan IVR 
reference platform) product, and am attempting to add hotplug support 
for USB mass storage to my current 2.4.19 kernel (no modules -- 
everything compiled into kernel).  I'm not sure if this should go to 
hotplug-devel or usb-devel, so I'm sending to both groups.

The kernel works fine for plugging in a USB flash storage device when I 
don't have the hotplug features compiled in (shows up as /dev/sda, 
mountable, etc.).  When I compile them in, I get a kernel panic when I 
plug the USB flash in.

For now, /sbin/hotplug is just a copy of /bin/true.  It was originally a 
shell script, but I thought that might have been causing the panic.

I'm including part of the logs, but am still new to kernel debugging so 
I don't know how to match this file up with my System.map to provide 
useful information.  If someone wants to point me in the right 
direction, I'm willing to do some more work to track down the cause of 
the panic/oops.  I can tell you that System map for 0000002c (referenced 
in "Unable to handle kernel paging request below") is usbdevfs_cleanup.

It seems odd to me that the first two entries in my System.map are:
000000000000002c A usbdevfs_cleanup
00000000000000f8 A usb_stor_exit

All other entries in System.map start with ffffffff.

Also odd that usbdevfs_cleanup would get called if I don't have module 
support compiled in...

--
Tom Collins
tom@tomlogic.com

root@(none):/# cat /proc/sys/kernel/hotplug
/sbin/hotplug
root@(none):/# /sbin/hotplug
(plug USB flash device in here)
root@(none):/#   Vendor:           Model:                   Rev:
   Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 31936 512-byte hdwr sectors (16 MB)
sda: Write Protect is off
  sda1
Kernel unaligned instruction access in unaligned.c:do_ade, line 409:
$0 : 00000000 b000fc00 00000000 0fb82d15 808ed010 0fb82d04 00001000 
00000010
$8 : 00000010 808ed000 00000000 00000003 ffffffe8 00000400 00000400 
00000000
$16: 808ed000 1000001f 00000001 808ed000 ffffffff 7fff7678 004008c2 
0000000a
$24: 00000010 0fb9a950                   83cb2000 83cb3ee8 004008c2 
80139c4c
Hi : 00000000
Lo : 00000000
epc  : 80139a64    Not tainted
Status: b000fc03
Cause : 00800010
Process  (pid: 109, stackpageƒcb2000)
Stack: 83cb2000 83cb3f10 7fff7828 80107010 808ed000 00000000 00000001 
80139c4c
        b000fc03 1080002c 7fff7848 00000000 00000001 ffffffff 0fbac498 
7fff7270
        801088a8 80112b98 00000000 00000000 00000000 00000000 00000000 
7fff7e90
        00000000 0fbac4a0 00000fa5 00000002 0fb82d04 00000000 00000001 
0fbac460
        24242424 7efefeff 00000000 00000000 00000000 00000400 00000400 
00000000
        7fff7848 ...
Call Trace:
Code: afb00010  8f9103cc  00005021 <8e2b0010> 8e29001c  8e2d000c  
000b1143  000
Unable to handle kernel paging request at virtual address 0000002c, 
epc = 80170
Oops in fault.c:do_page_fault, line 206:
$0 : 00000000 802a0000 00000001 00000002 00000019 00000000 00000000 
802ffd50
$8 : b000fc01 0000000a 83cb3cb9 00000000 802e8b09 fffffffe 83cb3c76 
ffffffff
$16: 00000010 00000199 83cb2264 8025e490 8025e478 0000000b 004008c2 
0000000a
$24: 00000010 00000006                   83cb2000 83cb3d88 004008c2 
80118a50
Hi : 00000000
Lo : 00000012
epc  : 8017cbb0    Not tainted
Status: b000fc03
Cause : 00800008
Process  (pid: 109, stackpageƒcb2000)
Stack: 801152c4 00000199 83cb3e38 808ed000 8028c4e0 00000199 83cb2000 
8025e490
        80118a50 801189f0 83cb3e38 808ed000 83cb2000 83cb3de0 8025d3b8 
00000199
        83cb3e38 808ed000 ffffffff 7fff7678 80106aa4 80808400 8025c930 
83f7a000
        00000001 00000000 808ed000 83cb3e38 00000001 80106ac8 80c42e2c 
00000000
        0fb8b350 00400168 80108f18 80126a48 83cb2000 83cb3e40 7fff7828 
80107010
        808ed000 ...
Call Trace:
Code: 8f900268  1200002c  27920264 <8e05001c> 04a10002  00a01021  
24a27fff  000
Unable to handle kernel paging request at virtual address 0000002c, 
epc = 80170
Oops in fault.c:do_page_fault, line 206:
$0 : 00000000 b000fc00 00000001 00000000 00000000 b000fc01 00000000 
83cb3bf4
$8 : ffffffff 0000000a 83cb3ae4 00000000 802e8b09 fffffffe 83cb3a9c 
ffffffff
$16: 00000010 000000ce 83cb2264 8025e490 8025e478 0000000b 00000000 
0000000a
$24: 00000010 00000004                   83cb2000 83cb3bb0 004008c2 
80118a50
Hi : 00000000
Lo : 00000012
epc  : 8017cbb0    Not tainted
Status: b000fc03
Cause : 00800008
Process  (pid: 109, stackpageƒcb2000)
Stack: 8025dbd0 000000ce 83cb3cd8 0000002c 00000000 000000ce 83cb2000 
8025e490
        80118a50 801189f0 83cb3cd8 0000002c 83cb2000 83cb3c08 8025dbd0 
000000ce
        83cb3cd8 0000002c 00000000 83cb3cd8 80106aa4 80808400 8025c930 
83f7a000
        00000001 00000000 0000001c 00000199 83cb2000 8010bb74 8025db68 
0000002c
        8017cbb0 80118a50 807bc008 00030001 00004000 8025a86c 8011ee24 
802f88e8
        802a4894 ...
Call Trace:
Code: 8f900268  1200002c  27920264 <8e05001c> 04a10002  00a01021  
24a27fff  000
Unable to handle kernel paging request at virtual address 0000002c, 
epc = 80170
Oops in fault.c:do_page_fault, line 206:



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kernel panic/oops hotplugging USB flash storage on MIPS
  2002-08-17  1:29 kernel panic/oops hotplugging USB flash storage on MIPS Tom Collins
@ 2002-08-17 16:53 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2002-08-17 16:53 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Aug 16, 2002 at 06:29:54PM -0700, Tom Collins wrote:
> 
> I'm including part of the logs, but am still new to kernel debugging so 
> I don't know how to match this file up with my System.map to provide 
> useful information.

Can you run this through ksymoops?  It will provide the correct symbol
information for you.

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-17 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-17  1:29 kernel panic/oops hotplugging USB flash storage on MIPS Tom Collins
2002-08-17 16:53 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).