Summary: | [PATCH] Syscall param msg->desc.port.name points to uninitialised byte(s) on macOS 10.12 | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Rhys Kidd <rhyskidd> |
Component: | general | Assignee: | Rhys Kidd <rhyskidd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | louis.brunner.fr, zerderr |
Priority: | NOR | ||
Version: | 3.13 SVN | ||
Target Milestone: | --- | ||
Platform: | macOS (DMG) | ||
OS: | macOS | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 365327 | ||
Attachments: | Define the kernelrpc_mach_port_construct_trap mach trap |
Description
Rhys Kidd
2017-04-30 01:07:16 UTC
Created attachment 105470 [details]
Define the kernelrpc_mach_port_construct_trap mach trap
The problem seems to be caused by a call to task_set_special_port with a port constructed with mach_port_construct (handled by kernelrpc_mach_port_construct_trap). The attached patch resolves the issue by implementing the checks in the PRE/POST of this trap.
Thanks for the patch Louis. A version of the patch landed in git as: 128fd6e Fix syscall param msg->desc.port.name on macOS 10.12. bz#379373 |