From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 3EF993850413; Mon, 28 Jun 2021 10:36:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EF993850413 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc] arm: align stack in clone [BZ 28020] X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/master X-Git-Oldrev: 30639e79d3370243ee5ef3a029204a4c71e15856 X-Git-Newrev: 3101b967874fb7d54a23f75fe93c310143e64af6 Message-Id: <20210628103621.3EF993850413@sourceware.org> Date: Mon, 28 Jun 2021 10:36:21 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2021 10:36:21 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3101b967874fb7d54a23f75fe93c310143e64af6 commit 3101b967874fb7d54a23f75fe93c310143e64af6 Author: Szabolcs Nagy Date: Fri Jun 25 19:58:59 2021 +0100 arm: align stack in clone [BZ 28020] The arm PCS requires 8 byte aligned stack at function entry. Previously unaligned stack could crash the clone child. Fixes bug 28020. Diff: --- sysdeps/unix/sysv/linux/arm/clone.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/arm/clone.S b/sysdeps/unix/sysv/linux/arm/clone.S index 44eefee3fc..05596cb7a5 100644 --- a/sysdeps/unix/sysv/linux/arm/clone.S +++ b/sysdeps/unix/sysv/linux/arm/clone.S @@ -31,6 +31,8 @@ ENTRY(__clone) @ sanity check args cmp r0, #0 + @ align sp + and r1, r1, #-8 ite ne cmpne r1, #0 moveq r0, #-EINVAL