v1
2026-09-19
修复DAMON size配额溢出 · v1
修复 DAMON 时间目标调优器配额换算溢出:饱和 esz_bp 乘法,防 32 位 1 GiB 配额归零,并加 kunit 边界测试。
原始补丁链接
子 Patch(2)
1/2
mm/damon/core: prevent size quota overflow in the temporal goal tuner
damos_goal_tune_esz_bp_temporal() converts the scheme’s size quota into basis points with “quota->esz_bp = quota->sz * 10000”, both unsigned long, and damos_set_effective_quota() divides the result ba
2/2
mm/damon/tests/core-kunit: test the temporal tuner's size quota conversion
damos_goal_tune_esz_bp_temporal() encodes the size quota in basis points, so the conversion is exact only up to ULONG_MAX / 10000. Pin the three sizes around that boundary: the largest one that fits,