Commit 81f2feb
ARC: Avoid overflows in arc_evict_adj() (#17255)
With certain combinations of target ARC states balance and ghost
hit rates it was possible to get the fractions outside of allowed
range. This patch limits maximum balance adjustment speed, which
should make it impossible, and also asserts it.
Fixes #17210
Signed-off-by: Alexander Motin <[email protected]>
Sponsored by: iXsystems, Inc.
Reviewed-by: Rob Norris <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
(cherry picked from commit b1ccab1)
(cherry picked from commit 677cb91)1 parent 2f419f0 commit 81f2feb
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4205 | 4205 | | |
4206 | 4206 | | |
4207 | 4207 | | |
4208 | | - | |
| 4208 | + | |
4209 | 4209 | | |
4210 | 4210 | | |
4211 | 4211 | | |
4212 | | - | |
4213 | | - | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
4214 | 4216 | | |
4215 | | - | |
4216 | | - | |
| 4217 | + | |
| 4218 | + | |
4217 | 4219 | | |
4218 | 4220 | | |
4219 | 4221 | | |
| |||
4222 | 4224 | | |
4223 | 4225 | | |
4224 | 4226 | | |
| 4227 | + | |
4225 | 4228 | | |
4226 | 4229 | | |
4227 | 4230 | | |
| |||
4232 | 4235 | | |
4233 | 4236 | | |
4234 | 4237 | | |
| 4238 | + | |
| 4239 | + | |
4235 | 4240 | | |
4236 | 4241 | | |
4237 | 4242 | | |
| |||
0 commit comments