All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix two issues in blkg_create() error path
@ 2026-06-22  7:07 Zizhi Wo
  2026-06-22  7:07 ` [PATCH 1/2] blk-cgroup: fix blkg leak " Zizhi Wo
  2026-06-22  7:07 ` [PATCH 2/2] blk-cgroup: fix null-ptr-deref by freeing blkg pd on blkg_create " Zizhi Wo
  0 siblings, 2 replies; 5+ messages in thread
From: Zizhi Wo @ 2026-06-22  7:07 UTC (permalink / raw)
  To: axboe, tj, josef, linux-block
  Cc: cgroups, yangerkun, chengzhihao1, houtao1, yukuai, wozizhi

From: Zizhi Wo <wozizhi@huawei.com>

This series fixes two issues on the blkg_create() error path.

Patch 1 fixes a blkg leak when blkg_create() fails.

Patch 2 fixes a null-ptr-deref by freeing blkg->pd synchronously on the
error path, otherwise the async free path may dereference an already
unregistered blkcg_policy.

Zizhi Wo (2):
  blk-cgroup: fix blkg leak in blkg_create() error path
  blk-cgroup: fix Null-ptr-deref by freeing blkg pd on blkg_create error
    path

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

-- 
2.52.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-23  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22  7:07 [PATCH 0/2] fix two issues in blkg_create() error path Zizhi Wo
2026-06-22  7:07 ` [PATCH 1/2] blk-cgroup: fix blkg leak " Zizhi Wo
2026-06-23  1:16   ` Tao Cui
2026-06-23  1:38     ` Zizhi Wo
2026-06-22  7:07 ` [PATCH 2/2] blk-cgroup: fix null-ptr-deref by freeing blkg pd on blkg_create " Zizhi Wo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.