Skip to content

Commit

Permalink
um: Add missing apply_returns()
Browse files Browse the repository at this point in the history
Implement apply_returns() stub for UM, just like all the other patching
routines.

Fixes: 15e6722 ("x86: Undo return-thunk damage")
Reported-by: Randy Dunlap <rdunlap@infradead.org)
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Peter Zijlstra authored and Richard Weinberger committed Jul 17, 2022
1 parent dda520d commit 637285e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/um/kernel/um_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
Expand Down

0 comments on commit 637285e

Please sign in to comment.