====================================================================== BUILD LOG: pass/lto-hash-change ====================================================================== Verdict: pass Exit code: 0 Kernel: 6.19.0+ Toolchain: Compiler: clang version 21.1.8 (Fedora 21.1.8-4.fc43) Linker: LLD 21.1.8 (compatible with GNU linkers) Assembler: Clang integrated assembler ====================================================================== FULL BUILD OUTPUT ====================================================================== --- klp-build stdout --- Validating patch(es) Fixing patch(es) Building patched kernel Copying patched object files Diffing objects vmlinux.o: changed function: klp_test_hash2_proc_show vmlinux.o: changed function: __helper Building patch module: livepatch-lto-hash-change.ko SUCCESS --- klp-build stderr --- WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/livepatch/klp_test_mod.o --- diff.log --- vmlinux.o: changed function: klp_test_hash2_proc_show vmlinux.o: changed function: __helper ====================================================================== BUILD VERIFICATION ====================================================================== klp-build exit code is 0 Module exists: livepatch-lto-hash-change.ko ELF Analysis: klp_object[0]: .name = NULL (vmlinux) .callbacks = {0} VERIFIED: klp_object.name = NULL (vmlinux) klp_func[0]: .old_name = "klp_test_hash2_proc_show" [-> .rodata+0x55] .new_func -> klp_test_hash2_proc_show .old_sympos = 0 klp_func[1]: .old_name = "__helper" [-> .rodata+0x6e] .new_func -> __helper .old_sympos = 0x2 (2) VERIFIED: klp_func target contains '__helper' VERIFIED: klp_func target contains 'klp_test_hash2_proc_show' ThinLTO: CONFIG_LTO_CLANG_THIN=y ThinLTO: 0 __helper.llvm.* symbols in vmlinux ====================================================================== TEST PATCH(ES) ====================================================================== --- Patch: lto-hash-change.patch --- --- a/kernel/livepatch/klp_test_hash2.c +++ b/kernel/livepatch/klp_test_hash2.c @@ -25,7 +25,7 @@ static noinline int __helper(int x, int int i, sum = x; for (i = 0; i < len; i++) - sum += i + 10; + sum += i * 2 + 10; if (sum > 1000) sum = 0; return sum; @@ -34,7 +34,7 @@ static noinline int __helper(int x, int static int klp_test_hash2_proc_show(struct seq_file *m, void *v) { klp_test_hash2_var = __helper(klp_test_hash2_var, 5); - seq_printf(m, "hash2 unpatched %d\n", klp_test_hash2_var); + seq_printf(m, "hash2 patched %d\n", klp_test_hash2_var); return 0; }