mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Alexander Hoogerhuis <alexh@boxed.no>
Cc: linux-kernel@vger.kernel.org, marcel@holtmann.org
Subject: Re: 2.6.5-rc2-mm2
Date: Wed, 24 Mar 2004 12:16:14 -0800	[thread overview]
Message-ID: <20040324121614.10d22568.akpm@osdl.org> (raw)
In-Reply-To: <87smfynvhn.fsf@dorker.boxed.no>

Alexander Hoogerhuis <alexh@boxed.no> wrote:
>
> Andrew Morton <akpm@osdl.org> writes:
> >
> > [SNIP]
> >
>  
> I'm getting this oops when booting my shiny new HP nc6000 laptop
> (PM-1.6 with integrated bluetooth and stuff) with bluetooth enabled:
> 
> Bluetooth: HCI device and connection manager initialized
> Bluetooth: HCI socket layer initialized
> Bluetooth: HCI USB driver ver 2.5
> drivers/usb/core/usb.c: registered new driver hci_usb
> Unable to handle kernel NULL pointer dereference at virtual address 00000004
>  printing eip:
> e08c56be
> *pde = 00000000
> Oops: 0000 [#1]
> PREEMPT
> CPU:    0
> EIP:    0060:[<e08c56be>]    Not tainted VLI
> EFLAGS: 00010282   (2.6.5-rc2-mm2)
> EIP is at usb_disable_interface+0x11/0x3f [usbcore]
> eax: dea7f000   ebx: 00000000   ecx: c03a1310   edx: deb39080
> esi: 00000001   edi: 00000000   ebp: deb65d50   esp: deb65d40
> ds: 007b   es: 007b   ss: 0068
> Process khubd (pid: 5147, threadinfo=deb65000 task=deb423b0)
> Stack: dea7f000 dea7f000 00000001 00000002 deb65d88 e08c5904 00000001 00000002
>        00000001 00000000 00000000 00001388 00000000 ddab4db0 deb39080 00000000
>        ddab4b80 ddab4c38 deb65e34 e09419da 00000246 deb65dd8 00000018 00000003
> Call Trace:
>  [<e08c5904>] usb_set_interface+0x92/0x143 [usbcore]
>  [<e09419da>] hci_usb_probe+0x226/0x46e [hci_usb]
>  [<c01a675e>] inode_doinit_with_dentry+0x3e/0x59a
>  [<e08c0064>] usb_probe_interface+0x56/0x63 [usbcore]
>  [<c01fb727>] bus_match+0x35/0x5e
>  [<c01fb78f>] device_attach+0x3f/0x8f
>  [<c0166129>] dput+0x1c/0x252
>  [<c01fb945>] bus_add_device+0x67/0x9f
>  [<c01fa9d8>] device_add+0x94/0x128
>  [<e08c5c6d>] usb_set_configuration+0x1c9/0x251 [usbcore]
>  [<e08c0f87>] usb_new_device+0x23f/0x3ae [usbcore]
>  [<c011c8a7>] printk+0x121/0x172
>  [<e08c26c3>] hub_port_connect_change+0x172/0x265 [usbcore]
>  [<e08c2a3e>] hub_events+0x288/0x2fa [usbcore]
>  [<e08c2ae0>] hub_thread+0x30/0xdd [usbcore]
>  [<c0118aa1>] default_wake_function+0x0/0xc
>  [<e08c2ab0>] hub_thread+0x0/0xdd [usbcore]
>  [<c0105269>] kernel_thread_helper+0x5/0xb

As far as I can tell, this is impossible.  usb_set_interface() has just
checked that local variable `iface' is non-null, but the crash in
usb_disable_interface() says that incoming arg `intf' is indeed NULL.  So
colour me confused.



I do note a bug in drivers/bluetooth/hci_usb.c:hci_usb_probe(), but it
doesn't explain your oops:

#ifdef CONFIG_BT_HCIUSB_SCO
	if (isoc_iface) {
		BT_DBG("isoc ifnum %d alts %d", isoc_ifnum, isoc_alts);
		if (usb_set_interface(udev, isoc_ifnum, isoc_alts)) {
			BT_ERR("Can't set isoc interface settings");
			isoc_iface = NULL;
		}
		usb_driver_claim_interface(&hci_usb_driver, isoc_iface, husb);

If usb_set_interface() failed we pass a NULL isoc_iface into
usb_driver_claim_interface(), which will promptly return -EINVAL, which is
then cheerfully ignored.  The error handling here seems flakey.




  reply	other threads:[~2004-03-24 20:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24  7:25 2.6.5-rc2-mm2 Andrew Morton
2004-03-24  8:08 ` 2.6.5-rc2-mm2 Piet Delaney
2004-03-24  8:22 ` 2.6.5-rc2-mm2 Marc-Christian Petersen
2004-03-24  8:28   ` 2.6.5-rc2-mm2 Marc-Christian Petersen
2004-03-24 10:00 ` 2.6.5-rc2-mm2 Martin Zwickel
2004-03-24 10:05   ` 2.6.5-rc2-mm2 Andrew Morton
2004-03-24 10:14     ` 2.6.5-rc2-mm2 Martin Zwickel
2004-03-24 11:35   ` 2.6.5-rc2-mm2 Marc-Christian Petersen
2004-03-24 12:12     ` 2.6.5-rc2-mm2 Geert Uytterhoeven
2004-03-24 14:01 ` 2.6.5-rc2-mm2 Helge Hafting
2004-03-24 14:19   ` 2.6.5-rc2-mm2 Arjan van de Ven
2004-03-24 15:43     ` 2.6.5-rc2-mm2 Mark McPherson
2004-03-28 19:49     ` 2.6.5-rc2-mm2 Helge Hafting
2004-03-24 14:57 ` 2.6.5-rc2-mm2 Alexander Hoogerhuis
2004-03-24 20:16   ` Andrew Morton [this message]
2004-03-24 18:54 ` 2.6.5-rc2-mm2 Andreas Happe
2004-03-24 21:06   ` 2.6.5-rc2-mm2 Andrew Morton
2004-03-24 23:46     ` 2.6.5-rc2-mm2 Andreas Happe
2004-03-25 18:41       ` 2.6.5-rc2-mm2 Andreas Happe
2004-03-24 21:32   ` 2.6.5-rc2-mm2 Olaf Hering
2004-03-25 22:26 ` -mm: md-merging-fix causes ICE with gcc 2.95 Adrian Bunk
2004-04-01 13:49 ` 2.6.5-rc2-mm2 Mikael Pettersson
2004-04-01 19:30   ` 2.6.5-rc2-mm2 Andrew Morton
2004-04-01 21:46     ` 2.6.5-rc2-mm2 Mikael Pettersson
2004-03-24 23:49 2.6.5-rc2-mm2 Sid Boyce
2004-03-25  1:23 2.6.5-rc2-mm2 Sid Boyce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040324121614.10d22568.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=alexh@boxed.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®