Bug 28020 - arm: clone does not align stack
Summary: arm: clone does not align stack
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.33
: P2 normal
Target Milestone: 2.34
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-28 10:22 UTC by Szabolcs Nagy
Modified: 2022-11-18 12:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szabolcs Nagy 2021-06-28 10:22:02 UTC
on arm clone should align stack to 8 bytes.

this causes

FAIL: misc/tst-misalign-clone
Comment 1 Sourceware Commits 2021-06-28 10:36:22 UTC
The master branch has been updated by Szabolcs Nagy <nsz@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3101b967874fb7d54a23f75fe93c310143e64af6

commit 3101b967874fb7d54a23f75fe93c310143e64af6
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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.
Comment 2 Szabolcs Nagy 2022-11-18 12:54:35 UTC
fixed for 2.34