Re: [PATCH] kselftests: cgroup: Avoid the reuse of fd after it is deallocated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Applied to cgroup/for-5.5.

Thanks.

-- 
tejun



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux