public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* bug in slab.c
@ 2007-07-29  7:37 Robert Schwebel
  2007-07-30  7:16 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Schwebel @ 2007-07-29  7:37 UTC (permalink / raw)
  To: linux-kernel

Hi,

My Dell Latitude D520 just dies with this BUG:

----------8<----------8<----------8<----------8<----------
Jul 29 09:30:00 localhost kernel: ------------[ cut here ]------------
Jul 29 09:30:00 localhost kernel: kernel BUG at mm/slab.c:2980!
Jul 29 09:30:00 localhost kernel: invalid opcode: 0000 [#1]
Jul 29 09:30:00 localhost kernel: PREEMPT SMP 
Jul 29 09:30:00 localhost kernel: Modules linked in: button psmouse hidp rfcomm l2cap hci_vhci dtl1_cs btuart_cs bt3c_cs bluecard_cs bf
usb bcm203x hci_uart michael_mic arc4 ecb ieee80211_crypt_tkip ieee80211_crypt_ccmp ipw3945 ieee80211 ieee80211_crypt i915 drm cpufreq_
ondemand cpufreq_userspace cpufreq_powersave speedstep_centrino freq_table nfs nfsd exportfs lockd nfs_acl sunrpc ac battery sbp2 loop 
pcmcia firmware_class snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_timer yenta_socket hci_usb rsrc_nonstatic snd serio_raw sound
core bluetooth i2c_i801 intel_agp pcmcia_core snd_page_alloc i2c_core rtc pcspkr evdev ext3 jbd mbcache sha256 aes cbc blkcipher usbhid
 dm_crypt dm_mirror dm_snapshot dm_mod sd_mod ohci1394 ieee1394 ata_piix b44 mii libata scsi_mod ehci_hcd uhci_hcd usbcore thermal proc
essor fan
Jul 29 09:30:00 localhost kernel: CPU:    1
Jul 29 09:30:00 localhost kernel: EIP:    0060:[<c0163ac4>]    Not tainted VLI
Jul 29 09:30:00 localhost kernel: EFLAGS: 00210046   (2.6.22.1 #1)
Jul 29 09:30:00 localhost kernel: EIP is at cache_alloc_refill+0xeb/0x447
Jul 29 09:30:00 localhost kernel: eax: 0000000f   ebx: 00000005   ecx: dffff4c0   edx: dffff4c0
Jul 29 09:30:00 localhost kernel: esi: e451e000   edi: 00000026   ebp: c18ea800   esp: edbedd90
Jul 29 09:30:00 localhost kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
Jul 29 09:30:00 localhost kernel: Process firefox-bin (pid: 3865, ti=edbec000 task=dfc02a50 task.ti=edbec000)
Jul 29 09:30:00 localhost kernel: Stack: 0000000f 000004d0 dffff4c0 dfffd2c0 00000000 00000000 00000001 00200202 
Jul 29 09:30:00 localhost kernel:        d63a0218 e60df3c0 dffff4c0 00200286 ef84c6c0 000004d0 c0163e6f ef84c6c0 
Jul 29 09:30:00 localhost kernel:        00000040 c0246212 00000000 dfcc2c40 e2c91740 000004d0 efd29740 00000000 
Jul 29 09:30:00 localhost kernel: Call Trace:
Jul 29 09:30:00 localhost kernel:  [<c0163e6f>] __kmalloc+0x4f/0x58
Jul 29 09:30:00 localhost kernel:  [<c0246212>] __alloc_skb+0x49/0xf5
Jul 29 09:30:00 localhost kernel:  [<c0242bef>] sock_alloc_send_skb+0x6e/0x196
Jul 29 09:30:00 localhost kernel:  [<c029a7d2>] unix_stream_sendmsg+0x14d/0x309
Jul 29 09:30:00 localhost kernel:  [<c02401d3>] sock_aio_write+0xf9/0x105
Jul 29 09:30:00 localhost kernel:  [<c016677b>] do_sync_write+0xc7/0x10a
Jul 29 09:30:00 localhost kernel:  [<c0131fac>] autoremove_wake_function+0x0/0x35
Jul 29 09:30:00 localhost kernel:  [<c02405a2>] sock_ioctl+0x1a2/0x1c1
Jul 29 09:30:00 localhost kernel:  [<c0240400>] sock_ioctl+0x0/0x1c1
Jul 29 09:30:00 localhost kernel:  [<c0166f73>] vfs_write+0xbc/0x12a
Jul 29 09:30:00 localhost kernel:  [<c01674ea>] sys_write+0x41/0x67
Jul 29 09:30:00 localhost kernel:  [<c0103d42>] sysenter_past_esp+0x5f/0x85
Jul 29 09:30:00 localhost kernel:  =======================
Jul 29 09:30:00 localhost kernel: Code: 8b 30 39 c6 75 19 c7 40 38 01 00 00 00 8b 70 10 8b 44 24 0c 83 c0 10 39 c6 0f 84 9e 00 00 00 8b
 54 24 08 8b 42 20 39 46 10 72 2d <0f> 0b eb fe 8b 44 24 08 8b 5e 14 8b 4d 00 8b 50 14 8b 04 24 0f 
Jul 29 09:30:00 localhost kernel: EIP: [<c0163ac4>] cache_alloc_refill+0xeb/0x447 SS:ESP 0068:edbedd90
Jul 29 09:30:00 localhost kernel: note: firefox-bin[3865] exited with preempt_count 1
Jul 29 09:30:03 localhost kernel: ipw3945: Detected geography ABG (13 802.11bg channels, 23 802.11a channels)
----------8<----------8<----------8<----------8<----------

root@thebe:~# uname -a
Linux thebe 2.6.22.1 #1 SMP PREEMPT Fri Jul 13 08:23:52 CEST 2007 i686 GNU/Linux

The only non-standard thing is the ipw drivers (ipw3945-1.2.1).

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


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

* Re: bug in slab.c
  2007-07-29  7:37 bug in slab.c Robert Schwebel
@ 2007-07-30  7:16 ` Andrew Morton
  2007-07-30 18:03   ` Robert Schwebel
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-07-30  7:16 UTC (permalink / raw)
  To: Robert Schwebel; +Cc: linux-kernel, Christoph Lameter, Pekka Enberg

On Sun, 29 Jul 2007 09:37:39 +0200 Robert Schwebel <r.schwebel@pengutronix.de> wrote:

> Hi,
> 
> My Dell Latitude D520 just dies with this BUG:

Reproducible, I assume.

> ----------8<----------8<----------8<----------8<----------
> Jul 29 09:30:00 localhost kernel: ------------[ cut here ]------------
> Jul 29 09:30:00 localhost kernel: kernel BUG at mm/slab.c:2980!
> Jul 29 09:30:00 localhost kernel: invalid opcode: 0000 [#1]
> Jul 29 09:30:00 localhost kernel: PREEMPT SMP 
> Jul 29 09:30:00 localhost kernel: Modules linked in: button psmouse hidp rfcomm l2cap hci_vhci dtl1_cs btuart_cs bt3c_cs bluecard_cs bf
> usb bcm203x hci_uart michael_mic arc4 ecb ieee80211_crypt_tkip ieee80211_crypt_ccmp ipw3945 ieee80211 ieee80211_crypt i915 drm cpufreq_
> ondemand cpufreq_userspace cpufreq_powersave speedstep_centrino freq_table nfs nfsd exportfs lockd nfs_acl sunrpc ac battery sbp2 loop 
> pcmcia firmware_class snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_timer yenta_socket hci_usb rsrc_nonstatic snd serio_raw sound
> core bluetooth i2c_i801 intel_agp pcmcia_core snd_page_alloc i2c_core rtc pcspkr evdev ext3 jbd mbcache sha256 aes cbc blkcipher usbhid
>  dm_crypt dm_mirror dm_snapshot dm_mod sd_mod ohci1394 ieee1394 ata_piix b44 mii libata scsi_mod ehci_hcd uhci_hcd usbcore thermal proc
> essor fan
> Jul 29 09:30:00 localhost kernel: CPU:    1
> Jul 29 09:30:00 localhost kernel: EIP:    0060:[<c0163ac4>]    Not tainted VLI
> Jul 29 09:30:00 localhost kernel: EFLAGS: 00210046   (2.6.22.1 #1)
> Jul 29 09:30:00 localhost kernel: EIP is at cache_alloc_refill+0xeb/0x447
> Jul 29 09:30:00 localhost kernel: eax: 0000000f   ebx: 00000005   ecx: dffff4c0   edx: dffff4c0
> Jul 29 09:30:00 localhost kernel: esi: e451e000   edi: 00000026   ebp: c18ea800   esp: edbedd90
> Jul 29 09:30:00 localhost kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
> Jul 29 09:30:00 localhost kernel: Process firefox-bin (pid: 3865, ti=edbec000 task=dfc02a50 task.ti=edbec000)
> Jul 29 09:30:00 localhost kernel: Stack: 0000000f 000004d0 dffff4c0 dfffd2c0 00000000 00000000 00000001 00200202 
> Jul 29 09:30:00 localhost kernel:        d63a0218 e60df3c0 dffff4c0 00200286 ef84c6c0 000004d0 c0163e6f ef84c6c0 
> Jul 29 09:30:00 localhost kernel:        00000040 c0246212 00000000 dfcc2c40 e2c91740 000004d0 efd29740 00000000 
> Jul 29 09:30:00 localhost kernel: Call Trace:
> Jul 29 09:30:00 localhost kernel:  [<c0163e6f>] __kmalloc+0x4f/0x58
> Jul 29 09:30:00 localhost kernel:  [<c0246212>] __alloc_skb+0x49/0xf5
> Jul 29 09:30:00 localhost kernel:  [<c0242bef>] sock_alloc_send_skb+0x6e/0x196
> Jul 29 09:30:00 localhost kernel:  [<c029a7d2>] unix_stream_sendmsg+0x14d/0x309
> Jul 29 09:30:00 localhost kernel:  [<c02401d3>] sock_aio_write+0xf9/0x105
> Jul 29 09:30:00 localhost kernel:  [<c016677b>] do_sync_write+0xc7/0x10a
> Jul 29 09:30:00 localhost kernel:  [<c0131fac>] autoremove_wake_function+0x0/0x35
> Jul 29 09:30:00 localhost kernel:  [<c02405a2>] sock_ioctl+0x1a2/0x1c1
> Jul 29 09:30:00 localhost kernel:  [<c0240400>] sock_ioctl+0x0/0x1c1
> Jul 29 09:30:00 localhost kernel:  [<c0166f73>] vfs_write+0xbc/0x12a
> Jul 29 09:30:00 localhost kernel:  [<c01674ea>] sys_write+0x41/0x67
> Jul 29 09:30:00 localhost kernel:  [<c0103d42>] sysenter_past_esp+0x5f/0x85
> Jul 29 09:30:00 localhost kernel:  =======================
> Jul 29 09:30:00 localhost kernel: Code: 8b 30 39 c6 75 19 c7 40 38 01 00 00 00 8b 70 10 8b 44 24 0c 83 c0 10 39 c6 0f 84 9e 00 00 00 8b
>  54 24 08 8b 42 20 39 46 10 72 2d <0f> 0b eb fe 8b 44 24 08 8b 5e 14 8b 4d 00 8b 50 14 8b 04 24 0f 
> Jul 29 09:30:00 localhost kernel: EIP: [<c0163ac4>] cache_alloc_refill+0xeb/0x447 SS:ESP 0068:edbedd90
> Jul 29 09:30:00 localhost kernel: note: firefox-bin[3865] exited with preempt_count 1
> Jul 29 09:30:03 localhost kernel: ipw3945: Detected geography ABG (13 802.11bg channels, 23 802.11a channels)
> ----------8<----------8<----------8<----------8<----------
> 
> root@thebe:~# uname -a
> Linux thebe 2.6.22.1 #1 SMP PREEMPT Fri Jul 13 08:23:52 CEST 2007 i686 GNU/Linux
> 
> The only non-standard thing is the ipw drivers (ipw3945-1.2.1).
> 

Have you tried testing a kernel which doesn't have those drivers?

(It'd be a clever little driver to cause that BUG though)

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

* Re: bug in slab.c
  2007-07-30  7:16 ` Andrew Morton
@ 2007-07-30 18:03   ` Robert Schwebel
  2007-07-30 18:05     ` Christoph Lameter
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Schwebel @ 2007-07-30 18:03 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Christoph Lameter, Pekka Enberg

On Mon, Jul 30, 2007 at 12:16:04AM -0700, Andrew Morton wrote:
> > My Dell Latitude D520 just dies with this BUG:
>
> Reproducible, I assume.

No, happened only one time.

> Have you tried testing a kernel which doesn't have those drivers?
>
> (It'd be a clever little driver to cause that BUG though)

Yup :-) It didn't happen again in the meantime, but anyway. I'll keep
you informed.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


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

* Re: bug in slab.c
  2007-07-30 18:03   ` Robert Schwebel
@ 2007-07-30 18:05     ` Christoph Lameter
  2007-07-30 18:38       ` Robert Schwebel
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Lameter @ 2007-07-30 18:05 UTC (permalink / raw)
  To: Robert Schwebel; +Cc: Andrew Morton, linux-kernel, Pekka Enberg

On Mon, 30 Jul 2007, Robert Schwebel wrote:

> On Mon, Jul 30, 2007 at 12:16:04AM -0700, Andrew Morton wrote:
> > > My Dell Latitude D520 just dies with this BUG:
> >
> > Reproducible, I assume.
> 
> No, happened only one time.

Looks like the slab header was corrupted. If this can be reproduced then 
you need to enable slub debugging to find the kernel function that 
corrupts memory.

Otherwise it could be bad memory?


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

* Re: bug in slab.c
  2007-07-30 18:05     ` Christoph Lameter
@ 2007-07-30 18:38       ` Robert Schwebel
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Schwebel @ 2007-07-30 18:38 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Andrew Morton, linux-kernel, Pekka Enberg

On Mon, Jul 30, 2007 at 11:05:09AM -0700, Christoph Lameter wrote:
> Looks like the slab header was corrupted. If this can be reproduced then 
> you need to enable slub debugging to find the kernel function that 
> corrupts memory.

Yup, I'll try that if it happens again.

> Otherwise it could be bad memory?

Hmm, the box is relatively new, but one never knows. Ah, and it was
after I've resumed the machine from suspend-to-disk, but not right after
the start but some minutes later.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


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

end of thread, other threads:[~2007-07-30 18:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29  7:37 bug in slab.c Robert Schwebel
2007-07-30  7:16 ` Andrew Morton
2007-07-30 18:03   ` Robert Schwebel
2007-07-30 18:05     ` Christoph Lameter
2007-07-30 18:38       ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox