aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJosh Poimboeuf <[email protected]>2016-08-25 10:04:45 -0500
committerJiri Kosina <[email protected]>2016-08-26 14:42:08 +0200
commit2992ef29ae01af998399d55ed7c692a2505fb8af (patch)
treeccf3c4e15ecccd15e5f70b44971f4e884a443c60 /tools/perf/util/trace-event-scripting.c
parent5ad75fcdd712d18b393c3b3fe52ab4108703d337 (diff)
livepatch/module: make TAINT_LIVEPATCH module-specific
There's no reliable way to determine which module tainted the kernel with TAINT_LIVEPATCH. For example, /sys/module/<klp module>/taint doesn't report it. Neither does the "mod -t" command in the crash tool. Make it crystal clear who the guilty party is by associating TAINT_LIVEPATCH with any module which sets the "livepatch" modinfo attribute. The flag will still get set in the kernel like before, but now it also sets the same flag in mod->taint. Note that now the taint flag gets set when the module is loaded rather than when it's enabled. I also renamed find_livepatch_modinfo() to check_modinfo_livepatch() to better reflect its purpose: it's basically a livepatch-specific sub-function of check_modinfo(). Reported-by: Chunyu Hu <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Acked-by: Miroslav Benes <[email protected]> Acked-by: Jessica Yu <[email protected]> Acked-by: Rusty Russell <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions