projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d16e0b2
)
um: Add missing apply_returns()
author
Peter Zijlstra
<peterz@infradead.org>
Thu, 14 Jul 2022 10:20:19 +0000
(12:20 +0200)
committer
Borislav Petkov
<bp@suse.de>
Thu, 14 Jul 2022 11:40:21 +0000
(13:40 +0200)
Implement apply_returns() stub for UM, just like all the other patching
routines.
Fixes: 15e67227c49a ("x86: Undo return-thunk damage")
Reported-by: Randy Dunlap <rdunlap@infradead.org)
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lore.kernel.org/r/Ys%2Ft45l%2FgarIrD0u@worktop.programming.kicks-ass.net
arch/um/kernel/um_arch.c
patch
|
blob
|
history
diff --git
a/arch/um/kernel/um_arch.c
b/arch/um/kernel/um_arch.c
index 0760e24f2ebabf38465c70275d6f2cda1cd35332..9838967d0b2f1032d8dd00f69394b21b141eef8c 100644
(file)
--- a/
arch/um/kernel/um_arch.c
+++ b/
arch/um/kernel/um_arch.c
@@
-432,6
+432,10
@@
void apply_retpolines(s32 *start, s32 *end)
{
}
+void apply_returns(s32 *start, s32 *end)
+{
+}
+
void apply_alternatives(struct alt_instr *start, struct alt_instr *end)
{
}