* Re: XHCI Bug discovered in 3.6-RC6 (solution included)
[not found] <5057C55D.2060402@dd-wrt.com>
@ 2012-09-18 0:51 ` Sebastian Gottschall (DD-WRT)
2012-09-18 14:36 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Gottschall (DD-WRT) @ 2012-09-18 0:51 UTC (permalink / raw)
To: linux-kernel, linux-usb
this following function is missing a important NULL check. if DMI is not
available or not enabled in the kernel config (which is common in my
case, since its a ARM Platform with XHCI support)
the xhci-hcd driver will crash due nullpointer access since
dmi_get_system_info returns always NULL if DMI support is not enabled.
static bool compliance_mode_recovery_timer_quirk_check(void)
{
const char *dmi_product_name, *dmi_sys_vendor;
dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR);
if (!(strstr(dmi_sys_vendor, "Hewlett-Packard")))
return false;
if (strstr(dmi_product_name, "Z420") ||
strstr(dmi_product_name, "Z620") ||
strstr(dmi_product_name, "Z820"))
return true;
return false;
}
proposed patch: simply add
if (!dmi_sys_vendor || !dmi_product_name)
return false;
even better. disable the whole quirk handling for this case if
CONFIG_DMI is not set
--
Mit freundlichen Grüssen / Regards
Sebastian Gottschall / CTO
NewMedia-NET GmbH - DD-WRT
Firmensitz: Berliner Ring 101, 64625 Bensheim
Registergericht: Amtsgericht Darmstadt, HRB 25473
Geschäftsführer: Peter Steinhäuser, Christian Scheele
http://www.dd-wrt.com
email: s.gottschall@dd-wrt.com
Tel.: +496251-582650 / Fax: +496251-5826565
--
Mit freundlichen Grüssen / Regards
Sebastian Gottschall / CTO
NewMedia-NET GmbH - DD-WRT
Firmensitz: Berliner Ring 101, 64625 Bensheim
Registergericht: Amtsgericht Darmstadt, HRB 25473
Geschäftsführer: Peter Steinhäuser, Christian Scheele
http://www.dd-wrt.com
email:s.gottschall@dd-wrt.com
Tel.: +496251-582650 / Fax: +496251-5826565
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHCI Bug discovered in 3.6-RC6 (solution included)
2012-09-18 0:51 ` XHCI Bug discovered in 3.6-RC6 (solution included) Sebastian Gottschall (DD-WRT)
@ 2012-09-18 14:36 ` Greg KH
2012-09-25 9:42 ` Vivek Gautam
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2012-09-18 14:36 UTC (permalink / raw)
To: Sebastian Gottschall (DD-WRT); +Cc: linux-kernel, linux-usb
On Tue, Sep 18, 2012 at 02:51:57AM +0200, Sebastian Gottschall (DD-WRT) wrote:
> this following function is missing a important NULL check. if DMI is
> not available or not enabled in the kernel config (which is common
> in my case, since its a ARM Platform with XHCI support)
> the xhci-hcd driver will crash due nullpointer access since
> dmi_get_system_info returns always NULL if DMI support is not
> enabled.
>
> static bool compliance_mode_recovery_timer_quirk_check(void)
> {
> const char *dmi_product_name, *dmi_sys_vendor;
>
> dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
> dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR);
>
> if (!(strstr(dmi_sys_vendor, "Hewlett-Packard")))
> return false;
>
> if (strstr(dmi_product_name, "Z420") ||
> strstr(dmi_product_name, "Z620") ||
> strstr(dmi_product_name, "Z820"))
> return true;
>
> return false;
> }
>
> proposed patch: simply add
>
> if (!dmi_sys_vendor || !dmi_product_name)
> return false;
>
> even better. disable the whole quirk handling for this case if
> CONFIG_DMI is not set
Care to send a patch to fix this up?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHCI Bug discovered in 3.6-RC6 (solution included)
2012-09-18 14:36 ` Greg KH
@ 2012-09-25 9:42 ` Vivek Gautam
2012-09-25 13:40 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Vivek Gautam @ 2012-09-25 9:42 UTC (permalink / raw)
To: Greg KH; +Cc: Sebastian Gottschall (DD-WRT), linux-kernel, linux-usb
Hi
I have posted the required patch for this:
usb: host: xhci: Fix Null pointer dereferencing with 71c731a for non-x86 systems
Can we please get that in ?
On Tue, Sep 18, 2012 at 8:06 PM, Greg KH <greg@kroah.com> wrote:
> On Tue, Sep 18, 2012 at 02:51:57AM +0200, Sebastian Gottschall (DD-WRT) wrote:
>> this following function is missing a important NULL check. if DMI is
>> not available or not enabled in the kernel config (which is common
>> in my case, since its a ARM Platform with XHCI support)
>> the xhci-hcd driver will crash due nullpointer access since
>> dmi_get_system_info returns always NULL if DMI support is not
>> enabled.
>>
>> static bool compliance_mode_recovery_timer_quirk_check(void)
>> {
>> const char *dmi_product_name, *dmi_sys_vendor;
>>
>> dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
>> dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR);
>>
>> if (!(strstr(dmi_sys_vendor, "Hewlett-Packard")))
>> return false;
>>
>> if (strstr(dmi_product_name, "Z420") ||
>> strstr(dmi_product_name, "Z620") ||
>> strstr(dmi_product_name, "Z820"))
>> return true;
>>
>> return false;
>> }
>>
>> proposed patch: simply add
>>
>> if (!dmi_sys_vendor || !dmi_product_name)
>> return false;
>>
>> even better. disable the whole quirk handling for this case if
>> CONFIG_DMI is not set
>
> Care to send a patch to fix this up?
>
> thanks,
>
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks
vivek
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHCI Bug discovered in 3.6-RC6 (solution included)
2012-09-25 9:42 ` Vivek Gautam
@ 2012-09-25 13:40 ` Greg KH
2012-09-26 4:37 ` Vivek Gautam
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2012-09-25 13:40 UTC (permalink / raw)
To: Vivek Gautam; +Cc: Sebastian Gottschall (DD-WRT), linux-kernel, linux-usb
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
On Tue, Sep 25, 2012 at 03:12:33PM +0530, Vivek Gautam wrote:
> Hi
>
> I have posted the required patch for this:
> usb: host: xhci: Fix Null pointer dereferencing with 71c731a for non-x86 systems
You sent this last saturday, a mere 3 days ago, two of them on a
weekend, please be patient.
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHCI Bug discovered in 3.6-RC6 (solution included)
2012-09-25 13:40 ` Greg KH
@ 2012-09-26 4:37 ` Vivek Gautam
0 siblings, 0 replies; 5+ messages in thread
From: Vivek Gautam @ 2012-09-26 4:37 UTC (permalink / raw)
To: Greg KH; +Cc: Sebastian Gottschall (DD-WRT), linux-kernel, linux-usb
Apologies for that. I should have been rather a bit patient.
Best regards
Vivek
On Tue, Sep 25, 2012 at 7:10 PM, Greg KH <greg@kroah.com> wrote:
>
> A: No.
> Q: Should I include quotations after my reply?
>
> http://daringfireball.net/2007/07/on_top
>
> On Tue, Sep 25, 2012 at 03:12:33PM +0530, Vivek Gautam wrote:
>> Hi
>>
>> I have posted the required patch for this:
>> usb: host: xhci: Fix Null pointer dereferencing with 71c731a for non-x86 systems
>
> You sent this last saturday, a mere 3 days ago, two of them on a
> weekend, please be patient.
>
> greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-26 4:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5057C55D.2060402@dd-wrt.com>
2012-09-18 0:51 ` XHCI Bug discovered in 3.6-RC6 (solution included) Sebastian Gottschall (DD-WRT)
2012-09-18 14:36 ` Greg KH
2012-09-25 9:42 ` Vivek Gautam
2012-09-25 13:40 ` Greg KH
2012-09-26 4:37 ` Vivek Gautam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox