From: Greg Kroah-Hartman Date: Tue, 17 Feb 2026 12:46:08 +0000 (+0100) Subject: 6.18-stable patches X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378cc044561c264d81897a71cedb27fa9002b7c1;p=thirdparty%2Fkernel%2Fstable-queue.git 6.18-stable patches added patches: cpuset-fix-missing-adaptation-for-cpuset_is_populated.patch --- diff --git a/queue-6.18/cpuset-fix-missing-adaptation-for-cpuset_is_populated.patch b/queue-6.18/cpuset-fix-missing-adaptation-for-cpuset_is_populated.patch new file mode 100644 index 0000000000..3313db334d --- /dev/null +++ b/queue-6.18/cpuset-fix-missing-adaptation-for-cpuset_is_populated.patch @@ -0,0 +1,40 @@ +From chenridong@huaweicloud.com Tue Feb 17 13:36:53 2026 +From: Chen Ridong +Date: Wed, 14 Jan 2026 01:51:29 +0000 +Subject: cpuset: Fix missing adaptation for cpuset_is_populated +To: gregkh@linuxfoundation.org +Cc: stable@vger.kernel.org, chenridong@huaweicloud.com, lujialin4@huawei.com +Message-ID: <20260114015129.1156361-1-chenridong@huaweicloud.com> + +From: Chen Ridong + +Commit b1bcaed1e39a ("cpuset: Treat cpusets in attaching as populated") +was backported to the long‑term support (LTS) branches. However, because +commit d5cf4d34a333 ("cgroup/cpuset: Don't track # of local child +partitions") was not backported, a corresponding adaptation to the +backported code is still required. + +To ensure correct behavior, replace cgroup_is_populated with +cpuset_is_populated in the partition_is_populated function. + +Cc: stable@vger.kernel.org # 6.1+ +Fixes: b1bcaed1e39a ("cpuset: Treat cpusets in attaching as populated") +Cc: Waiman Long +Cc: Tejun Heo +Signed-off-by: Chen Ridong +Signed-off-by: Greg Kroah-Hartman +--- + kernel/cgroup/cpuset.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/kernel/cgroup/cpuset.c ++++ b/kernel/cgroup/cpuset.c +@@ -385,7 +385,7 @@ static inline bool partition_is_populate + cs->attach_in_progress) + return true; + if (!excluded_child && !cs->nr_subparts) +- return cgroup_is_populated(cs->css.cgroup); ++ return cpuset_is_populated(cs); + + rcu_read_lock(); + cpuset_for_each_descendant_pre(cp, pos_css, cs) { diff --git a/queue-6.18/series b/queue-6.18/series index 54ae58c705..eaf2cf2fa7 100644 --- a/queue-6.18/series +++ b/queue-6.18/series @@ -26,3 +26,4 @@ gpiolib-acpi-fix-gpio-count-with-string-references.patch arm64-dts-mediatek-mt8183-add-missing-endpoint-ids-to-display-graph.patch mm-hugetlb-fix-excessive-ipi-broadcasts-when-unsharing-pmd-tables-using-mmu_gather.patch loongarch-rework-kasan-initialization-for-ptw-enabled-systems.patch +cpuset-fix-missing-adaptation-for-cpuset_is_populated.patch