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)
Sep 21 2023, 5:36 PM
Unknown Object (File)
Sep 19 2023, 11:06 AM
Unknown Object (File)
Sep 11 2023, 4:52 AM
Unknown Object (File)
Sep 1 2023, 6:49 PM
Unknown Object (File)
Sep 1 2023, 6:49 PM
Unknown Object (File)
Sep 1 2023, 6:47 PM
Unknown Object (File)
Sep 1 2023, 6:44 PM
Unknown Object (File)
Sep 1 2023, 6:31 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.