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

2021-11-26 Thread Sachin Sant
> Running code patching self-tests ... > patch_instruction() called on invalid text address 0xe1011e58 from > test_code_patching+0x34/0xd6c > > Reported-by: Sachin Sant > Reported-by: Stephen Rothwell > Cc: Nicholas Piggin > Fixes: 8b8a8f0ab3f5 ("powerpc/code-patching: Improve verification

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

2021-11-26 Thread Christophe Leroy
Le 26/11/2021 à 08:39, Christophe Leroy a écrit : Commit 8b8a8f0ab3f5 ("powerpc/code-patching: Improve verification of patchability") introduced a stricter verification of the patched area by checking it is proper kernel text. But as least two usages of patch_instruction() fall outside: - Cod

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

2021-11-25 Thread Christophe Leroy
Commit 8b8a8f0ab3f5 ("powerpc/code-patching: Improve verification of patchability") introduced a stricter verification of the patched area by checking it is proper kernel text. But as least two usages of patch_instruction() fall outside: - Code patching selftests, which use stack and vmalloc space