livepatch/module: print notice of TAINT_LIVEPATCH
authorJoe Lawrence <joe.lawrence@redhat.com>
Thu, 12 Jan 2017 16:57:44 +0000 (11:57 -0500)
committerJessica Yu <jeyu@redhat.com>
Tue, 31 Jan 2017 01:07:32 +0000 (17:07 -0800)
Add back the "tainting kernel with TAINT_LIVEPATCH" kernel log message
that commit 2992ef29ae01 ("livepatch/module: make TAINT_LIVEPATCH
module-specific") dropped.  Now that it's a module-specific taint flag,
include the module name.

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Jessica Yu <jeyu@redhat.com>
kernel/module.c

index 5088784..330f64e 100644 (file)
@@ -2812,6 +2812,8 @@ static int check_modinfo_livepatch(struct module *mod, struct load_info *info)
        if (get_modinfo(info, "livepatch")) {
                mod->klp = true;
                add_taint_module(mod, TAINT_LIVEPATCH, LOCKDEP_STILL_OK);
+               pr_notice_once("%s: tainting kernel with TAINT_LIVEPATCH\n",
+                              mod->name);
        }
 
        return 0;