arm64: Add support for function error injection
Inspired by the commit 7cd01b08 ("powerpc: Add support for function error injection"), this patch supports function error injection for Arm64. This patch mainly support two functions: one is regs_set_return_value() which is used to overwrite the return value; the another function is override_function_with_return() which is to override the probed function returning and jump to its caller. Reviewed-by:Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by:
Leo Yan <leo.yan@linaro.org> Signed-off-by:
Will Deacon <will@kernel.org>
Showing
- arch/arm64/Kconfig 1 addition, 0 deletionsarch/arm64/Kconfig
- arch/arm64/include/asm/ptrace.h 5 additions, 0 deletionsarch/arm64/include/asm/ptrace.h
- arch/arm64/lib/Makefile 2 additions, 0 deletionsarch/arm64/lib/Makefile
- arch/arm64/lib/error-inject.c 18 additions, 0 deletionsarch/arm64/lib/error-inject.c
Loading
Please register or sign in to comment