linux/arch/powerpc
Naveen N. Rao 7cd01b08d3 powerpc: Add support for function error injection
We implement regs_set_return_value() and override_function_with_return()
for this purpose.

On powerpc, a return from a function (blr) just branches to the location
contained in the link register. So, we can just update pt_regs rather
than redirecting execution to a dummy function that returns.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-10-20 13:26:43 +11:00
..
boot powerpc/boot: Build boot wrapper with optimisations 2018-10-13 22:21:25 +11:00
configs powerpc/config: Enable CONFIG_PRINTK_TIME 2018-10-03 15:40:06 +10:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include powerpc: Add support for function error injection 2018-10-20 13:26:43 +11:00
kernel powerpc/time: Fix clockevent_decrementer initalisation for PR KVM 2018-10-19 15:09:04 +11:00
kvm powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
lib powerpc: Add support for function error injection 2018-10-20 13:26:43 +11:00
math-emu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
net powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
oprofile powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
perf powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
platforms powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
tools powerpc: Add a checkpatch wrapper with our preferred settings 2018-08-07 21:49:25 +10:00
xmon powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
Kbuild powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
Kconfig powerpc: Add support for function error injection 2018-10-20 13:26:43 +11:00
Kconfig.debug powerpc: remove redundant 'default n' from Kconfig-s 2018-10-13 22:21:25 +11:00
Makefile powerpc: Move core kernel logic into arch/powerpc/Kbuild 2018-10-19 00:56:17 +11:00
Makefile.postlink License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00