summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2023-09-22 10:12:25 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-23 11:14:39 +0200
commit617cc50c5a5f3d81457782115280f70639557ad5 (patch)
tree5c473306cbcc2672a6d3fac4ddb6036e0683cd95 /kernel
parente8c9d65f92e3fadaf7a2cd7dfb2796cc5e12e913 (diff)
downloadlinux-617cc50c5a5f3d81457782115280f70639557ad5.tar.gz
linux-617cc50c5a5f3d81457782115280f70639557ad5.tar.bz2
linux-617cc50c5a5f3d81457782115280f70639557ad5.zip
x86,static_call: Fix static-call vs return-thunk
commit aee9d30b9744d677509ef790f30f3a24c7841c3d upstream. Commit 7825451fa4dc ("static_call: Add call depth tracking support") failed to realize the problem fixed there is not specific to call depth tracking but applies to all return-thunk uses. Move the fix to the appropriate place and condition. Fixes: ee88d363d156 ("x86,static_call: Use alternative RET encoding") Reported-by: David Kaplan <David.Kaplan@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Ingo Molnar <mingo@kernel.org> Tested-by: Borislav Petkov (AMD) <bp@alien8.de> Cc: <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions