[PATCH V2] riscv: kprobe: Fixup misaligned load text

Björn Töpel bjorn at kernel.org
Mon Feb 6 00:15:27 PST 2023


guoren at kernel.org writes:

> From: Guo Ren <guoren at linux.alibaba.com>
>
> The current kprobe would cause a misaligned load for the probe point.
> This patch fixup it with two half-word loads instead.
>
> Fixes: c22b0bcb1dd0 ("riscv: Add kprobes supported")
> Signed-off-by: Guo Ren <guoren at linux.alibaba.com>
> Signed-off-by: Guo Ren <guoren at kernel.org>
> Link: https://lore.kernel.org/linux-riscv/878rhig9zj.fsf@all.your.base.are.belong.to.us/
> Reported-by: Bjorn Topel <bjorn.topel at gmail.com>
> Cc: Jessica Clarke <jrtc27 at jrtc27.com>
> ---
> Changelog
> V2:
>  - Optimize coding convention (Thx Bjorn & Jessica)

Thank you for fixing this!

Reviewed-by: Björn Töpel <bjorn at kernel.org>



More information about the linux-riscv mailing list