Page MenuHomeFreeBSD

kevent: Prohibit negative change and event list lengths
ClosedPublic

Authored by markj on May 26 2021, 6:14 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.