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)
Tue, Apr 7, 7:55 AM
Unknown Object (File)
Tue, Mar 31, 2:43 PM
Unknown Object (File)
Mon, Mar 30, 6:31 PM
Unknown Object (File)
Mon, Mar 30, 5:19 PM
Unknown Object (File)
Mon, Mar 30, 10:48 AM
Unknown Object (File)
Mon, Mar 30, 4:45 AM
Unknown Object (File)
Tue, Mar 24, 12:39 PM
Unknown Object (File)
Sun, Mar 22, 4:11 AM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/kern_event.c
577 ↗(On Diff #51023)

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.