Replies: 4 comments 1 reply
-
Hi @sshedi,
|
Beta Was this translation helpful? Give feedback.
-
Can you try the following (untested) patch?
|
Beta Was this translation helpful? Give feedback.
-
Than @jpoimboe we will try it. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hi, are there any plans to make Kpatch work with CONFIG_GCC_PLUGIN_LATENT_ENTROPY kernel config enabled?
Beta Was this translation helpful? Give feedback.
All reactions