From: Tejun Heo <tj@kernel.org>
To: Hewenliang <hewenliang4@huawei.com>
Cc: shuah@kernel.org, guro@fb.com, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kselftests: cgroup: Avoid the reuse of fd after it is deallocated
Date: Tue, 12 Nov 2019 07:35:15 -0800 [thread overview]
Message-ID: <20191112153515.GE4163745@devbig004.ftw2.facebook.com> (raw)
In-Reply-To: <20191112021655.52951-1-hewenliang4@huawei.com>
On Mon, Nov 11, 2019 at 09:16:55PM -0500, Hewenliang wrote:
> It is necessary to set fd to -1 when inotify_add_watch() fails in
> cg_prepare_for_wait. Otherwise the fd which has been closed in
> cg_prepare_for_wait may be misused in other functions such as
> cg_enter_and_wait_for_frozen and cg_freeze_wait.
>
> Fixes: 5313bfe425c8 ("selftests: cgroup: add freezer controller self-tests")
> Signed-off-by: Hewenliang <hewenliang4@huawei.com>
Applied to cgroup/for-5.5.
Thanks.
--
tejun
prev parent reply other threads:[~2019-11-12 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 2:16 [PATCH] kselftests: cgroup: Avoid the reuse of fd after it is deallocated Hewenliang
2019-11-12 15:35 ` Tejun Heo [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=20191112153515.GE4163745@devbig004.ftw2.facebook.com \
--to=tj@kernel.org \
--cc=guro@fb.com \
--cc=hewenliang4@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@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