lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260108033248.2791579-1-bingjiao@google.com>
Date: Thu,  8 Jan 2026 03:32:45 +0000
From: Bing Jiao <bingjiao@...gle.com>
To: linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org, gourry@...rry.net, 
	longman@...hat.com, hannes@...xchg.org, mhocko@...nel.org, 
	roman.gushchin@...ux.dev, shakeel.butt@...ux.dev, muchun.song@...ux.dev, 
	tj@...nel.org, mkoutny@...e.com, david@...nel.org, zhengqi.arch@...edance.com, 
	lorenzo.stoakes@...cle.com, axelrasmussen@...gle.com, 
	chenridong@...weicloud.com, yuanchu@...gle.com, weixugc@...gle.com, 
	cgroups@...r.kernel.org, joshua.hahnjy@...il.com, bingjiao@...gle.com
Subject: [PATCH v7 0/2] mm/vmscan: fix demotion targets checks in reclaim/demotion

Hi Andrew,

I am sorry for issuing a new patch version after v6 has been merged into
mm-hotfixes-unstable.

Main updates in v7:

1. Fixed a bug in v6.

   Specifically, next_demotion_node() may return NUMA_NO_NODE if nodes
   were hot-unplugged. V6 directly checks
   node_isset(target_nid, allowed_mask), which will cause out-of-boundary
   bug if target_nid is NUMA_NO_NODE (-1).

2. Preferred node selection.

   [Patch 1/2] originally implemented a random selection from
   allowed nodes if the preferred node from next_demotion_node()
   was missing from mems_allowed. This behavior contradicts the
   purpose of migration_target_control.nid, which is intended to
   identify the preferred node nearest to the source.

   To resolve this inconsistency, incorporat the preferred node
   selection patch into this series.


If there is a consensus among reviewers to backport Patch 2/2
alongside Patch 1/2, they can be combined.
Otherwise, I will post Patch 2/2 in another series.

Many thanks!

Best regards,
Bing

Bing Jiao (2):
  mm/vmscan: fix demotion targets checks in reclaim/demotion
  mm/vmscan: select the closest preferred node in demote_folio_list()

 include/linux/cpuset.h       |  6 ++--
 include/linux/memcontrol.h   |  6 ++--
 include/linux/memory-tiers.h |  6 ++--
 kernel/cgroup/cpuset.c       | 54 ++++++++++++++++++++++++------------
 mm/memcontrol.c              | 16 +++++++++--
 mm/memory-tiers.c            | 11 +++++---
 mm/vmscan.c                  | 49 +++++++++++++++++++++++++-------
 7 files changed, 105 insertions(+), 43 deletions(-)

--
2.52.0.457.g6b5491de43-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