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)
Dec 23 2023, 12:33 AM
Unknown Object (File)
Oct 31 2023, 7:22 PM
Unknown Object (File)
Oct 24 2023, 2:37 AM
Unknown Object (File)
Oct 12 2023, 12:44 AM
Unknown Object (File)
Sep 20 2023, 3:53 PM
Unknown Object (File)
Sep 20 2023, 3:53 PM
Unknown Object (File)
Sep 20 2023, 3:50 PM
Unknown Object (File)
Sep 20 2023, 3:50 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.