]> git.itanic.dy.fi Git - linux-stable/commit
Revert "x86/ftrace: Use alternative RET encoding"
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 14 Sep 2022 11:52:36 +0000 (14:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:38:33 +0000 (12:38 +0200)
commit33015556a943d6cbb18c555925a54b8c0e46f521
tree825c3c03de0cff17715e0be50628f4109a14d0b8
parent891f03f688de8418f44b32b88f6b4faed5b2aa81
Revert "x86/ftrace: Use alternative RET encoding"

This reverts commit 00b136bb6254e0abf6aaafe62c4da5f6c4fea4cb.

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: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/ftrace.c