From: syzbot <syzbot+8d052e8b99e40bc625ed@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: Re: [syzbot] [cgroups?] WARNING in css_rstat_exit
Date: Mon, 14 Jul 2025 17:56:10 -0700 [thread overview]
Message-ID: <6875a72a.a70a0220.18f9d4.0015.GAE@google.com> (raw)
In-Reply-To: <684c5802.a00a0220.279073.0016.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [cgroups?] WARNING in css_rstat_exit
Author: inwardvessel@gmail.com
#syz test
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5669,6 +5669,12 @@ static struct cgroup_subsys_state
*css_create(struct cgroup *cgrp,
init_and_link_css(css, ss, cgrp);
+ err = css_rstat_init(css);
+ if (err) {
+ ss->css_free(css);
+ goto err_out;
+ }
+
err = percpu_ref_init(&css->refcnt, css_release, 0, GFP_KERNEL);
if (err)
goto err_free_css;
@@ -5678,10 +5684,6 @@ static struct cgroup_subsys_state
*css_create(struct cgroup *cgrp,
goto err_free_css;
css->id = err;
- err = css_rstat_init(css);
- if (err)
- goto err_free_css;
-
/* @css is ready to be brought online now, make it visible */
list_add_tail_rcu(&css->sibling, &parent_css->children);
cgroup_idr_replace(&ss->css_idr, css, css->id);
@@ -5697,6 +5699,7 @@ static struct cgroup_subsys_state
*css_create(struct cgroup *cgrp,
err_free_css:
INIT_RCU_WORK(&css->destroy_rwork, css_free_rwork_fn);
queue_rcu_work(cgroup_destroy_wq, &css->destroy_rwork);
+err_out:
return ERR_PTR(err);
}
--
prev parent reply other threads:[~2025-07-15 0:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 16:55 syzbot
2025-06-16 9:49 ` Michal Koutný
2025-06-17 4:46 ` JP Kobryn
2025-07-14 7:29 ` syzbot
2025-07-14 23:37 ` JP Kobryn
2025-07-14 23:39 ` syzbot
2025-07-14 23:58 ` JP Kobryn
2025-07-15 0:00 ` syzbot
2025-07-15 1:05 ` JP Kobryn
2025-07-15 1:27 ` syzbot
2025-07-17 13:28 ` Michal Koutný
2025-07-17 18:46 ` Shakeel Butt
2025-07-22 0:29 ` JP Kobryn
2025-07-15 0:56 ` syzbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6875a72a.a70a0220.18f9d4.0015.GAE@google.com \
--to=syzbot+8d052e8b99e40bc625ed@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®