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-07-19 16:18:11 +03:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:20:46 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-07-19 16:18:11 +03:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:20:46 +02:00
2016-07-12 16:19:16 +02:00
2016-08-04 16:36:53 +03:00
2016-09-14 12:25:14 +02:00
2016-05-27 14:49:49 +03:00
2007-10-14 16:27:31 +00:00
2016-07-12 16:19:16 +02:00
2016-09-21 14:24:47 +03:00
2016-07-19 15:22:33 +03:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2016-09-13 18:12:34 +03:00
2016-05-27 14:49:51 +03:00
2016-06-16 18:39:03 +02:00
2016-09-15 15:32:22 +03:00
2016-05-27 14:49:51 +03:00
2016-09-15 15:32:22 +03:00
2014-06-29 14:19:59 +03:00
2016-06-26 13:17:21 +03:00
2016-06-26 13:17:21 +03:00
2016-09-21 14:25:26 +03:00
2016-07-19 15:23:16 +03:00
2016-09-21 14:25:26 +03:00
2011-02-09 10:33:54 +02:00
2016-08-12 10:36:01 +01:00
2016-03-22 22:20:17 +01:00
2016-01-29 15:07:22 +00:00
2016-07-12 16:20:46 +02:00
2016-01-29 15:07:22 +00:00