Commit f60172b4 authored by Lizhi Xu's avatar Lizhi Xu Committed by Greg Kroah-Hartman
Browse files

tracing: Prevent bad count for tracing_cpumask_write

commit 98feccbf upstream.

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: 9e01c1b7 ("cpumask: convert kernel trace functions")
Link: https://lore.kernel.org/20241216073238.2573704-1-lizhi.xu@windriver.com


Reported-by: default avatar <syzbot+0aecfd34fb878546f3fd@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=0aecfd34fb878546f3fd


Tested-by: default avatar <syzbot+0aecfd34fb878546f3fd@syzkaller.appspotmail.com>
Signed-off-by: default avatarLizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c5a28af7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment