Skip to content
Commit 1ae3f2f1 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

ehci: apply limit to iTD/sidt descriptors



Commit "156a2e4d ehci: make idt processing more robust" tries to avoid a
DoS by the guest (create a circular iTD queue and let qemu ehci
emulation run in circles forever).  Unfortunately this has two problems:
First it misses the case of siTDs, and second it reportedly breaks
FreeBSD.

So lets go for a different approach: just count the number of iTDs and
siTDs we have seen per frame and apply a limit.  That should really
catch all cases now.

Reported-by: default avatar杜少博 <dushaobo@360.cn>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent c6c598ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment