Bug 4628 - [Anolis23][nightly][x86_64] kernel-selftests测试套case:cgroup.test_freezer run fail
Summary: [Anolis23][nightly][x86_64] kernel-selftests测试套case:cgroup.test_freezer run fail
Status: REOPENED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
: 5623 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-28 17:33 UTC by anolislw
Modified: 2023-06-27 14:45 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-03-28 17:33:30 UTC
Description of problem:
Anolis23 ECS x86_64环境下,kernel-selftests nightly测试,cgroup.test_freezer run fail

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1)下载当前内核对应的kernel源码包
2) rpm -ivh xxx.src.rpm  默认安装到/root下
   yum-builddep -y rpmbuild/SPECS/kernel.spec   自动安装前置依赖包,需要yum-utils
   rpmbuild -bp ./rpmbuild/SPECS/kernel.spec   # 这个步骤会打相关的patch, 解压缩tar包,生成BUILD目录
   cd rpmbuild/BUILD/kernel-xxx/linux-xxx/  
   cd  /tools/testing/selftests/cgroup
   make
   ./test_freezer

Actual results:
[root@localhost cgroup]# ./test_freezer
Cgroup /sys/fs/cgroup/cg_test_simple isn't frozen
not 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


Expected results:
case pass

Additional info:
[root@localhost xfstests]# uname -r
5.10.134-61.git.3c4c5575a42e.an23.x86_64
[root@localhost xfstests]# cat /etc/anolis-release
Anolis OS release 23
[root@localhost xfstests]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-61.git.3c4c5575a42e.an23.x86_64 root=UUID=ece72b7f-465b-433d-8b3b-e5fa53a04642 ro rhgb cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@localhost xfstests]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-anolis-linux/12/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-anolis-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.openanolis.cn --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --without-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-anolis-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.1 20221121 (Anolis OS 12.2.1-1) (GCC)
[root@localhost xfstests]#
[root@localhost xfstests]# rpm -qa | grep glibc
glibc-common-2.36-3.an23.x86_64
glibc-gconv-extra-2.36-3.an23.x86_64
glibc-minimal-langpack-2.36-3.an23.x86_64
glibc-2.36-3.an23.x86_64
glibc-devel-2.36-3.an23.x86_64
glibc-static-2.36-3.an23.x86_64
[root@localhost xfstests]#
[root@localhost xfstests]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M  4.0K  4.0M   1% /dev
tmpfs           7.6G  4.0K  7.6G   1% /dev/shm
tmpfs           3.1G  712K  3.1G   1% /run
/dev/vda1        40G   21G   20G  51% /
tmpfs           7.6G  3.3G  4.3G  44% /tmp
tmpfs           1.6G     0  1.6G   0% /run/user/0
/dev/loop0      295M  247M   49M  84% /tmp/ltp-X8a9wEYeJp/LTP_prewbEQPN/mntpoint
[root@localhost xfstests]#
[root@localhost xfstests]# free -g
               total        used        free      shared  buff/cache   available
Mem:              15           0          10           3           3          10
Swap:              0           0           0
[root@localhost xfstests]#
[root@localhost xfstests]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 57 bits virtual
  Byte Order:            Little Endian
CPU(s):                  4
  On-line CPU(s) list:   0-3
Vendor ID:               GenuineIntel
  BIOS Vendor ID:        Alibaba Cloud
  Model name:            Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
    BIOS Model name:     pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:     1
    CPU family:          6
    Model:               106
    Thread(s) per core:  2
    Core(s) per socket:  2
    Socket(s):           1
    Stepping:            6
    BogoMIPS:            5399.99
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss h
                         t syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulq
                         dq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor
                         lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep
                         bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw
                          avx512vl xsaveopt xsavec xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpc
                         lmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   96 KiB (2 instances)
  L1i:                   64 KiB (2 instances)
  L2:                    2.5 MiB (2 instances)
  L3:                    48 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-3
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced IBRS, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected
Comment 1 yunmeng365524 2023-05-26 16:49:21 UTC
最新的nightly好像不能复现。arm的和x86的都OK了
[root@qibo-anolis23-nightly-func-x86-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-x86-1 cgroup]# uname -a
Linux qibo-anolis23-nightly-func-x86-1 5.10.134-120.git.b2fceb47cb13.an23.x86_64 #1 SMP Thu May 25 21:36:53 CST 2023 x86_64 GNU/Linux

[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]# uname -a
Linux qibo-anolis23-nightly-func-arm-1 5.10.134-112.git.b2fceb47cb13.an23.aarch64 #1 SMP Thu May 25 21:15:05 CST 2023 aarch64 GNU/Linux
Comment 2 Banana alibaba_cloud_group 2023-06-27 14:44:20 UTC
*** Bug 5623 has been marked as a duplicate of this bug. ***
Comment 3 Banana alibaba_cloud_group 2023-06-27 14:45:37 UTC
此问题是概率性复现问题,Anolis23 5.10 arm环境有相同问题
见重复问题单:https://bugzilla.openanolis.cn/show_bug.cgi?id=5623