grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix invalid USB descriptor endless loop.


From: Melki Christian (consultant)
Subject: [PATCH] Fix invalid USB descriptor endless loop.
Date: Mon, 9 Sep 2013 06:22:04 +0000

Hi,

I discovered that on some PC's the USB stack would produce an invalid 
descriptor upon query without an error.
I don't know why this is the case, maybe broken hardware but I seriously doubt 
it.
GRUB doesn't handle TT's at all, Clearing TT's or resetting them. Maybe thats a 
case for stuck transactions?
The descriptor would contain 0 in length, or atleast the code would think that 
offset was the length
and cause an endless loop.
Maybe this type of parsing is completely avoidable but for now I just added a 
break condition.
GRUB should not hang on faulty devices.

BR,
Christian

Attachment: usb-invalid-desc.patch
Description: usb-invalid-desc.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]