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


Reply via email to