Liew Rui Yan Addresses Kernel Bug in DAMON Memory Management
Liew Rui Yan has identified and proposed a fix for a bug within the DAMON (Data Access MONitor) memory management subsystem of the Linux kernel. The issue, introduced by a previous commit (50585192bc2e), causes the last region of memory to be unconditionally skipped during processing, leading to it being permanently ignored. This occurs when a target has multiple memory regions (e.g., R1 and R2) and a quota is configured to process a limited number of bytes per window. In such a scenario, after processing the first region (R1) and filling the quota, the system incorrectly skips the subsequent region (R2) because it's identified as the 'last region,' even though it has not been processed. Liew Rui Yan has submitted a patch to address this problem and prevent future regressions, which has been reviewed by SJ Park.