linux/tools/testing/selftests/cgroup
Hewenliang d671fa6393 kselftests: cgroup: Avoid the reuse of fd after it is deallocated
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: 5313bfe425 ("selftests: cgroup: add freezer controller self-tests")
Signed-off-by: Hewenliang <hewenliang4@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2019-11-12 07:33:59 -08:00
..
.gitignore kselftests: cgroup: add freezer controller self-tests 2019-04-19 11:26:49 -07:00
cgroup_util.c selftests: cgroup: Add task migration tests 2019-10-07 07:11:54 -07:00
cgroup_util.h selftests: cgroup: Add task migration tests 2019-10-07 07:11:54 -07:00
Makefile selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00
test_core.c selftests: cgroup: Add task migration tests 2019-10-07 07:11:54 -07:00
test_freezer.c kselftests: cgroup: Avoid the reuse of fd after it is deallocated 2019-11-12 07:33:59 -08:00
test_memcontrol.c kselftest/cgroup: fix unexpected testing failure on test_memcontrol 2019-05-30 08:19:17 -06:00
test_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00
with_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00