Commit 98feccb
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: [email protected]
Fixes: 9e01c1b ("cpumask: convert kernel trace functions")
Link: https://lore.kernel.org/[email protected]
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=0aecfd34fb878546f3fd
Tested-by: [email protected]
Signed-off-by: Lizhi Xu <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 452f4b3 commit 98feccb
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5087 | 5087 | | |
5088 | 5088 | | |
5089 | 5089 | | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + | |
5090 | 5093 | | |
5091 | 5094 | | |
5092 | 5095 | | |
| |||
0 commit comments