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)
Thu, Aug 27, 12:42 AM
Unknown Object (File)
Tue, Aug 25, 11:04 AM
Unknown Object (File)
Mon, Aug 24, 11:22 PM
Unknown Object (File)
Sat, Aug 22, 3:45 PM
Unknown Object (File)
Fri, Aug 21, 9:04 AM
Unknown Object (File)
Sat, Aug 15, 1:41 PM
Unknown Object (File)
Tue, Aug 11, 10:17 PM
Unknown Object (File)
Sun, Aug 9, 8:09 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39475
Build 36364: arc lint + arc unit