From: Tejun Heo <tj@kernel.org>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: Chen Ridong <chenridong@huawei.com>,
lizefan.x@bytedance.com, hannes@cmpxchg.org, longman@redhat.com,
adityakali@google.com, sergeh@kernel.org,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V3] cgroup/cpuset: Prevent UAF in proc_cpuset_show()
Date: Thu, 27 Jun 2024 08:29:33 -1000 [thread overview]
Message-ID: <Zn2vjVNnIcUN8lXM@slm.duckdns.org> (raw)
In-Reply-To: <6mjie6enbm5ltei4fsanz64ofukbr4gvss7ywi5sjfjxjxing7@efuhtnqvfawd>
Hello,
On Thu, Jun 27, 2024 at 11:46:10AM +0200, Michal Koutný wrote:
> Your patch should work thanks to the rcu_read_lock and
> cgroup_free_root/kfree_rcu and the `if (css->cgroup)` guard is
> unnecessary.
>
> So the patch is a functional fix, the reasoning in commit message is
> little off. Not sure if Tejun rebases his for-6.10-fixes (with a
> possible v4), full fixup commit for this may not be worthy.
This one's on the top. If Chen can send me a patch with updated description,
I will replace the patch.
Thanks.
--
tejun
next prev parent reply other threads:[~2024-06-27 18:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 9:41 [PATCH V3] cgroup/cpuset: Prevent UAF in proc_cpuset_show() Chen Ridong
2024-06-26 14:56 ` Waiman Long
2024-06-26 21:20 ` Tejun Heo
2024-06-27 9:46 ` Michal Koutný
2024-06-27 18:29 ` Tejun Heo [this message]
2024-06-27 18:37 ` Waiman Long
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=Zn2vjVNnIcUN8lXM@slm.duckdns.org \
--to=tj@kernel.org \
--cc=adityakali@google.com \
--cc=cgroups@vger.kernel.org \
--cc=chenridong@huawei.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=longman@redhat.com \
--cc=mkoutny@suse.com \
--cc=sergeh@kernel.org \
/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