Page MenuHomeFreeBSD

Plug kevent memory disclosure leaks.
ClosedPublic

Authored by markj on Nov 23 2018, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 22, 3:42 PM
Unknown Object (File)
Sat, Feb 22, 11:32 AM
Unknown Object (File)
Sat, Feb 8, 10:13 AM
Unknown Object (File)
Thu, Feb 6, 7:14 PM
Unknown Object (File)
Feb 1 2025, 1:40 AM
Unknown Object (File)
Jan 31 2025, 4:50 PM
Unknown Object (File)
Jan 21 2025, 9:17 AM
Unknown Object (File)
Jan 18 2025, 10:16 PM
Subscribers

Details

Summary

There are some places in the kernel where we register for events on
behalf of a userspace process. When the event triggers, the process
will get a full copy of the event structure.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21184
Build 20539: arc lint + arc unit

Event Timeline

sys/kern/kern_event.c
578

Isn't it enough to memset() once before the SLIST_FOREACH() loop ?

markj marked an inline comment as done.
  • Lift memset() out of the knote_fork() loop.
This revision is now accepted and ready to land.Nov 23 2018, 10:48 PM
This revision was automatically updated to reflect the committed changes.