2007-05-21 06:23:16

by Soeren Sonnenburg

[permalink] [raw]
Subject: 2.6.22-rc2 BUG: at include/linux/slub_def.h:77 kmalloc_index()

a regression (well I switched to slub) happens on boot...

...
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 16, io base 0x00004040
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 1-4: new high speed USB device using ehci_hcd and address 3
BUG: at include/linux/slub_def.h:77 kmalloc_index()
[<c0176448>] get_slab+0x1c8/0x250
[<c02f18f4>] usb_get_configuration+0x854/0xfa0
[<c01778ec>] __kmalloc_track_caller+0x1c/0x80
[<c0162e2a>] __kzalloc+0x1a/0x50
[<c02f18f4>] usb_get_configuration+0x854/0xfa0
[<c02ee560>] usb_start_wait_urb+0x70/0xb0
[<c02e9250>] hub_port_init+0x90/0x5f0
[<c02ea2e4>] usb_new_device+0x14/0x100
[<c02eae2b>] hub_thread+0x5ab/0xc30
[<c013f710>] autoremove_wake_function+0x0/0x50
[<c02ea880>] hub_thread+0x0/0xc30
[<c013f432>] kthread+0x42/0x70
[<c013f3f0>] kthread+0x0/0x70
[<c0104df3>] kernel_thread_helper+0x7/0x14
=======================
usb 1-4: configuration #1 chosen from 1 choice
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
usb 4-2: new full speed USB device using uhci_hcd and address 2
...
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.


2007-05-21 08:09:53

by Jiri Slaby

[permalink] [raw]
Subject: Re: 2.6.22-rc2 BUG: at include/linux/slub_def.h:77 kmalloc_index()

Soeren Sonnenburg napsal(a):
> a regression (well I switched to slub) happens on boot...
>
> ...
> hub 4-0:1.0: USB hub found
> hub 4-0:1.0: 2 ports detected
> ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:1d.3 to 64
> uhci_hcd 0000:00:1d.3: UHCI Host Controller
> uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
> uhci_hcd 0000:00:1d.3: irq 16, io base 0x00004040
> usb usb5: configuration #1 chosen from 1 choice
> hub 5-0:1.0: USB hub found
> hub 5-0:1.0: 2 ports detected
> usb 1-4: new high speed USB device using ehci_hcd and address 3
> BUG: at include/linux/slub_def.h:77 kmalloc_index()
> [<c0176448>] get_slab+0x1c8/0x250
> [<c02f18f4>] usb_get_configuration+0x854/0xfa0
> [<c01778ec>] __kmalloc_track_caller+0x1c/0x80
> [<c0162e2a>] __kzalloc+0x1a/0x50
> [<c02f18f4>] usb_get_configuration+0x854/0xfa0
> [<c02ee560>] usb_start_wait_urb+0x70/0xb0
> [<c02e9250>] hub_port_init+0x90/0x5f0
> [<c02ea2e4>] usb_new_device+0x14/0x100
> [<c02eae2b>] hub_thread+0x5ab/0xc30
> [<c013f710>] autoremove_wake_function+0x0/0x50
> [<c02ea880>] hub_thread+0x0/0xc30
> [<c013f432>] kthread+0x42/0x70
> [<c013f3f0>] kthread+0x0/0x70
> [<c0104df3>] kernel_thread_helper+0x7/0x14
> =======================
> usb 1-4: configuration #1 chosen from 1 choice
> usb 2-2: new full speed USB device using uhci_hcd and address 2
> usb 2-2: configuration #1 chosen from 1 choice
> usb 4-2: new full speed USB device using uhci_hcd and address 2
> ...

Could you try this patch:
http://lkml.org/lkml/2007/5/19/171

thanks,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E

2007-05-21 08:35:14

by Soeren Sonnenburg

[permalink] [raw]
Subject: Re: 2.6.22-rc2 BUG: at include/linux/slub_def.h:77 kmalloc_index()

On Mon, 2007-05-21 at 10:09 +0200, Jiri Slaby wrote:
> Soeren Sonnenburg napsal(a):
> > a regression (well I switched to slub) happens on boot...

