Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kpatch-build: lookup_local_symbol sysctl_print_dir.isra.2 (proc_sysctl.c) #189

Closed
jpoimboe opened this issue May 15, 2014 · 0 comments · Fixed by #230
Closed

kpatch-build: lookup_local_symbol sysctl_print_dir.isra.2 (proc_sysctl.c) #189

jpoimboe opened this issue May 15, 2014 · 0 comments · Fixed by #230

Comments

@jpoimboe
Copy link
Member

$ cat smp-2.patch 
Index: src/fs/proc/proc_sysctl.c
===================================================================
--- src.orig/fs/proc/proc_sysctl.c
+++ src/fs/proc/proc_sysctl.c
@@ -24,6 +24,7 @@ void proc_sys_poll_notify(struct ctl_tab
    if (!poll)
        return;

+   printk("kpatch-test: testing .smp_locks section changes\n");
    atomic_inc(&poll->event);
    wake_up_interruptible(&poll->wait);
 }
$ kpatch-build -d smp-2.patch 
DEBUG mode enabled
Using cache at /home/jpoimboe/.kpatch/3.14.3-200.fc20.x86_64/src
Testing patch file
checking file fs/proc/proc_sysctl.c
Building original kernel
Building patched kernel
Detecting changed objects
Rebuilding changed objects
Extracting new and modified ELF sections
proc_sysctl.o: changed function: put_links
proc_sysctl.o: changed function: insert_header
proc_sysctl.o: changed function: proc_sys_poll_notify
proc_sysctl.o: changed function: __register_sysctl_table
proc_sysctl.o: changed function: retire_sysctl_set
/usr/local/libexec/kpatch/create-diff-object: kpatch_create_patches_sections: 1421: lookup_local_symbol sysctl_print_dir.isra.2 (proc_sysctl.c)
ERROR: kpatch build failed. Check /tmp/kpatch-build-1400189994.log for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant