Skip to contentSkip to conversation

trace_usb_port_attach prints junk data

Qemu-devel Thomas 2 participants 2 messages Jul 17, 2016 – Apr 24, 2019

lore
Share & tools
lore

Thomas

author
#0 lore raw

Public bug reported:

Running qemu with tracing (-D ~/qemu_trace -d trace:\*) will result in a trace file with unprintable characters.

example: usb_port_attach bus 0, port 1, devspeed <90>l<DB>.<D8>U, portspeed full+high

The problem is in hw/usb/bus.c usb_mask_to_str. If speedmask doesn't match any of the defined speed nothing is written to *dest and uninitialized data is printed to the log.

This happens with a real usb device that is forwarded into the machine.

My qemu version is 2.6.0 but it looks like the problem exists in latest git also.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1603785

Title:
  trace_usb_port_attach prints junk data

Status in QEMU:
  New

Bug description:
  Running qemu with tracing (-D ~/qemu_trace -d trace:\*) will result in
  a trace file with unprintable characters.

  example: usb_port_attach bus 0, port 1, devspeed <90>l<DB>.<D8>U,
  portspeed full+high

  The problem is in hw/usb/bus.c usb_mask_to_str. If speedmask doesn't
  match any of the defined speed nothing is written to *dest and
  uninitialized data is printed to the log.

  This happens with a real usb device that is forwarded into the
  machine.

  My qemu version is 2.6.0 but it looks like the problem exists in
  latest git also.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1603785/+subscriptions
#1 lore raw

Patch has been included here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=5189e30b146ab39f9d

** Changed in: qemu
Status: In Progress => Fix Released

Signature · 29 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1603785

Title:
  trace_usb_port_attach prints junk data

Status in QEMU:
  Fix Released

Bug description:
  Running qemu with tracing (-D ~/qemu_trace -d trace:\*) will result in
  a trace file with unprintable characters.

  example: usb_port_attach bus 0, port 1, devspeed <90>l<DB>.<D8>U,
  portspeed full+high

  The problem is in hw/usb/bus.c usb_mask_to_str. If speedmask doesn't
  match any of the defined speed nothing is written to *dest and
  uninitialized data is printed to the log.

  This happens with a real usb device that is forwarded into the
  machine.

  My qemu version is 2.6.0 but it looks like the problem exists in
  latest git also.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1603785/+subscriptions