[PATCH v2 0/2] mm/mglru: fix ineffective memory protection for non-kswapd reclaim

From: Ridong Chen

Date: Fri Aug 28 2026 - 07:10:11 EST


From: Ridong Chen <chenridong@xxxxxxxxxx>

This series fixes memory.min/low being silently bypassed for MGLRU
during non-kswapd global reclaim (global direct reclaim and root-level
memory.reclaim).

Patch 2 is the actual fix. Patch 1 is a prerequisite: an integer overflow
in effective_protection(), spotted by the sashiko review tool, which
patch 2's new caller would also be exposed to.

---

v2:
- Fix an issue caused by non-atomic read races in patch 1 [1]

[1] https://sashiko.dev/#/patchset/20260828092432.1257917-1-ridong.chen@xxxxxxxxx?part=1

Ridong Chen (2):
mm/page_counter: avoid integer overflow in effective_protection()
mm/mglru: fix ineffective memory protection for non-kswapd reclaim

include/linux/memcontrol.h | 11 ++++++++++
mm/memcontrol.c | 45 ++++++++++++++++++++++++++++++++++++++
mm/page_counter.c | 19 +++++++++++-----
mm/vmscan.c | 8 ++++++-
4 files changed, 76 insertions(+), 7 deletions(-)

--
2.34.1