====================================================================== BUILD LOG: pass/add-test-module ====================================================================== Verdict: pass Exit code: 0 Kernel: 6.19.0+ Toolchain: Compiler: gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7) Linker: GNU ld version 2.45.1-4.fc43 Assembler: GNU assembler version 2.45.1-4.fc43 ====================================================================== FULL BUILD OUTPUT ====================================================================== --- klp-build stdout --- Validating patch(es) Building original kernel Copying original object files Fixing patch(es) Building patched kernel Copying patched object files Diffing objects vmlinux.o: changed function: klp_test_proc_show vmlinux.o: changed function: klp_test_function Building patch module: livepatch-add-test-module.ko SUCCESS --- klp-build stderr --- WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/livepatch/klp_test_mod.o WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/livepatch/klp_test_mod.o --- diff.log --- vmlinux.o: changed function: klp_test_proc_show vmlinux.o: changed function: klp_test_function ====================================================================== BUILD VERIFICATION ====================================================================== klp-build exit code is 0 Module exists: livepatch-add-test-module.ko ELF Analysis: klp_object[0]: .name = NULL (vmlinux) VERIFIED: klp_object.name = NULL (vmlinux) klp_func[0]: .old_name = "klp_test_proc_show" [-> .rodata+0x6b] .new_func -> klp_test_proc_show .old_sympos = 0 klp_func[1]: .old_name = "klp_test_function" [-> .rodata+0x7e] .new_func -> klp_test_function .old_sympos = 0 VERIFIED: klp_func.old_name = 'klp_test_function' VERIFIED: klp_func.new_func -> klp_test_function ====================================================================== TEST PATCH(ES) ====================================================================== --- Patch: add-test-module.patch --- --- a/kernel/livepatch/klp_test.c +++ b/kernel/livepatch/klp_test.c @@ -22,8 +22,8 @@ noinline int klp_test_function(void); */ noinline int klp_test_function(void) { - pr_info("klp_test: original function\n"); - return 42; + pr_info("klp_test: PATCHED function\n"); + return 99; } EXPORT_SYMBOL_GPL(klp_test_function);