Peter Maydell 2ba7fae3bd linux-user: Check for bad event numbers in epoll_wait
The kernel checks that the maxevents parameter to epoll_wait
is non-negative and not larger than EP_MAX_EVENTS. Add this
check to our implementation, so that:
 * we fail these cases EINVAL rather than EFAULT
 * we don't pass negative or overflowing values to the
   lock_user() size calculation

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2016-09-21 14:25:26 +03:00
..
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2016-06-16 18:39:03 +02:00
2016-09-15 15:32:22 +03:00
2016-06-26 13:17:21 +03:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00