]> www.infradead.org Git - users/hch/block.git/commit
selftests: vDSO: align stack for O2-optimized memcpy
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 24 Sep 2024 11:47:23 +0000 (13:47 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 27 Sep 2024 18:17:12 +0000 (12:17 -0600)
commit4b721fcc094e9eb6dd4702df8d79ab11e120833d
treed84134206053c938c46606604b162d209d90487c
parenta0474b8d5974e142461ac7584c996feea167bcc1
selftests: vDSO: align stack for O2-optimized memcpy

When switching on -O2, gcc generates SSE2 instructions that assume a
16-byte aligned stack, which the standalone test's start point wasn't
aligning. Fix this with the usual alignment sequence.

Fixes: ecb8bd70d51 ("selftests: vDSO: build tests with O2 optimization")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202409241558.98e13f6f-oliver.sang@intel.com
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/vdso_standalone_test_x86.c