From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21E71382E800; Fri, 22 Jan 2021 22:23:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21E71382E800 From: "kungfujesus06 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/27227] Memory corruption for altivec unaligned load / store Date: Fri, 22 Jan 2021 22:23:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.32 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kungfujesus06 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 22:23:51 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27227 --- Comment #5 from Adam Stylinski --- Apologies for my ignorance by the way, I've been mostly spoiled lately with= x86 and aarch64 which handle this to some degree for you in the uarch. I wrote this code a long time ago when I was just getting familiar with Altivec, so= I'm well aware what I was doing could have been completely wrong and/or stupid.= At the very least I could have done more to pipeline the unaligned loads so th= at the previous vector load for the second half was reused (I don't think GCC = can do this for me).=20=20 I'm hoping people who are intimately familiar with the ABI and heap layout = of big endian POWER4 can clarify if I'm wrong, the library is wrong, or both. --=20 You are receiving this mail because: You are on the CC list for the bug.=