Skip to content

Commit 5720acf

Browse files
mirabJiri Kosina
authored andcommitted
livepatch: Make livepatch dependent on !TRIM_UNUSED_KSYMS
If TRIM_UNUSED_KSYMS is enabled, all unneeded exported symbols are made unexported. Two-pass build of the kernel is done to find out which symbols are needed based on a configuration. This effectively complicates things for out-of-tree modules. Livepatch exports functions to (un)register and enable/disable a live patch. The only in-tree module which uses these functions is a sample in samples/livepatch/. If the sample is disabled, the functions are trimmed and out-of-tree live patches cannot be built. Note that live patches are intended to be built out-of-tree. Suggested-by: Michal Marek <mmarek@suse.com> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Jessica Yu <jeyu@redhat.com> Signed-off-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 76f1948 commit 5720acf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/livepatch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config LIVEPATCH
1010
depends on SYSFS
1111
depends on KALLSYMS_ALL
1212
depends on HAVE_LIVEPATCH
13+
depends on !TRIM_UNUSED_KSYMS
1314
help
1415
Say Y here if you want to support kernel live patching.
1516
This option has no runtime impact until a kernel "patch"

0 commit comments

Comments
 (0)