[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191112153515.GE4163745@devbig004.ftw2.facebook.com>
Date: Tue, 12 Nov 2019 07:35:15 -0800
From: Tejun Heo <tj@...nel.org>
To: Hewenliang <hewenliang4@...wei.com>
Cc: shuah@...nel.org, guro@...com, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kselftests: cgroup: Avoid the reuse of fd after it is
deallocated
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@...wei.com>
Applied to cgroup/for-5.5.
Thanks.
--
tejun
Powered by blists - more mailing lists