qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] linux-user: fix some msgrcv edge cases
@ 2016-05-20 18:00 Peter Maydell
  2016-05-20 18:00 ` [Qemu-devel] [PATCH 1/2] linux-user: Handle msgrcv error case correctly Peter Maydell
  2016-05-20 18:00 ` [Qemu-devel] [PATCH 2/2] linux-user: Use g_try_malloc() in do_msgrcv() Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2016-05-20 18:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches, 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-20 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-20 18:00 [Qemu-devel] [PATCH 0/2] linux-user: fix some msgrcv edge cases Peter Maydell
2016-05-20 18:00 ` [Qemu-devel] [PATCH 1/2] linux-user: Handle msgrcv error case correctly Peter Maydell
2016-05-20 18:00 ` [Qemu-devel] [PATCH 2/2] linux-user: Use g_try_malloc() in do_msgrcv() Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).