kpatch-build: set replace mode off on default#1310
kpatch-build: set replace mode off on default#1310robinYin996 wants to merge 1 commit intodynup:masterfrom robinYin996:master
Conversation
As the kernel commit e1452b607c, replace mode is to revert particular fix, But now all the previous patches are replaced by new livepatch. one patch fix one problem is common scenario,so set replace off on default. Signed-off-by: yinbinbin <yinbinbin001@linux.alibaba.com>
|
Hi @robinYin996 , thanks for the PR, however, when atomic replace support was added to kpatch-build, it was purposely made the default option. Since the livepatch community generally recommends accumulative patches over many independent ones (simplifies dependencies, smaller potential test matrix, etc.), it naturally follows to use replace mode to best support updates. I'd be curious to hear about your experiences with "one patch, one problem" livepatching strategy -- how many patches do you normally have in flight at any given time? |
Each independent patch fix one issue, some patches solve memory issue, some solve file systems, etc., so we build livepatch separately. I think independent livepatch advantages: |
But ftrace doesn't use stop_machine() anymore, for the major arches.
Right, this is the main advantage of independent patches: it gives you more flexibility. The disadvantage is that it adds risk:
That's why we recommend (and default to) the less risky option: replace. |
As the kernel commit e1452b607c, replace mode is to revert particular fix, But now all the previous patches are replaced by new livepatch. one patch fix one problem is common scenario,so set replace off on default.
Signed-off-by: yinbinbin yinbinbin001@linux.alibaba.com