[LTP] [PATCH] cve-2015-3290: Bump up stack boundary requirement
Siddhesh Poyarekar
siddhesh@gotplt.org
Fri Apr 4 16:23:46 CEST 2025
On 2025-04-04 10:20, Martin Doucha wrote:
> On 04. 04. 25 16:00, Petr Vorel wrote:
>> Hi Siddhesh, Martin,
>>
>> Siddhesh, I was not aware -mpreferred-stack-boundary is not supported
>> on all archs:
>> powerpc64le-linux-gnu-gcc: error: unrecognized command-line option '-
>> mpreferred-stack-boundary=5'
Sorry, I overlooked the arch check, I'll fix that.
>> But it's even not supported on clang:
>> clang: error: unknown argument: '-mpreferred-stack-boundary=5'
>>
>> You need to use -mstack-alignment.
>
> It might be better to use -mno-avx then and wrap the CFLAGS setting in
> the same condition as the meltdown test right above it.
>
> ifneq (,$(filter $(HOST_CPU),x86 x86_64))
> ...
> endif
>
> I've tested -mno-avx as well so if it fixes the clobber problem I could
> not reproduce, you can submit patch v2 with my review tag.
Yes, I was just about to ask if -mno-avx would be acceptable :)
I'll send a v2, thanks!
Sid
More information about the ltp
mailing list