====================================================================== BUILD LOG: pass/long/add-remove-file-diff ====================================================================== Verdict: pass Exit code: 0 Kernel: 6.19.0+ Toolchain: Compiler: gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4) Linker: GNU ld version 2.41-63.el10 Assembler: GNU assembler version 2.41-63.el10 ====================================================================== FULL BUILD OUTPUT ====================================================================== --- klp-build stdout --- Validating patch(es) Fixing patch(es) Building patched kernel Copying patched object files Diffing objects vmlinux.o: new function: show_val_kb vmlinux.o: changed function: cmdline_proc_show vmlinux.o: changed function: meminfo_proc_show Building patch module: livepatch-add-remove-file-diff-generated.ko SUCCESS --- klp-build stderr --- (empty) --- diff.log --- vmlinux.o: new function: show_val_kb vmlinux.o: changed function: cmdline_proc_show vmlinux.o: changed function: meminfo_proc_show ====================================================================== BUILD VERIFICATION ====================================================================== klp-build exit code is 0 Module exists: livepatch-add-remove-file-diff-generated.ko verify_diff_log_contains('changed function: meminfo_proc_show'): OK verify_diff_log_contains('changed function: cmdline_proc_show'): OK ELF Analysis: klp_object[0]: .name = NULL (vmlinux) VERIFIED: klp_object.name = NULL (vmlinux) klp_func[0]: .old_name = "cmdline_proc_show" [-> .rodata+0x4321] .new_func -> cmdline_proc_show .old_sympos = 0 klp_func[1]: .old_name = "meminfo_proc_show" [-> .rodata+0x4333] .new_func -> meminfo_proc_show .old_sympos = 0 VERIFIED: klp_func.old_name = 'meminfo_proc_show' VERIFIED: klp_func.new_func -> meminfo_proc_show VERIFIED: klp_func.old_name = 'cmdline_proc_show' VERIFIED: klp_func.new_func -> cmdline_proc_show ====================================================================== TEST PATCH(ES) ====================================================================== --- Patch: add-remove-file-diff-generated.patch --- From: Test Author Subject: [PATCH] Add/remove files and update proc (diff -Nupr) Same changes as add-remove-file-git in diff -Nupr format. --- orig/Documentation/livepatch/api.rst 2026-03-03 12:59:01.042232657 -0500 +++ patched/Documentation/livepatch/api.rst 1969-12-31 19:00:00.000000000 -0500 @@ -1,30 +0,0 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================= -Livepatching APIs -================= - -Livepatch Enablement -==================== - -.. kernel-doc:: kernel/livepatch/core.c - :export: - - -Shadow Variables -================ - -.. kernel-doc:: kernel/livepatch/shadow.c - :export: - -System State Changes -==================== - -.. kernel-doc:: kernel/livepatch/state.c - :export: - -Object Types -============ - -.. kernel-doc:: include/linux/livepatch.h - :identifiers: klp_patch klp_object klp_func klp_callbacks klp_state --- orig/fs/proc/cmdline.c 2026-03-03 13:36:17.773790505 -0500 +++ patched/fs/proc/cmdline.c 2026-03-03 13:37:51.432124374 -0500 @@ -7,6 +7,7 @@ static int cmdline_proc_show(struct seq_file *m, void *v) { + pr_info("klp-build-test: add-remove-file-diff test\n"); seq_puts(m, saved_command_line); seq_putc(m, '\n'); return 0; --- orig/fs/proc/klp_test_header1.h 1969-12-31 19:00:00.000000000 -0500 +++ patched/fs/proc/klp_test_header1.h 2026-03-03 13:37:51.431573244 -0500 @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _KLP_TEST_HEADER1_H +#define _KLP_TEST_HEADER1_H + +#define KLP_TEST_MARKER1 "klp-build-test: header1 included" +#endif --- orig/fs/proc/klp_test_header2.h 1969-12-31 19:00:00.000000000 -0500 +++ patched/fs/proc/klp_test_header2.h 2026-03-03 13:37:51.431669943 -0500 @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _KLP_TEST_HEADER2_H +#define _KLP_TEST_HEADER2_H + +#define KLP_TEST_MARKER2 "klp-build-test: header2 included" +#endif --- orig/fs/proc/meminfo.c 2026-03-03 12:59:07.651156503 -0500 +++ patched/fs/proc/meminfo.c 2026-03-03 13:37:51.431845781 -0500 @@ -18,6 +18,8 @@ #include #endif #include +#include "klp_test_header1.h" +#include "klp_test_header2.h" #include #include "internal.h" @@ -40,6 +42,8 @@ static int meminfo_proc_show(struct seq_ unsigned long pages[NR_LRU_LISTS]; unsigned long sreclaimable, sunreclaim; int lru; + pr_info(KLP_TEST_MARKER1 "\n"); + pr_info(KLP_TEST_MARKER2 "\n"); si_meminfo(&i); si_swapinfo(&i);