Skip to content

re-enable a disabled patch module #343

@jpoimboe

Description

@jpoimboe

Currently KPATCH_FORCE_UNSAFE can be pretty annoying, because you can disable it but you can never rmmod it. Which means that future "kpatch load"s of the same module will always fail. It would be nice if we had the capability to re-enable a disabled but still insmodded patch, to allow re-applying a forced patch.

Not sure what the user interface should look like. Maybe "kpatch enable" which writes 1 to the "enabled" sysfs file. Or another option would be to have "kpatch load" detect somehow that the module file is identical to the one that's already been loaded, and then it would just write to the sysfs file instead of insmod.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions