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)
Mon, Dec 9, 4:49 AM
Unknown Object (File)
Tue, Dec 3, 4:05 AM
Unknown Object (File)
Mon, Dec 2, 5:31 PM
Unknown Object (File)
Sun, Dec 1, 9:24 AM
Unknown Object (File)
Nov 25 2024, 12:13 PM
Unknown Object (File)
Nov 22 2024, 9:49 AM
Unknown Object (File)
Nov 16 2024, 1:29 AM
Unknown Object (File)
Nov 7 2024, 2:38 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