kmod/core: TAINT_USER -> TAINT_LIVEPATCH

Ok, technically it's not livepatch.  But it's close enough, and more
accurate than TAINT_USER.
This commit is contained in:
Josh Poimboeuf 2016-04-14 16:28:49 -05:00
parent d2d1f639b2
commit c56c411b2a
1 changed files with 5 additions and 1 deletions

View File

@ -971,9 +971,13 @@ int kpatch_register(struct kpatch_module *kpmod, bool replace)
func->op = KPATCH_OP_NONE;
} while_for_each_linked_func();
/* TODO: need TAINT_KPATCH */
#ifdef TAINT_LIVEPATCH
pr_notice_once("tainting kernel with TAINT_LIVEPATCH\n");
add_taint(TAINT_LIVEPATCH, LOCKDEP_STILL_OK);
#else
pr_notice_once("tainting kernel with TAINT_USER\n");
add_taint(TAINT_USER, LOCKDEP_STILL_OK);
#endif
pr_notice("loaded patch module '%s'\n", kpmod->mod->name);