Received: from eggs.gnu.org ([2001:4830:134:3::10]:51329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmxcd-0005z7-27 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 02:36:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmxcY-0005a7-OV for qemu-devel@nongnu.org; Thu, 22 Sep 2016 02:36:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmxcY-0005Zj-Hn for qemu-devel@nongnu.org; Thu, 22 Sep 2016 02:36:34 -0400 Date: Thu, 22 Sep 2016 12:06:22 +0530 (IST) From: P J P In-Reply-To: <5925e77f-5b3d-ad38-c537-2066726866e3@redhat.com> Message-ID: References: <1474465547-31638-1-git-send-email-ppandit@redhat.com> <99c87ec2-40d3-3b7d-8e11-f2e90cc3a2ec@redhat.com> <5925e77f-5b3d-ad38-c537-2066726866e3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] net: mcf: check buffer descriptor length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Qemu Developers , Jason Wang , Li Qiang Hello Paolo, +-- On Wed, 21 Sep 2016, Paolo Bonzini wrote --+ | Not exactly, because addr changes on every call to mcf_fec_read_bd. True, but the initial address 's->tx_descriptor' and 's->etdsr' could be set by user in imx_fec_write(). If bd.flags is set to FEC_BD_W, addr is reset to initial s->tx_descriptor value of s->etdsr. if ((bd.flags & FEC_BD_W) != 0) { addr = s->etdsr; } | You can add a limit (e.g. 1024 or 2048 descriptors), but the patches are | incorrect. Okay, I'll send a revised patch. Thank you. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F