[v3] powerpc: Add support for function error injection

Michael Ellerman patch-notifications at ellerman.id.au
Mon Oct 22 20:34:43 AEDT 2018


On Thu, 2018-06-07 at 09:52:02 UTC, "Naveen N. Rao" wrote:
> 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 at linux.vnet.ibm.com>
> Reviewed-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/7cd01b08d35f1b7d55686ed8cd57c9

cheers


More information about the Linuxppc-dev mailing list