diff options
| author | Wei Li <liwei391@huawei.com> | 2024-09-24 17:45:11 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-10 11:57:59 +0200 |
| commit | 8b0f0a268ddb8d751a5197eee61280d9dc10fa0e (patch) | |
| tree | 8982398b27de233c36b5c1ae693516b5a747cd34 /kernel/module_signature.c | |
| parent | a6e9849063a6c8f4cb2f652a437e44e3ed24356c (diff) | |
| download | linux-8b0f0a268ddb8d751a5197eee61280d9dc10fa0e.tar.gz linux-8b0f0a268ddb8d751a5197eee61280d9dc10fa0e.tar.bz2 linux-8b0f0a268ddb8d751a5197eee61280d9dc10fa0e.zip | |
tracing/timerlat: Fix duplicated kthread creation due to CPU online/offline
commit 0bb0a5c12ecf36ad561542bbb95f96355e036a02 upstream.
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: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20240924094515.3561410-2-liwei391@huawei.com
Fixes: c8895e271f79 ("trace/osnoise: Support hotplug operations")
Signed-off-by: Wei Li <liwei391@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/module_signature.c')
0 files changed, 0 insertions, 0 deletions
