]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: Implement HAVE_LIVEPATCH
authorSong Liu <song@kernel.org>
Mon, 30 Jun 2025 17:45:02 +0000 (10:45 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 1 Jul 2025 14:18:53 +0000 (15:18 +0100)
commitfd1e0fd71f6552238573efa92fd3e6c324986ee3
tree30d1f9e5681ee1d796e673999fd55ab5bebdf088
parent805f13e403cd43bb88790642feef507108af6fc7
arm64: Implement HAVE_LIVEPATCH

Allocate a task flag used to represent the patch pending state for the
task. When a livepatch is being loaded or unloaded, the livepatch code
uses this flag to select the proper version of a being patched kernel
functions to use for current task.

In arch/arm64/Kconfig, select HAVE_LIVEPATCH and include proper Kconfig.

This is largely based on [1] by Suraj Jitindar Singh.

[1] https://lore.kernel.org/all/20210604235930.603-1-surajjs@amazon.com/

Cc: Suraj Jitindar Singh <surajjs@amazon.com>
Cc: Torsten Duwe <duwe@suse.de>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Tested-by: Breno Leitao <leitao@debian.org>
Tested-by: Andrea della Porta <andrea.porta@suse.com>
Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20250630174502.842486-1-song@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/thread_info.h
arch/arm64/kernel/entry-common.c