summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorLizhi Xu <lizhi.xu@windriver.com>2024-12-16 15:32:38 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:25:04 +0100
commit2558d753df0628d4187d8e1fd989339460f4f364 (patch)
treea7529b73d6a035de98924b79275759e6cf5a4185 /scripts/gcc-plugins/sancov_plugin.c
parent1bf53a2145fa416e3c6825c7d3c267f4b7e32e24 (diff)
tracing: Prevent bad count for tracing_cpumask_write
[ Upstream commit 98feccbf32cfdde8c722bc4587aaa60ee5ac33f0 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions