漏洞信息
# trace/fgraph:修复未注册通知器的警告
## 概述
Linux 内核中修复了一个由未注销 notifier 引起的警告问题。
## 影响版本
此问题在 v6.16 版本中被检测到。
## 细节
在写入 `function_profile_enabled` 接口时,如果 `start_graph_tracing` 失败,未在异常路径中调用 `unregister_pm_notifier`,导致 `ftrace_suspend_notifier_call` 的 notifier 被重复注册,从而触发警告。
## 影响
该问题会在再次写入 `function_profile_enabled` 时引发内核警告(WARNING),但不会导致系统崩溃或安全漏洞。此修复旨在消除错误警告,提高系统稳定性。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
trace/fgraph: Fix the warning caused by missing unregister notifier
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
trace/fgraph: Fix the warning caused by missing unregister notifier
This warning was triggered during testing on v6.16:
notifier callback ftrace_suspend_notifier_call already registered
WARNING: CPU: 2 PID: 86 at kernel/notifier.c:23 notifier_chain_register+0x44/0xb0
...
Call Trace:
<TASK>
blocking_notifier_chain_register+0x34/0x60
register_ftrace_graph+0x330/0x410
ftrace_profile_write+0x1e9/0x340
vfs_write+0xf8/0x420
? filp_flush+0x8a/0xa0
? filp_close+0x1f/0x30
? do_dup2+0xaf/0x160
ksys_write+0x65/0xe0
do_syscall_64+0xa4/0x260
entry_SYSCALL_64_after_hwframe+0x77/0x7f
When writing to the function_profile_enabled interface, the notifier was
not unregistered after start_graph_tracing failed, causing a warning the
next time function_profile_enabled was written.
Fixed by adding unregister_pm_notifier in the exception path.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未在异常路径中注销pm_notifier,可能导致重复注册警告。
CVSS信息
N/A
漏洞类别
其他