From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1FE0382E810; Fri, 22 Jan 2021 22:20:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1FE0382E810 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:20:23 +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:20:23 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27227 --- Comment #4 from Adam Stylinski --- It can be but not in the current test scenario I have. Doing vec_ld(15, pt= r) for the second half essentially means that the load will never span outside= the heap in the even that the address just so happens to be aligned, no? Basically the final unaligned loads in the last column are triggering asan = and in general are causing issues. I suspect the logic for unaligned stores are causing similar grief. I _thought_ I had been doing exactly what Apple had mentioned here: > Typically this means that a looping function will have to stop one loop i= teration before it reaches the end of the data run, and handle the last few= bytes in special case code.=20 Is this now broken or had I been doing the remainder peeling incorrectly all along? --=20 You are receiving this mail because: You are on the CC list for the bug.=