]> git.baikalelectronics.ru Git - kernel.git/commit
arm/ftrace: Fix BE text poking
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Feb 2020 11:57:36 +0000 (12:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 11:56:26 +0000 (12:56 +0100)
commitf8e51719c090953bf0ac2e7b86ba369f428ea806
treee1fb23b396ab0d64257bdd8796808c1db05e3f92
parent0d78ec51044a91c1768af130e39b7f409856d338
arm/ftrace: Fix BE text poking

The __patch_text() function already applies __opcode_to_mem_*(), so
when __opcode_to_mem_*() is not the identity (BE*), it is applied
twice, wrecking the instruction.

Fixes: 42e51f187f86 ("arm/ftrace: Use __patch_text()")
Reported-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
arch/arm/kernel/ftrace.c