* [Qemu-devel] [Bug 1581308] [NEW] ohci doesn't check the 'num-ports' property
@ 2016-05-13 4:23 Li Qiang
2016-05-23 9:31 ` [Qemu-devel] [Bug 1581308] " thh
2016-05-23 17:19 ` thh
0 siblings, 2 replies; 3+ messages in thread
From: Li Qiang @ 2016-05-13 4:23 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
command:
qemu-system-x86_64 -m 1024 -enable-kvm /root/centos6.img -enable-kvm -device pci-ohci,num-ports=100,masterbus=1
The ohci doesn't check the 'num-ports' property and would case an out-
of-bands write,crash the qemu process.
ohci->num_ports = num_ports;
if (masterbus) {
USBPort *ports[OHCI_MAX_PORTS];
for(i = 0; i < num_ports; i++) {
ports[i] = &ohci->rhport[i].port;
}
The version of qemu is 2.6.0 release from
http://wiki.qemu-project.org/download/qemu-2.6.0.tar.bz2
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1581308
Title:
ohci doesn't check the 'num-ports' property
Status in QEMU:
New
Bug description:
command:
qemu-system-x86_64 -m 1024 -enable-kvm /root/centos6.img -enable-kvm -device pci-ohci,num-ports=100,masterbus=1
The ohci doesn't check the 'num-ports' property and would case an out-
of-bands write,crash the qemu process.
ohci->num_ports = num_ports;
if (masterbus) {
USBPort *ports[OHCI_MAX_PORTS];
for(i = 0; i < num_ports; i++) {
ports[i] = &ohci->rhport[i].port;
}
The version of qemu is 2.6.0 release from
http://wiki.qemu-project.org/download/qemu-2.6.0.tar.bz2
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1581308/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [Bug 1581308] Re: ohci doesn't check the 'num-ports' property
2016-05-13 4:23 [Qemu-devel] [Bug 1581308] [NEW] ohci doesn't check the 'num-ports' property Li Qiang
@ 2016-05-23 9:31 ` thh
2016-05-23 17:19 ` thh
1 sibling, 0 replies; 3+ messages in thread
From: thh @ 2016-05-23 9:31 UTC (permalink / raw)
To: qemu-devel
I was able to reproduce the crash, and proposed now a fix on the qemu-
devel mailing list (see https://patchwork.ozlabs.org/patch/625092/ for
details)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1581308
Title:
ohci doesn't check the 'num-ports' property
Status in QEMU:
New
Bug description:
command:
qemu-system-x86_64 -m 1024 -enable-kvm /root/centos6.img -enable-kvm -device pci-ohci,num-ports=100,masterbus=1
The ohci doesn't check the 'num-ports' property and would case an out-
of-bands write,crash the qemu process.
ohci->num_ports = num_ports;
if (masterbus) {
USBPort *ports[OHCI_MAX_PORTS];
for(i = 0; i < num_ports; i++) {
ports[i] = &ohci->rhport[i].port;
}
The version of qemu is 2.6.0 release from
http://wiki.qemu-project.org/download/qemu-2.6.0.tar.bz2
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1581308/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [Bug 1581308] Re: ohci doesn't check the 'num-ports' property
2016-05-13 4:23 [Qemu-devel] [Bug 1581308] [NEW] ohci doesn't check the 'num-ports' property Li Qiang
2016-05-23 9:31 ` [Qemu-devel] [Bug 1581308] " thh
@ 2016-05-23 17:19 ` thh
1 sibling, 0 replies; 3+ messages in thread
From: thh @ 2016-05-23 17:19 UTC (permalink / raw)
To: qemu-devel
The fix has been included in the repository:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d400fc018b326104d26
Thanks for reporting the issue!
** Changed in: qemu
Status: New => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1581308
Title:
ohci doesn't check the 'num-ports' property
Status in QEMU:
Fix Released
Bug description:
command:
qemu-system-x86_64 -m 1024 -enable-kvm /root/centos6.img -enable-kvm -device pci-ohci,num-ports=100,masterbus=1
The ohci doesn't check the 'num-ports' property and would case an out-
of-bands write,crash the qemu process.
ohci->num_ports = num_ports;
if (masterbus) {
USBPort *ports[OHCI_MAX_PORTS];
for(i = 0; i < num_ports; i++) {
ports[i] = &ohci->rhport[i].port;
}
The version of qemu is 2.6.0 release from
http://wiki.qemu-project.org/download/qemu-2.6.0.tar.bz2
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1581308/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-23 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-13 4:23 [Qemu-devel] [Bug 1581308] [NEW] ohci doesn't check the 'num-ports' property Li Qiang
2016-05-23 9:31 ` [Qemu-devel] [Bug 1581308] " thh
2016-05-23 17:19 ` thh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.