Hello!
I'm trying to see if I can use kpatch to apply patches to an out-of-tree
module, specifically zfs.ko. I've managed to make some progress by tweaking
kpatch-build to clone the appropriate source tree, do the initial and
patched build, and the process gets most of the way. I even made a couple
small tweaks to create-diff-object to get it to ignore changes made to a
special symbol that gets updated to the current git rev on build.

However, I'm running into an issue with create-diff-object. I've looked
into it, and it looks like the specific issue is that when the initial
build of dmu_send.o is done, a specific function (setup_to_thread) doesn't
get its name mangled by gcc, but when we rebuild with the patch applied, it
becomes setup_to_thread.constprop.20. I've compared the gcc commands to
create the two, and I think they're identical.

I was wondering if this is a problem that has been seen and worked around
before, either for in-tree modules or in other experiments people have done
with out-of-tree modules. Any advice, ideas, or pointers would be greatly
appreciated.

Thanks!

-- 
Paul Dagnelie
_______________________________________________
kpatch mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kpatch

Reply via email to