> > BUG: at include/linux/slub_def.h:77 kmalloc_index()
> > [<c0176448>] get_slab+0x1c8/0x250
[...]
> Could you try this patch:
> http://lkml.org/lkml/2007/5/19/171

yes, that does fix the issue (at least I don't see the BUG: anymore on
boot). however I can no longer s2ram on 22rc2.

Soeren
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.

2007-05-21 08:38:54

by Jiri Slaby

[permalink] [raw]
Subject: Can't s2ram 22-rc2 [Was: 2.6.22-rc2 BUG: at slub_def.h:77]

Played with Cc list.

Soeren Sonnenburg napsal(a):
> On Mon, 2007-05-21 at 10:09 +0200, Jiri Slaby wrote:
>> Soeren Sonnenburg napsal(a):
>>> a regression (well I switched to slub) happens on boot...
>
>>> BUG: at include/linux/slub_def.h:77 kmalloc_index()
>>> [<c0176448>] get_slab+0x1c8/0x250
> [...]
>> Could you try this patch:
>> http://lkml.org/lkml/2007/5/19/171
>
> yes, that does fix the issue (at least I don't see the BUG: anymore on
> boot). however I can no longer s2ram on 22rc2.

Whit what kind of error or what happens?

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E

2007-05-21 09:56:21

by Soeren Sonnenburg

[permalink] [raw]
Subject: Re: Can't s2ram 22-rc2 [Was: 2.6.22-rc2 BUG: at slub_def.h:77]

On Mon, 2007-05-21 at 10:38 +0200, Jiri Slaby wrote:
> Played with Cc list.
>
> Soeren Sonnenburg napsal(a):
> > On Mon, 2007-05-21 at 10:09 +0200, Jiri Slaby wrote:
> >> Soeren Sonnenburg napsal(a):
> >>> a regression (well I switched to slub) happens on boot...
> >
> >>> BUG: at include/linux/slub_def.h:77 kmalloc_index()
> >>> [<c0176448>] get_slab+0x1c8/0x250
> > [...]
> >> Could you try this patch:
> >> http://lkml.org/lkml/2007/5/19/171
> >
> > yes, that does fix the issue (at least I don't see the BUG: anymore on
> > boot). however I can no longer s2ram on 22rc2.
>
> Whit what kind of error or what happens?

pci_device_suspend(): usb_hcd_pci_suspend+0x0/0x170() returns -16
suspend_device(): pci_device_suspend+0x0/0x60() returns -16
Could not suspend device 0000:00:1d.0: error -16

00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)

lspci/dmesg are in this mail:
http://marc.info/?l=linux-kernel&m=117973679209855&w=2

Soeren
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.

2007-05-21 10:59:52

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: Can't s2ram 22-rc2 [Was: 2.6.22-rc2 BUG: at slub_def.h:77]

On Monday, 21 May 2007 11:55, Soeren Sonnenburg wrote:
> On Mon, 2007-05-21 at 10:38 +0200, Jiri Slaby wrote:
> > Played with Cc list.
> >
> > Soeren Sonnenburg napsal(a):
> > > On Mon, 2007-05-21 at 10:09 +0200, Jiri Slaby wrote:
> > >> Soeren Sonnenburg napsal(a):
> > >>> a regression (well I switched to slub) happens on boot...
> > >
> > >>> BUG: at include/linux/slub_def.h:77 kmalloc_index()
> > >>> [<c0176448>] get_slab+0x1c8/0x250
> > > [...]
> > >> Could you try this patch:
> > >> http://lkml.org/lkml/2007/5/19/171
> > >
> > > yes, that does fix the issue (at least I don't see the BUG: anymore on
> > > boot). however I can no longer s2ram on 22rc2.
> >
> > Whit what kind of error or what happens?
>
> pci_device_suspend(): usb_hcd_pci_suspend+0x0/0x170() returns -16
> suspend_device(): pci_device_suspend+0x0/0x60() returns -16
> Could not suspend device 0000:00:1d.0: error -16
>
> 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
>
> lspci/dmesg are in this mail:
> http://marc.info/?l=linux-kernel&m=117973679209855&w=2

Well, I think Alan should have a look at this too.

Greetings,
Rafael