Revert "x86/ftrace: Use alternative RET encoding"
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 16 Aug 2022 08:26:56 +0000 (05:26 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:17:48 +0000 (15:17 +0200)
commitf6632763484c6078f65eff3fd0044cc2bc82fd18
tree8f8b9788635e2c6912734377ff5062e1ff850b05
parentcb69d4d6f709f87c94afa28ae64c501576692171
Revert "x86/ftrace: Use alternative RET encoding"

This reverts commit e54fcb0812faebd147de72bd37ad87cc4951c68c.

This temporarily reverts the backport of upstream commit
1f001e9da6bbf482311e45e48f53c2bd2179e59c. It was not correct to copy the
ftrace stub as it would contain a relative jump to the return thunk which
would not apply to the context where it was being copied to, leading to
ftrace support to be broken.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/ftrace.c