linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Alan Stern" <stern@rowland.harvard.edu>,
	"Oliver Neukum" <oneukum@suse.de>, "Bjørn Mork" <bjorn@mork.no>,
	"Sarah Sharp" <sarah.a.sharp@linux.intel.com>,
	linux-kernel@vger.kernel.org,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"Lan, Tianyu" <tianyu.lan@intel.com>
Subject: Re: BUG: unable to handle kernel paging request in usb_match_id()
Date: Fri, 17 Aug 2012 10:00:46 +0800	[thread overview]
Message-ID: <20120817020046.GA24406@localhost> (raw)
In-Reply-To: <20120805165826.GB13913@kroah.com>

On Sun, Aug 05, 2012 at 09:58:26AM -0700, Greg KH wrote:
> On Sun, Aug 05, 2012 at 10:59:38AM +0800, Fengguang Wu wrote:
> > Hi all,
> > 
> > This line triggers an oops in kvm boot test:
> > 
> > usb_match_id():
> > ==>      748         for (; id->idVendor || id->idProduct || id->bDeviceClass ||
> >          749                id->bInterfaceClass || id->driver_info; id++) {
> >          750                 if (usb_match_one_id(interface, id))
> >          751                         return id;
> >          752         }
> > 
> > It's an old bug and happens also in linux 3.0. It's very reproducible
> > for the attached config. I can send the initrd (yocto-minimal-i386.cgz)
> > on your request in private email.
> 
> Odds are a driver without a terminating NULL for the device id list is
> causing this to fail.
> 
> What devices are in the system and what drivers are trying to be bound?

The last match is for: drivers/usb/misc/emi62.c

Located down by Tianyu's debug patch:

[    2.206708] usb_device_match: device 1-1:1.0, driver cytherm
[    2.207627] usb_device_match: device 1-1:1.0, driver emi62 - firmware loader
[    2.208769] BUG: unable to handle kernel paging request at c1f7478e
[    2.209726] IP: [<c14ac1c0>] usb_match_id+0x5b/0xcd

> --- a/drivers/usb/core/driver.c
> +++ b/drivers/usb/core/driver.c
> @@ -778,7 +778,8 @@ static int usb_device_match(struct device *dev, struct device_driver *drv)
>
>                 intf = to_usb_interface(dev);
>                 usb_drv = to_usb_driver(drv);
> -
> +
> +               pr_info("%s: device %s, driver %s \n", dev_name(dev), drv->name);
>                 id = usb_match_id(intf, usb_drv->id_table);
>                 if (id)
>                         return 1;

Thanks,
Fengguang

  reply	other threads:[~2012-08-17  2:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05  2:59 BUG: unable to handle kernel paging request in usb_match_id() Fengguang Wu
2012-08-05 16:58 ` Greg Kroah-Hartman
2012-08-17  2:00   ` Fengguang Wu [this message]
2012-08-17  3:48     ` Greg Kroah-Hartman
2012-08-17  5:44       ` Fengguang Wu
2012-08-17  8:52         ` Bjørn Mork
2012-08-17  9:07           ` Bjørn Mork
2012-08-17  9:27             ` Fengguang Wu
2012-08-17 10:24               ` Fengguang Wu
2012-08-17 12:16                 ` Ming Lei
2012-08-17 13:45                   ` Greg Kroah-Hartman
2012-08-17 14:38                   ` Alan Stern
2012-08-17 14:42                     ` Greg Kroah-Hartman
2012-08-18  0:58                       ` Ming Lei
2012-08-19 10:23                         ` Bjørn Mork
2012-08-19 14:35                           ` Greg Kroah-Hartman

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=20120817020046.GA24406@localhost \
    --to=fengguang.wu@intel.com \
    --cc=bjorn@mork.no \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.de \
    --cc=sarah.a.sharp@linux.intel.com \
    --cc=stern@rowland.harvard.edu \
    --cc=tianyu.lan@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).