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, Sep 30, 2:24 AM
Unknown Object (File)
Wed, Sep 24, 11:04 AM
Unknown Object (File)
Fri, Sep 19, 3:12 AM
Unknown Object (File)
Sep 3 2025, 11:51 AM
Unknown Object (File)
Aug 31 2025, 8:32 PM
Unknown Object (File)
Aug 23 2025, 4:43 AM
Unknown Object (File)
Jul 25 2025, 12:02 AM
Unknown Object (File)
Jul 7 2025, 12:57 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

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.