https://bugs.kde.org/show_bug.cgi?id=405201
Bug ID: 405201 Summary: Incorrect size of struct vki_siginfo on 64-bit Linux architectures Product: valgrind Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: memcheck Assignee: jsew...@acm.org Reporter: l...@altlinux.org Target Milestone: --- strace's "make check-valgind-memcheck" produces false reports about out-of-bounds writes on ptrace(PTRACE_GETSIGINFO) invocations on x86_64. This turned out to be a bug in the definition of struct vki_siginfo: its size is 136 which exceeds VKI_SI_MAX_SIZE==128 by 8 bytes. As all 64-bit architectures have union _sifields aligned to wordsize boundary, there is a hole between the preamble and _sifields. Unfortunately, __VKI_ARCH_SI_PREAMBLE_SIZE doesn't take this into account, this results to off-by-one bug in VKI_SI_PAD_SIZE and the whole structure being 8 bytes larger on 64-bit architectures. -- You are receiving this mail because: You are watching all bug changes.