Received: from eggs.gnu.org ([2001:4830:134:3::10]:59509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP9w3-0006IU-Dk for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP9w2-00046J-Lh for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:54:19 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:58348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP9w2-000468-Fb for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:54:18 -0400 From: Peter Maydell Date: Mon, 18 Jul 2016 15:35:58 +0100 Message-Id: <1468852560-9054-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] linux-user: minor epoll_wait fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org, 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