[LTP] (no subject)

Cyril Hrubis chrubis@suse.cz
Mon Aug 26 13:50:16 CEST 2024


Hi!
>  Hi am Doing LTP build and execution at Riscv64 on Linux platform There am facing issue with controllers.cgroups here the log "CONFIG_LOCKDEP is not enabled
> 
> 
> CONFIG_LOCKDEP is not enabled
> 
> 
> HINT: You _MAY_ be missing kernel fixes:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1756d7994ad8
> 
> HINT: You _MAY_ be vulnerable to CVE(s):
> 
> https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4197
> tst_cgroup.c:878: TCONF: V2 'memory' controller required, but it's mounted on V1
> cgroup_core03.c:90: TCONF: cgroup.kill is not supported on your distribution
> tst_cgroup.c:862: TCONF: 'debug' controller required, but not available
> cgroup_fj_stress 1 TCONF: 'tst_cgctl require' exited. Controller is probably not available?
> cgroup_fj_stress 1 TINFO: Re
> tst_cgroup.c:878: TCONF: V2 'memory' controller required, but it's mounted on V1
> 
> Summary:
> passed   0
> failed   0
> broken   0
> skipped  1
> warnings 0
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=32 corefile=no
> cutime=0 cstime=1
> <<<test_end>>>

This looks like a perfecly valid test result, the test is skipped
because the controller is bound to V1 hierarchy. Nothing to worry about.

> <<<test_start>>>
> tag=cgroup_core03 stime=2083218808
> cmdline="cgroup_core03"
> contacts=""
> analysis=exit
> <<<test_output>>>
> tst_test.c:1690: TINFO: LTP version: 20230929
> tst_test.c:1574: TINFO: Timeout per run is 0h 00m 50s
> tst_buffers.c:56: TINFO: Test is using guarded buffers
> cgroup_core03.c:90: TCONF: cgroup.kill is not supported on your distribution

Here as well, the feature is not available hence it's not tested.

> Summary:
> passed   0
> failed   0
> broken   0
> skipped  1
> warnings 0
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=32 corefile=no
> cutime=0 cstime=0
> <<<test_end>>>
> <<<test_start>>>
> tag=cgroup stime=2083218808
> cmdline="cgroup_regression_test.sh"
> contacts=""
> analysis=exit
> <<<test_output>>>
> cgroup_regression_test 1 TINFO: timeout per run is 0h 5m 0s
> cgroup_regression_test 1 TPASS: no kernel bug was found
> cgroup_regression_test 2 TPASS: notify_on_release is inherited
> mkdir: cannot create directory '/sys/fs/cgroup/cpu,cpuacct/0': File exists

This is a bug either in the kernel or in the test, you have to figure
out what created the directory '0' before this test. My guess is that
one of tests that did exit with TCONF haven't cleaned up properly. So I
would run the cgroup tests one by one by hand and watch the
'/sys/fs/cgroup/cpu,cpuacct/' directory to see which test fails to
remove the '0' directory. Once we have the test pinned out we can debug
it further.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list