diff options
author | Peter Zijlstra <[email protected]> | 2020-04-01 16:38:19 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-04-22 10:53:50 +0200 |
commit | e25eea89bb8853763a22fa2547199cf96b571ba1 (patch) | |
tree | f766e439a5bb171c5c71a56943a684f0e6716723 /lib/mpi/mpi-add.c | |
parent | b746046238bb99b8f703c79f6d95357428fb6476 (diff) |
objtool: Introduce HINT_RET_OFFSET
Normally objtool ensures a function keeps the stack layout invariant.
But there is a useful exception, it is possible to stuff the return
stack in order to 'inject' a 'call':
push $fun
ret
In this case the invariant mentioned above is violated.
Add an objtool HINT to annotate this and allow a function exit with a
modified stack frame.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Miroslav Benes <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions