[PATCH] arm64:uprobe fix the uprobe SWBP_INSN in big-endian

Will Deacon will at kernel.org
Mon Dec 5 07:43:02 PST 2022


On Fri, 2 Dec 2022 15:11:10 +0800 (CST), guo.ziliang at zte.com.cn wrote:
> From: junhua huang <huang.junhua at zte.com.cn>
> 
> We use uprobe in aarch64_be, which we found the tracee task would exit
> due to SIGILL when we enable the uprobe trace.
> We can see the replace inst from uprobe is not correct in aarch big-endian.
> As in Armv8-A, instruction fetches are always treated as little-endian,
> we should treat the UPROBE_SWBP_INSN as little-endian。
> 
> [...]

Applied to arm64 (for-next/insn), thanks!

[1/1] arm64:uprobe fix the uprobe SWBP_INSN in big-endian
      https://git.kernel.org/arm64/c/60f07e22a73d

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list