https://bugs.kde.org/show_bug.cgi?id=XXXXXX
where XXXXXX is the bug number as listed below.
+379373 Fix syscall param msg->desc.port.name points to uninitialised byte(s)
+ on macOS 10.12
379748 Fix missing pselect syscall (OS X 10.11)
380397 s390x: __GI_strcspn() replacemenet needed
381162 possible array overrun in VEX register allocator
{
UWord a1; UWord a2; ULong a3; UWord a4;
munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
- PRINT("kernelrpc_mach_port_construct_trap(FIXME)"
- "(%lx,%lx,%llx,%lx)", a1, a2, a3, a4);
+ PRINT("kernelrpc_mach_port_construct_trap"
+ "(target: %s, options: %#lx, content: %llx, name: %p)",
+ name_for_port(a1), a2, a3, *(mach_port_name_t**)a4);
+ PRE_MEM_WRITE("kernelrpc_mach_port_construct_trap(name)", a4,
+ sizeof(mach_port_name_t*));
+}
+POST(kernelrpc_mach_port_construct_trap)
+{
+ UWord a1; UWord a2; ULong a3; UWord a4;
+ munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
+ PRINT("-> name:%p", *(mach_port_name_t**)a4);
+ if (ML_(safe_to_deref)((mach_port_name_t*)a4, sizeof(mach_port_name_t*))) {
+ POST_MEM_WRITE(a4, sizeof(mach_port_name_t*));
+ }
}
PRE(kernelrpc_mach_port_destruct_trap)
# endif
# if DARWIN_VERS >= DARWIN_10_9
- MACX_(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(24), kernelrpc_mach_port_construct_trap),
+ MACXY(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(24), kernelrpc_mach_port_construct_trap),
MACX_(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(25), kernelrpc_mach_port_destruct_trap),
# else
_____(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(24)),
obj:*GPUSupport.framework*GPUSupportMercury*
}
-{
- OSX1010:mach_msg_trap-1
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*libsystem_kernel.dylib*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
-{
- OSX1010:mach_msg_trap-2
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*SystemConfiguration.framework*SystemConfiguration*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's
# unavoidable due to BSD setenv() semantics.
{
obj:*GPUSupport.framework*GPUSupportMercury*
}
-{
- OSX1011:mach_msg_trap-1
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*libsystem_kernel.dylib*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
-{
- OSX1011:mach_msg_trap-2
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*SystemConfiguration.framework*SystemConfiguration*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's
# unavoidable due to BSD setenv() semantics.
{
obj:*GPUSupport.framework*GPUSupportMercury*
}
-{
- OSX1012:mach_msg_trap-1
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*libsystem_kernel.dylib*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
-{
- OSX1012:mach_msg_trap-2
- Memcheck:Param
- msg->desc.port.name
- fun:mach_msg_trap
- obj:*SystemConfiguration.framework*SystemConfiguration*
- obj:*SystemConfiguration.framework*SystemConfiguration*
-}
-
# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's
# unavoidable due to BSD setenv() semantics.
{