kernel_optimize_test/tools/include
Willy Tarreau 5e258640ba tools/nolibc: i386: fix initial stack alignment
commit ebbe0d8a449d183fa43b42d84fcb248e25303985 upstream.

After re-checking in the spec and comparing stack offsets with glibc,
The last pushed argument must be 16-byte aligned (i.e. aligned before the
call) so that in the callee esp+4 is multiple of 16, so the principle is
the 32-bit equivalent to what Ammar fixed for x86_64. It's possible that
32-bit code using SSE2 or MMX could have been affected. In addition the
frame pointer ought to be zero at the deepest level.

Link: https://gitlab.com/x86-psABIs/i386-ABI/-/wikis/Intel386-psABI
Cc: Ammar Faizi <ammar.faizi@students.amikom.ac.id>
Cc: stable@vger.kernel.org
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 10:53:42 +01:00
..
asm
asm-generic
linux tools lib: Adopt memchr_inv() from kernel 2021-09-26 14:08:57 +02:00
nolibc tools/nolibc: i386: fix initial stack alignment 2022-01-27 10:53:42 +01:00
tools
trace/events
uapi bpf: Fix a typo of reuseport map in bpf.h. 2021-09-15 09:50:31 +02:00
vdso