diff options
author | Joe Lawrence <joe.lawrence@redhat.com> | 2017-01-12 11:57:44 -0500 |
---|---|---|
committer | Jessica Yu <jeyu@redhat.com> | 2017-01-30 17:07:32 -0800 |
commit | 7598d167df99ddadb7f7bd803d1413af740f3617 (patch) | |
tree | 08b898e966a1ef288e2a7e99bc136e817db7f829 | |
parent | 7b73305160f11b633e9801b2c6b83d5b0cb867cc (diff) | |
download | blackbird-op-linux-7598d167df99ddadb7f7bd803d1413af740f3617.tar.gz blackbird-op-linux-7598d167df99ddadb7f7bd803d1413af740f3617.zip |
livepatch/module: print notice of TAINT_LIVEPATCH
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>
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 5088784c0cf9..330f64e7e193 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -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; |