[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes |
Date: |
Mon, 18 Jul 2016 15:35:58 +0100 |
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
- [Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes,
Peter Maydell <=