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
F114357257: D30480.id90027.diff
Fri, Apr 11, 2:14 PM
Unknown Object (File)
Mar 12 2025, 5:41 PM
Unknown Object (File)
Mar 8 2025, 10:19 PM
Unknown Object (File)
Mar 5 2025, 9:46 AM
Unknown Object (File)
Feb 23 2025, 4:22 AM
Unknown Object (File)
Feb 21 2025, 9:30 PM
Unknown Object (File)
Feb 11 2025, 3:36 AM
Unknown Object (File)
Jan 30 2025, 10:18 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable