Received: from eggs.gnu.org ([2001:4830:134:3::10]:50272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTZK6-0003tZ-UL for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTZK1-0006uR-7q for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:40:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52374 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTZK1-0006uG-1F for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:40:13 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 15 Sep 2014 18:40:04 +0200 Message-Id: <1410799208-3250-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 0/4] ivshmem security fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Sebastian Krahmer , "Michael S. Tsirkin" , David Marchand , Bruce Rogers , Sebastian Krahmer , Gerd Hoffmann , Stefan Hajnoczi , Cam Macdonell , =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello, This series tightens security on incoming data for ivshmem, originally sp= arked by SUSE's security team (Sebastian Krahmer). I've combined them and tackl= ed remaining review feedback. Regards, Andreas Changes from Sebastian's #2: * Rebased onto Stefan's patches * Dropped g_realloc() check (Stefan) * Fixed fd leak and appended a patch fixing another one (Stefan) * Simplified comment (Stefan) Changes from Stefan's series: * Modified to handle partial reads (Peter/Gerd) * Changed check from > to >=3D (Peter) Cc: Cam Macdonell Cc: Stefan Hajnoczi Cc: Michael S. Tsirkin Cc: Sebastian Krahmer Cc: Peter Maydell Cc: Gerd Hoffmann Cc: David Marchand Andreas F=C3=A4rber (1): ivshmem: Fix fd leak on error Sebastian Krahmer (1): ivshmem: Fix potential OOB r/w access Stefan Hajnoczi (2): ivshmem: Check ivshmem_read() size argument ivshmem: validate incoming_posn value from server hw/misc/ivshmem.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++= +----- 1 file changed, 60 insertions(+), 6 deletions(-) --=20 1.8.4.5