]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Roll IS_RFI() macro into IS_RFID()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 19 May 2021 10:47:18 +0000 (16:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 04:47:18 +0000 (14:47 +1000)
commite5460257bb02b933ab80e37f3c69a64a4f3eb0e8
tree0eafbf21a87efb7de853a33c28bd14da90024d39
parent4c73c3ea1eca2967ed37bc981b3446c024aed218
powerpc/kprobes: Roll IS_RFI() macro into IS_RFID()

In kprobes and xmon, we should exclude both 32-bit and 64-bit variants
of mtmsr and rfi instructions from being stepped. Have IS_RFID() also
detect a rfi instruction similar to IS_MTMSRD().

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/eee32e1b75dae85d471c89b4c0a123ad4b0aabf8.1621416666.git.naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/include/asm/sstep.h
arch/powerpc/kernel/kprobes.c