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)
Wed, Nov 26, 3:02 AM
Unknown Object (File)
Sun, Nov 23, 11:48 AM
Unknown Object (File)
Sat, Nov 22, 4:20 AM
Unknown Object (File)
Fri, Nov 21, 9:45 PM
Unknown Object (File)
Fri, Nov 21, 4:43 AM
Unknown Object (File)
Fri, Nov 21, 4:40 AM
Unknown Object (File)
Fri, Nov 21, 4:37 AM
Unknown Object (File)
Fri, Nov 21, 4:37 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

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.