[PATCH 0/3] blk-cgroup: cleanup and bugfixs in blk-cgroup

From: Zheng Qixing
Date: Wed Jan 07 2026 - 21:18:03 EST


From: Zheng Qixing <zhengqixing@xxxxxxxxxx>

Hi,

This series contains three patches.

Patch 1 is a cleanup change which extracts the common teardown sequence
into a helper.

Patches 2 and 3 fix a use-after-free issue triggered by the concurrency
between switching the device I/O scheduler and blkcg deletion.

Zheng Qixing (3):
blk-cgroup: factor policy pd teardown loop into helper
blk-cgroup: fix uaf in blkcg_activate_policy() racing with
blkg_free_workfn()
blk-cgroup: skip dying blkg in blkcg_activate_policy()

block/blk-cgroup.c | 63 +++++++++++++++++++++++-----------------------
1 file changed, 31 insertions(+), 32 deletions(-)

--
2.39.2