From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3ojW-0007mC-PR for qemu-devel@nongnu.org; Fri, 20 May 2016 14:01:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3ojV-0005xf-2c for qemu-devel@nongnu.org; Fri, 20 May 2016 14:01:09 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:57172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3ojU-0005wS-ST for qemu-devel@nongnu.org; Fri, 20 May 2016 14:01:08 -0400 From: Peter Maydell Date: Fri, 20 May 2016 19:00:55 +0100 Message-Id: <1463767257-20466-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] linux-user: fix some msgrcv edge cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org, Riku Voipio These patches fix a couple of issues with handling edge cases in our linux-user msgrcv implementation: * we weren't dealing with negative msgsz correctly (should fail EINVAL) * we were using g_malloc() rather than g_try_malloc() for an allocatino whose size is controlled by the guest (Both these were already handled correctly for msgsnd.) This fixes a hang in the Linux Test Project msgrcv03 test case. Peter Maydell (2): linux-user: Handle msgrcv error case correctly linux-user: Use g_try_malloc() in do_msgrcv() linux-user/syscall.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 1.9.1