Received: from eggs.gnu.org ([2001:4830:134:3::10]:50227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as7jg-0002pU-79 for qemu-devel@nongnu.org; Mon, 18 Apr 2016 07:53:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as7jc-0006tg-6M for qemu-devel@nongnu.org; Mon, 18 Apr 2016 07:53:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as7jc-0006mb-1Y for qemu-devel@nongnu.org; Mon, 18 Apr 2016 07:52:56 -0400 Date: Mon, 18 Apr 2016 17:22:48 +0530 (IST) From: P J P In-Reply-To: <1460971643-1499-1-git-send-email-kraxel@redhat.com> Message-ID: References: <1460971643-1499-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 1/2] ehci: apply limit to itd/sidt descriptors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, dushaobo@360.cn +-- On Mon, 18 Apr 2016, Gerd Hoffmann wrote --+ | Commit "156a2e4 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). Unfortunaly this has two problems: | First it misses the case of sitds, and second it reportly 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. idt -> iTD sidt -> siTD Unfortualy -> Unfortunately reportly -> reportedly freebsd -> FreeBSD Perhaps it'll help to add "Fixes: 156a2e4(CVE-2015-8558)" to the commit log? (just a thought) Thank you. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F