Commit aa8b25b
committed
block: prevent division by zero in blk_rq_stat_sum()
jira LE-1907
cve CVE-2024-35925
Rebuild_History Non-Buildable kernel-4.18.0-553.16.1.el8_10
commit-author Roman Smirnov <[email protected]>
commit 93f52fb
The expression dst->nr_samples + src->nr_samples may
have zero value on overflow. It is necessary to add
a check to avoid division by zero.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Signed-off-by: Roman Smirnov <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
(cherry picked from commit 93f52fb)
Signed-off-by: Jonathan Maple <[email protected]>1 parent ded3d3d commit aa8b25b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments