[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] linux-user: fix some msgrcv edge cases

From: Peter Maydell
Subject: [Qemu-devel] [PATCH 0/2] linux-user: fix some msgrcv edge cases
Date: Fri, 20 May 2016 19:00:55 +0100

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(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]