<div dir="ltr"><div dir="ltr">Hello!<br>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.</div><div dir="ltr"><br></div><div dir="ltr">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.</div><div dir="ltr"><br></div><div dir="ltr">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.</div><div dir="ltr"><br></div><div dir="ltr">Thanks!<br clear="all"><div><br>-- <br><div dir="ltr" class="m_-5163916634784362018gmail_signature"><div dir="ltr">Paul Dagnelie<br></div></div></div></div></div>