aboutsummaryrefslogtreecommitdiff
path: root/default-configs/tilegx-linux-user.mak
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2016-02-19 15:33:58 +0800
committerGerd Hoffmann <kraxel@redhat.com>2016-02-23 10:38:01 +0100
commit5f77e06baa84323e5bbc96c2c7f4fe627078b210 (patch)
tree14988e1e4f582f689658be931b4bc48f4bb69b81 /default-configs/tilegx-linux-user.mak
parentfe3c546c5ff2a6210f9a4d8561cc64051ca8603e (diff)
usb: add pid check at the first of uhci_handle_td()
pid can be gotten from uhci device memory in uhci_handle_td(), so the guest can trigger assert qemu if we get an invalid pid. And the uhci spec 2.1.2 tells us The Host Controller sets Host Controller Process Error bit to 1 when it detects a fatal error and indicates that the Host Controller suffered a consistency check failure while processing a Transfer Descriptor. An example of a consistency check failure would be finding an illegal PID field while processing the packet header portion of the TD. When this error occurs, the Host Controller clears the Run/Stop bit in the Command register to prevent further schedule execution. We'd better to set UHCI_STS_HCPERR and kick an interrupt, check the pid value at the first of uhci_handle_td function. https://bugzilla.redhat.com/show_bug.cgi?id=1070027 Signed-off-by: Gonglei <arei.gonglei@huawei.com> Message-id: 1455867238-4720-1-git-send-email-arei.gonglei@huawei.com [ applied minor codestyle fix ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'default-configs/tilegx-linux-user.mak')
0 files changed, 0 insertions, 0 deletions