Mark Johnston e00bae5c18 kevent: Prohibit negative change and event list lengths
Previously, a negative change list length would be treated the same as
an empty change list.  A negative event list length would result in
bogus copyouts.  Make kevent(2) return EINVAL for both cases so that
application bugs are more easily found, and to be more robust against
future changes to kevent internals.

Reviewed by:	imp, kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30480
2021-05-27 15:52:20 -04:00
..
2021-04-09 23:46:24 +03:00
2020-10-09 19:12:44 +00:00
2020-04-30 22:08:40 +00:00
2021-05-13 16:23:44 +02:00
2018-10-20 22:39:35 +00:00
2021-04-09 23:46:24 +03:00
2020-04-30 22:08:40 +00:00
2021-02-23 20:08:10 +02:00
2021-04-09 23:46:24 +03:00
2020-12-16 09:02:09 +00:00
2021-05-13 09:53:08 +02:00
2020-04-30 22:08:40 +00:00
2021-04-28 12:18:25 +03:00
2019-12-11 17:37:53 +00:00