[LTP] [PATCH] cve-2015-3290: Bump up stack boundary requirement

Martin Doucha mdoucha@suse.cz
Fri Apr 4 16:20:49 CEST 2025


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'
> 
> 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.

-- 
Martin Doucha   mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


More information about the ltp mailing list