Thread (13 messages) flat view 13 messages, 3 authors, 2018-10-02

Re: [PATCH 2/2] powerpc/64: Increase stack redzone for 64-bit kernel to 512 bytes

From: Bin Meng <hidden>
Date: 2018-10-01 01:13:35

Hi Nick,

On Mon, Oct 1, 2018 at 7:27 AM Nicholas Piggin [off-list ref] wrote:
On Sat, 29 Sep 2018 23:25:20 -0700
Bin Meng [off-list ref] wrote:
quoted
commit 573ebfa6601f ("powerpc: Increase stack redzone for 64-bit
userspace to 512 bytes") only changes stack userspace redzone size.
We need increase the kernel one to 512 bytes too per ABIv2 spec.
You're right we need 512 to be compatible with ABIv2, but as the
comment says, gcc limits this to 288 bytes so that's what is used
to save stack space. We can use a compiler version test to change
this if llvm or a new version of gcc does something different.
I believe what the comment says is for ABIv1. At the time when commit
573ebfa6601f was submitted, kernel had not switched to ABIv2 build
yet.

Regards,
Bin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help