aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2021-05-20 13:50:41 +0000
committerMichael Ellerman <[email protected]>2021-06-16 13:35:57 +0000
commit036b5560bebc72c61d955ae0b115e8e69da8a563 (patch)
tree226eb46aff1b3c15de1c718e7b89864e55126ae9 /arch/powerpc/lib/code-patching.c
parentpowerpc/inst: Improve readability of get_user_instr() and friends (diff)
downloadkernel-036b5560bebc72c61d955ae0b115e8e69da8a563.tar.gz
kernel-036b5560bebc72c61d955ae0b115e8e69da8a563.zip
powerpc/inst: Avoid pointer dereferencing in ppc_inst_equal()
Avoid casting/dereferencing ppc_inst() as u64* , check each member of the struct when relevant. And remove the 0xff initialisation of the suffix for non prefixed instruction. An instruction with 0xff as a suffix might be invalid, but still is a prefixed instruction and has to be considered as this. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/d8b155e930b7a9708ca110e8ff0ace6713a7af75.1621516826.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions