Page MenuHomeFreeBSD

Zero uninitialized part of struct ptrace_lwpinfo.
ClosedPublic

Authored by kib on Oct 26 2017, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 12:05 PM
Unknown Object (File)
Oct 3 2024, 12:54 AM
Unknown Object (File)
Oct 2 2024, 12:13 AM
Unknown Object (File)
Sep 29 2024, 7:22 PM
Unknown Object (File)
Sep 24 2024, 3:51 AM
Unknown Object (File)
Sep 8 2024, 2:15 AM
Unknown Object (File)
Sep 8 2024, 12:34 AM
Unknown Object (File)
Sep 7 2024, 4:27 PM
Subscribers

Diff Detail

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

Event Timeline

sys/kern/sys_process.c
1363 ↗(On Diff #34355)

I would be inclined to zero the whole struct. In my case I saw garbage leak in 'pl_child_pid' for a non-fork event. We should probably zero the entire pl32 before copying across as well in case there is padding (perhaps in fields added in the future)?

kib marked an inline comment as done.

Zero the whole struct ptrace_lwpinfo and ptrace_lwpinfo32.

This revision is now accepted and ready to land.Nov 8 2017, 10:10 PM
This revision was automatically updated to reflect the committed changes.