Skip to content

Commit 7598d16

Browse files
joe-lawrenceJessica Yu
authored andcommitted
livepatch/module: print notice of TAINT_LIVEPATCH
Add back the "tainting kernel with TAINT_LIVEPATCH" kernel log message that commit 2992ef2 ("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>
1 parent 7b73305 commit 7598d16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,6 +2812,8 @@ static int check_modinfo_livepatch(struct module *mod, struct load_info *info)
28122812
if (get_modinfo(info, "livepatch")) {
28132813
mod->klp = true;
28142814
add_taint_module(mod, TAINT_LIVEPATCH, LOCKDEP_STILL_OK);
2815+
pr_notice_once("%s: tainting kernel with TAINT_LIVEPATCH\n",
2816+
mod->name);
28152817
}
28162818

28172819
return 0;

0 commit comments

Comments
 (0)