Skip to content

umap hangs during usb hub test case #9

@theactualanoid

Description

@theactualanoid

sudo python3 umap.py -P /dev/ttyUSB0 -s 09:00:00:C:6

........
Fuzzing:
2016/09/12 16:18:0709:00:00 - Hub : Default : Default
SUPPORTED
Class-specific data...
Hub class: 0006 - hub_bNbrPorts_null

<<< hangs forever here >>>

^C^CTraceback (most recent call last):
File "umap.py", line 270, in execute_fuzz_testcase
d.run()
File "/Documents/usbfuzzing/umap/USBDevice.py", line 127, in run
self.maxusb_app.service_irqs()
File "/Documents/usbfuzzing/umap/MAXUSBApp.py", line 231, in service_irqs
irq = self.read_register(self.reg_endpoint_irq)
File "/Documents/usbfuzzing/umap/MAXUSBApp.py", line 100, in read_register
resp = self.device.readcmd()
File "/Documents/usbfuzzing/umap/Facedancer.py", line 50, in readcmd
b = self.read(4)
File "/Documents/usbfuzzing/umap/Facedancer.py", line 36, in read
b = self.serialport.read(n)
File "/usr/local/lib/python3.5/dist-packages/serial/serialposix.py", line 461, in read
ready,, = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "umap.py", line 688, in
execute_fuzz_testcase (usbclass,usbsubclass,usbproto,testcases_hub_class[fuzztestcase],serial0)
File "umap.py", line 272, in execute_fuzz_testcase
d.disconnect()
File "/Documents/usbfuzzing/umap/USBDevice.py", line 113, in disconnect
self.maxusb_app.disconnect()
File "/Documents/usbfuzzing/umap/MAXUSBApp.py", line 140, in disconnect
self.write_register(self.reg_usb_control, self.usb_control_vbgate)
File "/Documents/usbfuzzing/umap/MAXUSBApp.py", line 118, in write_register
self.device.readcmd()
File "/Documents/usbfuzzing/umap/Facedancer.py", line 57, in readcmd
data = self.read(n)
File "/Documents/usbfuzzing/umap/Facedancer.py", line 36, in read
b = self.serialport.read(n)
File "/usr/local/lib/python3.5/dist-packages/serial/serialposix.py", line 461, in read
ready,, = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt

Checked dmesg: tons and tons of device reset commands for class 9 device.

Facedancer 21 leds are on solid during hang.

I patched my old kernel to handle this condition. System no longer hangs - umap does!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions