[GIT PULL] cgroup: Fixes for v7.0-rc2

From: Tejun Heo

Date: Tue Mar 03 2026 - 16:49:51 EST


Hello,

The following changes since commit 37a93dd5c49b5fda807fd204edf2547c3493319c:

Merge tag 'net-next-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next (2026-02-11 19:31:52 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git tags/cgroup-for-7.0-rc2-fixes

for you to fetch changes up to 085f067389d12bd9800c0a9672a174c1de7a8069:

cgroup/cpuset: fix null-ptr-deref in rebuild_sched_domains_cpuslocked (2026-02-25 07:39:04 -1000)

----------------------------------------------------------------
cgroup: Fixes for v7.0-rc2

- Fix circular locking dependency in cpuset partition code by deferring
housekeeping_update() calls to a workqueue instead of calling them
directly under cpus_read_lock.

- Fix null-ptr-deref in rebuild_sched_domains_cpuslocked() when
generate_sched_domains() returns NULL due to kmalloc failure.

- Fix incorrect cpuset behavior for effective_xcpus in
partition_xcpus_del() and cpuset_update_tasks_cpumask() in
update_cpumasks_hier().

- Fix race between task migration and cgroup iteration.

----------------------------------------------------------------
Chen Ridong (1):
cgroup/cpuset: fix null-ptr-deref in rebuild_sched_domains_cpuslocked

Qingye Zhao (1):
cgroup: fix race between task migration and iteration

Waiman Long (8):
cgroup/cpuset: Fix incorrect change to effective_xcpus in partition_xcpus_del()
cgroup/cpuset: Fix incorrect use of cpuset_update_tasks_cpumask() in update_cpumasks_hier()
cgroup/cpuset: Clarify exclusion rules for cpuset internal variables
cgroup/cpuset: Set isolated_cpus_updating only if isolated_cpus is changed
kselftest/cgroup: Simplify test_cpuset_prs.sh by removing "S+" command
cgroup/cpuset: Move housekeeping_update()/rebuild_sched_domains() together
cgroup/cpuset: Defer housekeeping_update() calls from CPU hotplug to workqueue
cgroup/cpuset: Call housekeeping_update() without holding cpus_read_lock

kernel/cgroup/cgroup.c | 1 +
kernel/cgroup/cpuset.c | 222 ++++++++++++++-------
kernel/sched/isolation.c | 4 +-
kernel/time/timer_migration.c | 4 +-
tools/testing/selftests/cgroup/test_cpuset_prs.sh | 224 +++++++++++-----------
5 files changed, 266 insertions(+), 189 deletions(-)

Thanks.

--
tejun