[GIT PULL] cgroup: Fixes for v6.4-rc7

From: Tejun Heo
Date: Wed Jun 21 2023 - 18:06:03 EST


The following changes since commit 5647e53f7856bb39dae781fe26aa65a699e2fc9f:

cgroup: Documentation: Clarify usage of memory limits (2023-06-05 14:08:12 -1000)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git/ cgroup-for-6.4-rc7-fixes

for you to fetch changes up to 6f363f5aa845561f7ea496d8b1175e3204470486:

cgroup: Do not corrupt task iteration when rebinding subsystem (2023-06-12 07:21:57 -1000)

----------------------------------------------------------------
cgroup: Fixes for v6.4-rc7

It's late but here are two bug fixes. Both fix problems which can be severe
but are very confined in scope. The risk to most use cases should be
minimal.

* Fix for an old bug which triggers if a cgroup subsystem is remounted to a
different hierarchy while someone is reading its cgroup.procs/tasks file.
The risk is pretty low given how seldom cgroup subsystems are moved across
hierarchies.

* We moved cpus_read_lock() outside of cgroup internal locks a while ago but
forgot to update the legacy_freezer leading to lockdep triggers. Fixed.

----------------------------------------------------------------
Tetsuo Handa (1):
cgroup,freezer: hold cpu_hotplug_lock before freezer_mutex in freezer_css_{online,offline}()

Xiu Jianfeng (1):
cgroup: Do not corrupt task iteration when rebinding subsystem

kernel/cgroup/cgroup.c | 20 +++++++++++++++++---
kernel/cgroup/legacy_freezer.c | 8 ++++++--
2 files changed, 23 insertions(+), 5 deletions(-)

--
tejun