Skip to contentSkip to conversation

module: Introduce module unload taint tracking

RFC PATCH Aaron Tomlin 1 participant 1 message Apr 25, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · Rong A

Hi Aaron,

Hi Rong,

Quoted 1 line

I think the problem is here (#endif is in a wrong place).

Oh right, sorry about that - I completely missed it.

Quoted 7 lines
(quoted diff) +4 -0
+#ifdef CONFIG_MODULE_UNLOAD_TAINT_TRACKING
+       if (!list_empty(&unloaded_tainted_modules)) {
+               printk(KERN_DEFAULT "\nUnloaded tainted modules:");
+               list_for_each_entry_rcu(mod_taint,

&unloaded_tainted_modules,

(quoted diff) +2 -0
+                                       list) {
+                       size_t l;

Review

Quoted 10 lines
(quoted diff) +10 -0
+
+                       l = module_flags_taint(mod_taint->taints, buf);
+                       buf[l++] = '\0';
+                       pr_cont(" %s(%s)%s", mod_taint->name, buf,
+                               mod_taint->count ? ":" : "");
+                       if (mod_taint->count)
+                               pr_cont("%llu", mod_taint->count);
+               }
+#endif
+       }

Thanks for following up!

Kind regards,

Signature · 1 line
Aaron Tomlin