powerpc/kprobes: Use preempt_enable() rather than the no_resched variant
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 20 Oct 2022 17:28:59 +0000 (22:58 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Nov 2022 12:31:49 +0000 (23:31 +1100)
commit266b1991a433cd55bb86a933216b3f6762737d47
treedd84b5da1eb6b1273cfa1d762b06d7e25c55cdd4
parent04ec5d5782fb346c291a05a2efe59483d8ada4c4
powerpc/kprobes: Use preempt_enable() rather than the no_resched variant

preempt_enable_no_resched() is just the same as preempt_enable() when we
are in a irqs disabled context. kprobe_handler() and the post/fault
handlers are all called with irqs disabled. As such, convert those to
just use preempt_enable().

Reported-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/72639f75fe66f931ec8c2165276ffbfb0fe1006f.1666262278.git.naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/kernel/kprobes.c