From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agtju-0003sG-7a for qemu-devel@nongnu.org; Fri, 18 Mar 2016 08:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agtjr-0002fG-1Q for qemu-devel@nongnu.org; Fri, 18 Mar 2016 08:42:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agtjq-0002fC-SN for qemu-devel@nongnu.org; Fri, 18 Mar 2016 08:42:46 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 36D0E711C5 for ; Fri, 18 Mar 2016 12:42:46 +0000 (UTC) Message-ID: <1458304964.6882.46.camel@redhat.com> From: Gerd Hoffmann Date: Fri, 18 Mar 2016 13:42:44 +0100 In-Reply-To: <1457661106-9569-1-git-send-email-peterx@redhat.com> References: <1457661106-9569-1-git-send-email-peterx@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2] usb: fix unbounded stack warning for xhci_dma_write_u32s List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: pbonzini@redhat.com, qemu-devel@nongnu.org On Fr, 2016-03-11 at 09:51 +0800, Peter Xu wrote: > All the callers for xhci_dma_write_u32s() are using mostly 5 * uint32_t > in len. To avoid unbound stack warning for the function, make it > statically allocated, and assert when it's not big enough in the > future. Added to usb queue. thanks, Gerd