Re: [PATCH 2/2] arm64: Implement HAVE_LIVEPATCH

From: Breno Leitao
Date: Thu Mar 13 2025 - 14:09:11 EST


On Fri, Mar 07, 2025 at 05:27:42PM -0800, Song Liu wrote:
> This is largely based on [1] by Suraj Jitindar Singh.
>
> Test coverage:
>
> - Passed manual tests with samples/livepatch.
> - Passed all but test-kprobe.sh in selftests/livepatch.
> test-kprobe.sh is expected to fail, because arm64 doesn't have
> KPROBES_ON_FTRACE.
> - Passed tests with kpatch-build [2]. (This version includes commits that
> are not merged to upstream kpatch yet).
>
> [1] https://lore.kernel.org/all/20210604235930.603-1-surajjs@xxxxxxxxxx/
> [2] https://github.com/liu-song-6/kpatch/tree/fb-6.13
> Cc: Suraj Jitindar Singh <surajjs@xxxxxxxxxx>
> Cc: Torsten Duwe <duwe@xxxxxxx>
> Signed-off-by: Song Liu <song@xxxxxxxxxx>

Tested-by: Breno Leitao <leitao@xxxxxxxxxx>

PS: I've tested this patchset with the examples from samples/ on a arm64
host, and they worked as expected.

Thanks
--breno