diff options
Diffstat (limited to 'kernel/tracepoint.c')
-rw-r--r-- | kernel/tracepoint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index 031cc5655a51..3cdbed1fbdc7 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -633,7 +633,8 @@ EXPORT_SYMBOL_GPL(tracepoint_iter_reset); | |||
633 | #ifdef CONFIG_MODULES | 633 | #ifdef CONFIG_MODULES |
634 | bool trace_module_has_bad_taint(struct module *mod) | 634 | bool trace_module_has_bad_taint(struct module *mod) |
635 | { | 635 | { |
636 | return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP)); | 636 | return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) | |
637 | (1 << TAINT_UNSIGNED_MODULE)); | ||
637 | } | 638 | } |
638 | 639 | ||
639 | static int tracepoint_module_coming(struct module *mod) | 640 | static int tracepoint_module_coming(struct module *mod) |
@@ -644,7 +645,7 @@ static int tracepoint_module_coming(struct module *mod) | |||
644 | /* | 645 | /* |
645 | * We skip modules that taint the kernel, especially those with different | 646 | * We skip modules that taint the kernel, especially those with different |
646 | * module headers (for forced load), to make sure we don't cause a crash. | 647 | * module headers (for forced load), to make sure we don't cause a crash. |
647 | * Staging and out-of-tree GPL modules are fine. | 648 | * Staging, out-of-tree, and unsigned GPL modules are fine. |
648 | */ | 649 | */ |
649 | if (trace_module_has_bad_taint(mod)) | 650 | if (trace_module_has_bad_taint(mod)) |
650 | return 0; | 651 | return 0; |