Bug 5623 - [Anolis 23][社区nightly][aarch64]kernel-selftests测试套cgroup模块test_freezer测试项概率性FAIL
Summary: [Anolis 23][社区nightly][aarch64]kernel-selftests测试套cgroup模块test_freezer测试项概率性FAIL
Status: RESOLVED DUPLICATE of bug 4628
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuancue
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 14:21 UTC by Banana
Modified: 2025-07-08 10:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2023-06-27 14:21:59 UTC
[问题描述]:
Anolis23 5.10 arm社区nightly环境kernel-selftests测试套cgroup模块test_freezer测试项概率性FAIL

[root@qibo-anolis23-nightly-func-arm-1 cgroup]# ./test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# ./test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# ./test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# ./test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
Cgroup /sys/fs/cgroup/cg_test_ptrace isn't frozen
not ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork

[环境信息]:
机器类型:ECS

[内核信息]:
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# uname -r
5.10.134-145.git.eee40b40e929.an23.aarch64

[操作系统信息]:
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# uname -r
5.10.134-145.git.eee40b40e929.an23.aarch64
[root@qibo-anolis23-nightly-func-arm-1 cgroup]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@qibo-anolis23-nightly-func-arm-1 cgroup]# cat /proc/meminfo
MemTotal:       15748180 kB
MemFree:        10677412 kB
MemAvailable:   11325320 kB
Buffers:              40 kB
Cached:          3915532 kB
SwapCached:            0 kB
Active:           417108 kB
Inactive:        3813620 kB
Active(anon):     126020 kB
Inactive(anon):  3631884 kB
Active(file):     291088 kB
Inactive(file):   181736 kB
Unevictable:        3072 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:        316828 kB
Mapped:           136236 kB
Shmem:           3443916 kB
KReclaimable:     423596 kB
Slab:             643708 kB
SReclaimable:     423596 kB
SUnreclaim:       220112 kB
KernelStack:        5936 kB
PageTables:         4752 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7874088 kB
Committed_AS:    4338032 kB
VmallocTotal:   135290159040 kB
VmallocUsed:       21872 kB
VmallocChunk:          0 kB
Percpu:            15840 kB
HardwareCorrupted:    44 kB
AnonHugePages:    194560 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:          65536 kB
CmaFree:           59960 kB
DupText:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB

[root@qibo-anolis23-nightly-func-arm-1 cgroup]# ls /sys/fs/cgroup/
cgroup.controllers      cpu.bvt_warp_ns        dev-mqueue.mount  memory.async_fork             memory.use_priority_oom        system.slice
cgroup.max.depth        cpu.identity           init.scope        memory.idle_page_stats        memory.use_priority_swap       toneagent.service
cgroup.max.descendants  cpu.pressure           io.cost.model     memory.idle_page_stats.local  proc-sys-fs-binfmt_misc.mount  user.slice
cgroup.procs            cpu.stat               io.cost.qos       memory.numa_stat              sys-fs-fuse-connections.mount
cgroup.stat             cpuset.cpus.effective  io.pressure       memory.pressure               sys-kernel-config.mount
cgroup.subtree_control  cpuset.mems.effective  io.stat           memory.reap_background        sys-kernel-debug.mount
cgroup.threads          dev-hugepages.mount    memcg_test        memory.stat                   sys-kernel-tracing.mount

[root@qibo-anolis23-nightly-func-arm-1 cgroup]# mount | grep cgroup
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel)
tmpfs on /usr/local/aegis/cgroup type tmpfs (rw,relatime,seclabel,size=51200k)
rdma on /tmp/ltp-kfdCsN5oyz/cgroup_rdma type cgroup (rw,relatime,seclabel,rdma)

[问题发生概率]:
概率性较容易复现

[复现步骤]:
安装src.rpm包
yum-builddep -y /root/rpmbuild/SPECS/kernel.spec
rpmbuild -bp /root/rpmbuild/SPECS/kernel.spec 
进入/root/rpmbuild/BUILD/kernel-5.10.134-15_rc1.an23/linux-5.10.134-15_rc1.an23.aarch64/tools/testing/selftests/cgroup路径
make编译
执行./test_freezer
Comment 1 Banana alibaba_cloud_group 2023-06-27 14:44:20 UTC
重复问题

*** This bug has been marked as a duplicate of bug 4628 ***
Comment 2 gaohongmei 2025-07-08 10:13:26 UTC
6.6.88-cbp.git.5ad4b5ac3.an23.x86_64内核,概率性出现


# ./cgroup/test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork

# ./cgroup/test_freezer
ok 1 test_cgfreezer_simple
ok 2 test_cgfreezer_tree
ok 3 test_cgfreezer_forkbomb
ok 4 test_cgfreezer_mkdir
ok 5 test_cgfreezer_rmdir
ok 6 test_cgfreezer_migrate
Cgroup /sys/fs/cgroup/cg_test_ptrace isn't frozen
not ok 7 test_cgfreezer_ptrace
ok 8 test_cgfreezer_stopped
ok 9 test_cgfreezer_ptraced
ok 10 test_cgfreezer_vfork

# uname -r
6.6.88-cbp.git.5ad4b5ac3.an23.x86_64

# cat /etc/anolis-release 
Anolis OS release 23