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)
Fri, Nov 28, 3:10 PM
Unknown Object (File)
Fri, Nov 28, 9:24 AM
Unknown Object (File)
Thu, Nov 27, 11:33 PM
Unknown Object (File)
Thu, Nov 27, 3:06 AM
Unknown Object (File)
Tue, Nov 25, 4:54 PM
Unknown Object (File)
Wed, Nov 19, 7:39 PM
Unknown Object (File)
Nov 3 2025, 1:29 AM
Unknown Object (File)
Oct 25 2025, 11:45 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39475
Build 36364: arc lint + arc unit