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)
commit0566fa760d235c119cef92119efc3ab11486a08a
tree0eafbf21a87efb7de853a33c28bd14da90024d39
parentde21e1377c4fe65bfd8d31e446482c1bc2232997
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