Replies: 4 comments 1 reply
|
Hi @sshedi,
|
1 reply
|
Can you try the following (untested) patch? |
0 replies
|
Hm, actually looking at the latent entropy plugin today, that patch isn't going to work. The plugin doesn't just affect .init.text, it affects any function with the __latent_entropy attribute. If you really wanted to use this plugin, I think the best way for kpatch to support it would be to edit the plugin in the kernel tree (scripts/gcc-plugins/latent_entropy_plugin.c) so that it adds a new annotation section (.annotate.latent_entropy or so) which has relocations which point to all the instructions which move the random const to a register. Then create-diff-object could read that section and mark those instructions as ones to be ignored in the diff. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, are there any plans to make Kpatch work with CONFIG_GCC_PLUGIN_LATENT_ENTROPY kernel config enabled?
All reactions