All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes
@ 2016-07-18 14:35 Peter Maydell
  2016-07-18 14:35 ` [Qemu-devel] [PATCH 1/2] linux-user: Check for bad event numbers in epoll_wait Peter Maydell
  2016-07-18 14:36 ` [Qemu-devel] [PATCH 2/2] linux-user: Don't use alloca() for epoll_wait's epoll event array Peter Maydell
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Maydell @ 2016-07-18 14:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches, Riku Voipio

This patchset fixes a couple of minor problems in epoll_wait
and epoll_pwait:
 * we weren't checking an argument for sanity, so we would
   fail EFAULT rather than EINVAL for cases like negative
   lengths (thus failing an LTP testcase)
 * we were using alloca() to allocate an array whose length
   is set by the guest

Peter Maydell (2):
  linux-user: Check for bad event numbers in epoll_wait
  linux-user: Don't use alloca() for epoll_wait's epoll event array

 linux-user/syscall.c      | 22 ++++++++++++++++++----
 linux-user/syscall_defs.h |  3 +++
 2 files changed, 21 insertions(+), 4 deletions(-)

-- 
1.9.1

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 14:35 [Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes Peter Maydell
2016-07-18 14:35 ` [Qemu-devel] [PATCH 1/2] linux-user: Check for bad event numbers in epoll_wait Peter Maydell
2016-07-18 14:36 ` [Qemu-devel] [PATCH 2/2] linux-user: Don't use alloca() for epoll_wait's epoll event array Peter Maydell
2016-10-04 13:09   ` Peter Maydell
2016-10-05 18:42     ` Riku Voipio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.