With arch_klp_init_object_loaded() gone, and apply_relocate_add() now
using text_poke(), livepatch no longer needs to use module_disable_ro().
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
if (klp_is_module(obj)) {
mutex_lock(&text_mutex);
- module_disable_ro(patch->mod);
/*
* Only write module-specific relocations here
*/
ret = klp_apply_object_relocs(patch, obj);
- module_enable_ro(patch->mod, true);
mutex_unlock(&text_mutex);
if (ret)