Page MenuHomeFreeBSD

kevent: Prohibit negative change and event list lengths
ClosedPublic

Authored by markj on May 26 2021, 6:14 PM.
Tags
None
Referenced Files
F102012522: D30480.id90027.diff
Wed, Nov 6, 1:13 PM
Unknown Object (File)
Wed, Nov 6, 12:43 AM
Unknown Object (File)
Fri, Oct 25, 4:21 PM
Unknown Object (File)
Oct 5 2024, 12:31 PM
Unknown Object (File)
Oct 2 2024, 1:36 AM
Unknown Object (File)
Sep 23 2024, 4:56 PM
Unknown Object (File)
Sep 23 2024, 4:56 PM
Unknown Object (File)
Sep 23 2024, 4:56 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable