diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2024-05-15 05:44:43 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-08-21 13:15:13 +0300 |
commit | 90d4fed5b273155c378b1d37595f2209f0a92bed (patch) | |
tree | eef4d69af5d08aa72b797f37dee3686de00223e8 /arch/powerpc/platforms | |
parent | dbf828aab466c6534711d1f1454c409ea68d18d0 (diff) | |
download | linux-90d4fed5b273155c378b1d37595f2209f0a92bed.tar.xz |
powerpc/64: Convert patch_instruction() to patch_u32()
This use of patch_instruction() is working on 32 bit data, and can fail
if the data looks like a prefixed instruction and the extra write
crosses a page boundary. Use patch_u32() to fix the write size.
Fixes: 8734b41b3efe ("powerpc/module_64: Fix livepatching for RO modules")
Link: https://lore.kernel.org/all/20230203004649.1f59dbd4@yea/
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Tested-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Naveen N Rao <naveen@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240515024445.236364-4-bgray@linux.ibm.com
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions