[
https://issues.apache.org/jira/browse/MESOS-6835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron Wood updated MESOS-6835:
------------------------------
Description:
Currently in the Linux launcher when the stack is allocated and prepared for a
call to clone() it is not properly aligned. This is not an issue for x86 or x64
but for ARM64/AArch64 it is because of the requirement of having the stack
aligned to a 16 byte boundary. While x86 and x64 also expect the stack to have
a 16 byte aligned stack, it is not enforced.
Additionally, the way that the stack is currently allocated and passed to
clone() accidentally chops off one entry, making a stack overflow using those
missing 8 bytes a possibility. Fixing this while aligning the memory will fix
both the issue of the stack overflow issue as well as the SIGBUS crash.
https://reviews.apache.org/r/54996/
was:
Currently in the Linux launcher when the stack is allocated and prepared for a
call to clone() it is not properly aligned. This is not an issue for x86 or x64
but for ARM64/AArch64 it is because of the requirement of having the stack
aligned to a 16 byte boundary. While x86 and x64 also expect the stack to have
a 16 byte aligned stack, it is not enforced.
Additionally, the way that the stack is currently allocated and passed to
clone() accidentally chops off one entry, making a stack overflow using those
missing 8 bytes a possibility. Fixing this while aligning the memory will fix
both the issue of the stack overflow issue as well as the SIGBUS crash.
> Fix SIGBUS on ARM64/AArch64
> ---------------------------
>
> Key: MESOS-6835
> URL: https://issues.apache.org/jira/browse/MESOS-6835
> Project: Mesos
> Issue Type: Bug
> Components: security, stout
> Reporter: Aaron Wood
> Assignee: Aaron Wood
>
> Currently in the Linux launcher when the stack is allocated and prepared for
> a call to clone() it is not properly aligned. This is not an issue for x86 or
> x64 but for ARM64/AArch64 it is because of the requirement of having the
> stack aligned to a 16 byte boundary. While x86 and x64 also expect the stack
> to have a 16 byte aligned stack, it is not enforced.
> Additionally, the way that the stack is currently allocated and passed to
> clone() accidentally chops off one entry, making a stack overflow using those
> missing 8 bytes a possibility. Fixing this while aligning the memory will fix
> both the issue of the stack overflow issue as well as the SIGBUS crash.
> https://reviews.apache.org/r/54996/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)