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
Unknown Object (File)
Tue, Apr 23, 9:35 AM
Unknown Object (File)
Sun, Apr 21, 2:39 PM
Unknown Object (File)
Wed, Apr 17, 10:38 PM
Unknown Object (File)
Wed, Apr 17, 10:38 PM
Unknown Object (File)
Wed, Apr 17, 10:38 PM
Unknown Object (File)
Wed, Apr 17, 10:20 PM
Unknown Object (File)
Sun, Apr 14, 8:37 PM
Unknown Object (File)
Feb 6 2024, 4:35 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