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

From: Miroslav Benes
Date: Wed Mar 12 2025 - 10:05:29 EST


Hi,

On Fri, 7 Mar 2025, 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.

Correct. The test should take into account and bail out.

> - 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>

Acked-by: Miroslav Benes <mbenes@xxxxxxx>

Also as mentioned in the other thread, parts of this patch will go once
arm64 is converted to generic entry infrastructure.

Thank you,
Miroslav