diff options
author | Lizhi Xu <lizhi.xu@windriver.com> | 2024-12-16 15:32:38 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-12-23 21:59:15 -0500 |
commit | 98feccbf32cfdde8c722bc4587aaa60ee5ac33f0 (patch) | |
tree | 9ed8e0d488b03c81e35c9b68ca4d60a16e80b3ec /kernel/trace/trace_functions_graph.c | |
parent | 452f4b31e3f70a52b97890888eeb9eaa9a87139a (diff) | |
download | linux-98feccbf32cfdde8c722bc4587aaa60ee5ac33f0.tar.gz linux-98feccbf32cfdde8c722bc4587aaa60ee5ac33f0.tar.bz2 linux-98feccbf32cfdde8c722bc4587aaa60ee5ac33f0.zip |
tracing: Prevent bad count for tracing_cpumask_write
If a large count is provided, it will trigger a warning in bitmap_parse_user.
Also check zero for it.
Cc: stable@vger.kernel.org
Fixes: 9e01c1b74c953 ("cpumask: convert kernel trace functions")
Link: https://lore.kernel.org/20241216073238.2573704-1-lizhi.xu@windriver.com
Reported-by: syzbot+0aecfd34fb878546f3fd@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=0aecfd34fb878546f3fd
Tested-by: syzbot+0aecfd34fb878546f3fd@syzkaller.appspotmail.com
Signed-off-by: Lizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
0 files changed, 0 insertions, 0 deletions