Skip to content

Commit

Permalink
um: Add missing apply_returns()
Browse files Browse the repository at this point in the history
commit 564d998 upstream.

Implement apply_returns() stub for UM, just like all the other patching
routines.

Fixes: 15e6722 ("x86: Undo return-thunk damage")
Reported-by: Randy Dunlap <[email protected])
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/Ys%2Ft45l%[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Peter Zijlstra authored and gregkh committed Jul 23, 2022
1 parent deacf52 commit daf898a
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 daf898a

Please sign in to comment.