On 11/08/2018 05:22 AM, [email protected] wrote: > Hi, > > I'm trying to kpatch to my own module, which is built as an out-of-tree > module. I've test doit.sh in test/testmod in github. But the test script > failed since it uses an very old synopsis format which only give 4 args to > create-diff-object, which it requires 7 args. I've borrowed some code from > kpatch-build to fix the create-diff-object call and generate the final > kpatch-patch.ko. But it failed to be loaded by kpatch. dmesg shows: > "kpatch: can't set ftrace filter at address 0xffffffffa0423000". > kpatch succeed when I included the testmod_drv.c in kernel tree and generate > .ko through kpath-build. But this method doesn't suit for my external module. > Can anyone fix the test/testmod sample or give me an guide on how to kpatch > an External module ? >
Hi Vaughan, There is a pull request in progress to handle out-of-tree modules: https://github.com/dynup/kpatch/pull/923 You could try cloning Paul's tree and following the kpatch-build invocation that he provided in the PR notes. His work is pretty close to done, so hopefully it will be merged into kpatch soon. Any additional testing would be good to hear. -- Joe _______________________________________________ kpatch mailing list [email protected] https://www.redhat.com/mailman/listinfo/kpatch
