From c56c411b2ae35ac1aca11171b90d480a7eca390b Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Thu, 14 Apr 2016 16:28:49 -0500 Subject: [PATCH] kmod/core: TAINT_USER -> TAINT_LIVEPATCH Ok, technically it's not livepatch. But it's close enough, and more accurate than TAINT_USER. --- kmod/core/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kmod/core/core.c b/kmod/core/core.c index edb5029..c748eee 100644 --- a/kmod/core/core.c +++ b/kmod/core/core.c @@ -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);