Re: [PATCH] powerpc/code-patching: Relax verification of patchability

From: Sachin Sant
Date: Fri Nov 26 2021 - 13:02:52 EST



> Running code patching self-tests ...
> patch_instruction() called on invalid text address 0xe1011e58 from test_code_patching+0x34/0xd6c
>
> Reported-by: Sachin Sant <sachinp@xxxxxxxxxxxxxxxxxx>
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Cc: Nicholas Piggin <npiggin@xxxxxxxxx>
> Fixes: 8b8a8f0ab3f5 ("powerpc/code-patching: Improve verification of patchability")
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
> ---
> arch/powerpc/lib/code-patching.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>

This fixes the problem for me.

Tested-by: Sachin Sant <sachinp@xxxxxxxxxxxxxxxxxx>

Thanks
-Sachin