From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEfW-0006Ta-7W for qemu-devel@nongnu.org; Fri, 31 Oct 2014 12:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkEfS-0002yW-41 for qemu-devel@nongnu.org; Fri, 31 Oct 2014 12:03:18 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:41599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEfR-0002xg-Qq for qemu-devel@nongnu.org; Fri, 31 Oct 2014 12:03:14 -0400 Received: by mail-la0-f52.google.com with SMTP id pv20so4715076lab.11 for ; Fri, 31 Oct 2014 09:03:12 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5453B2B8.8060709@redhat.com> Date: Fri, 31 Oct 2014 17:03:04 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1410799208-3250-1-git-send-email-afaerber@suse.de> In-Reply-To: <1410799208-3250-1-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 0/4] ivshmem security fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel@nongnu.org Cc: Peter Maydell , Sebastian Krahmer , "Michael S. Tsirkin" , David Marchand , Bruce Rogers , Sebastian Krahmer , Gerd Hoffmann , Stefan Hajnoczi , Cam Macdonell On 15/09/2014 18:40, Andreas Färber wrote: > Hello, > > This series tightens security on incoming data for ivshmem, originally sparked > by SUSE's security team (Sebastian Krahmer). I've combined them and tackled > 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 >= (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ärber (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(-) > These seem to have falled on the floor, and they're a dependency for Andrew's error_report cleanup, so I picked them up. Paolo