We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b44a7f0 + 2957308 commit fa2d8afCopy full SHA for fa2d8af
1 file changed
kernel/livepatch/transition.c
@@ -641,6 +641,13 @@ void klp_force_transition(void)
641
for_each_possible_cpu(cpu)
642
klp_update_patch_state(idle_task(cpu));
643
644
- klp_for_each_patch(patch)
645
- patch->forced = true;
+ /* Set forced flag for patches being removed. */
+ if (klp_target_state == KLP_UNPATCHED)
646
+ klp_transition_patch->forced = true;
647
+ else if (klp_transition_patch->replace) {
648
+ klp_for_each_patch(patch) {
649
+ if (patch != klp_transition_patch)
650
+ patch->forced = true;
651
+ }
652
653
}
0 commit comments