Provide hints for kpatch-build errors? #1218
Replies: 1 comment
-
Hi @liu-song-6, this reminded me of @divyacote 's kpatch-analyze project #1201 . It may already be prepared to detect changes to functions marked with Also, I think it would be fairly simple to add |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While testing 0.9.4 earlier today with some random patches (that adds some printk), I got an error like:
This surprised me quite a bit, as I believed we already have the proper support for printk_index. Fortunately, I figured it out soon. It was basically because the random patch added a printk to an __init function.
This "issue" makes me think whether we can enable kpatch-build to provide hints on common mistake. We can probably use a set of patterns and help messages, and apply them to logger() in kpatch-build. For example, if logger sees a line contains
changed section .init.text
, it will add a hintDoes any of these patches touch an __init function?
.Does this sound like a useful addition to kpatch-build?
Beta Was this translation helpful? Give feedback.
All reactions