Linux Input/HID development
 help / color / mirror / Atom feed
From: Christoph Fritz <chf.fritz@googlemail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: linux-usb <linux-input@vger.kernel.org>
Subject: Re: [BUG] hid NULL ptr deref on usb reset with hid disabled quirk
Date: Wed, 07 Apr 2010 19:01:41 +0200	[thread overview]
Message-ID: <1270659702.27948.9.camel@lovely> (raw)
In-Reply-To: <4BBC4B51.8060005@redhat.com>

Am Mittwoch, den 07.04.2010, 11:07 +0200 schrieb Hans de Goede:

> usbhid.quirks=0x1908:0x1315:0x4
> 
> To the kernel cmdline. But this results in triggering a bug in the hid
> driver. When a device has the ignore quirk (which the above command sets)

As I can see, 0x4 HID_QUIRK_IGNORE happens after add_device.

just a guess:

diff --cc drivers/input/serio/i8042-x86ia64io.h
index ead0494,924e8ed..0000000
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 2e2aa75..19e6a60 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1683,6 +1683,7 @@ static const struct hid_device_id hid_ignore_list[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_1_PHIDGETSERVO_20) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_8_8_4_IF_KIT) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_YEALINK, USB_DEVICE_ID_YEALINK_P1K_P4K_B2K) },
+	{ HID_USB_DEVICE(0x1908, 0x1315) },
 	{ }
 };



  reply	other threads:[~2010-04-07 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-07  9:07 [BUG] hid NULL ptr deref on usb reset with hid disabled quirk Hans de Goede
2010-04-07 17:01 ` Christoph Fritz [this message]
2010-04-07 18:03   ` Hans de Goede

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=1270659702.27948.9.camel@lovely \
    --to=chf.fritz@googlemail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-input@vger.kernel.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