diff options
| author | Wei Li <[email protected]> | 2024-09-24 09:45:11 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2024-10-03 20:43:22 +0000 |
| commit | 0bb0a5c12ecf36ad561542bbb95f96355e036a02 (patch) | |
| tree | 5c2bcfb85338faf0b03188fb921ca4387975d578 /rust/helpers/security.c | |
| parent | x86/ftrace: Include <asm/ptrace.h> (diff) | |
| download | kernel-0bb0a5c12ecf36ad561542bbb95f96355e036a02.tar.gz kernel-0bb0a5c12ecf36ad561542bbb95f96355e036a02.zip | |
tracing/timerlat: Fix duplicated kthread creation due to CPU online/offline
osnoise_hotplug_workfn() is the asynchronous online callback for
"trace/osnoise:online". It may be congested when a CPU goes online and
offline repeatedly and is invoked for multiple times after a certain
online.
This will lead to kthread leak and timer corruption. Add a check
in start_kthread() to prevent this situation.
Cc: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: c8895e271f79 ("trace/osnoise: Support hotplug operations")
Signed-off-by: Wei Li <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions
