Re: x86-64: Maintain 16-byte stack alignment

From: Ard Biesheuvel
Date: Wed Jan 11 2017 - 03:07:41 EST


On 11 January 2017 at 06:53, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
>
> On Jan 10, 2017 8:36 PM, "Herbert Xu" <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
>
>
> Sure we can ban the use of attribute aligned on stacks. But
> what about indirect uses through structures?
>
>
> It should be pretty trivial to add a sparse warning for that, though.
>

Couldn't we update the __aligned(x) macro to emit 32 if arch == x86
and x == 16? All other cases should work just fine afaict