Wind River Support Network

HomeDefectsLIN1021-51
Fixed

LIN1021-51 : [LTP] ksm03/ksm04 failed to close FILE '/tmp/cgroup_mem/cgroup.subtree_control' in intel-x86-64

Created: May 17, 2021    Updated: Aug 20, 2021
Resolved Date: Aug 20, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Kernel

Description

Build:
--dl-layers --machines intel-x86-64 --distro wrlinux --templates feature/test feature/system-stats feature/benchmark feature/bsp-extras feature/valgrind feature/target-toolchain feature/gcc-sanitizers feature/ldconfig feature/intel-persistent-memory feature/bcc feature/intel-qat feature/intel-sst feature/edac

Enable tracing options
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_PREEMPTIRQ_EVENTS=y
CONFIG_IRQSOFF_TRACER=y
CONFIG_PREEMPT_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_HWLAT_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
CONFIG_BRANCH_PROFILE_NONE=y
CONFIG_STACK_TRACER=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_KPROBE_EVENTS=y
CONFIG_UPROBE_EVENTS=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_FUNCTION_PROFILER=y
CONFIG_FTRACE_STARTUP_TEST=y
CONFIG_EVENT_TRACE_STARTUP_TEST=y
CONFIG_EVENT_TRACE_TEST_SYSCALLS=y
CONFIG_MMIOTRACE=y
CONFIG_TRACEPOINT_BENCHMARK=m
CONFIG_RING_BUFFER_STARTUP_TEST=y
CONFIG_RING_BUFFER_BENCHMARK=m
CONFIG_MMIOTRACE_TEST=m
CONFIG_PREEMPTIRQ_DELAY_TEST=m
CONFIG_TRACE_EVAL_MAP_FILE=y
CONFIG_DYNAMIC_DEBUG=y

Enable numa in ltp

bitbake wrlinux-image-std

Boot the target by sda1:
root@intel-x86-64:~# umount /dev/sda*
root@intel-x86-64:~# dd if=/dev/zero of=/dev/sda bs=1k count=100; sleep 2
root@intel-x86-64:~# parted -s /dev/sda mklabel gpt; sleep 2
root@intel-x86-64:~# parted /dev/sda p; sleep 2
root@intel-x86-64:~# partprobe; sleep 2
root@intel-x86-64:~# parted -s /dev/sda align-check optimal 1; sleep 2
root@intel-x86-64:~# mkfs.ext4 -F /dev/sda1; sleep 2
root@intel-x86-64:~# mount /dev/sda1 /mnt && cp /rootfs.tar.bz2* /mnt
root@intel-x86-64:~# tar --numeric-owner -mjxif rootfs.tar.bz2*
root@intel-x86-64:~# reboot -f

kernel console=ttyS0,115200n8 root=/dev/sda1 rw rootwait ip=dhcp ignore_loglevel selinux=0 enforcing=0 noinitrd memtest=0 kmemleak=off TARGET=Harcuvar

On the target:
runltp -f mm -s ksm03|ksm04|ksm03_1|ksm04_1


root@intel-x86-64:/opt/ltp/wrLinux_ltp# ./wr-runltp -f mm -s ksm03
<<wr-runltp Test Plan>>
LTP test case : ksm03
Checking for required user/group ids

'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

/etc/lsb-release
/etc/os-release
DISTRIB_ID=wrlinux
DISTRIB_RELEASE=10.21.12.0
DISTRIB_DESCRIPTION="Wind River Linux development 10.21.12.0"
ID=wrlinux
NAME="Wind River Linux development"
VERSION="10.21.12.0"
VERSION_ID=10.21.12.0
PRETTY_NAME="Wind River Linux development 21.12"

uname:
Linux intel-x86-64 5.4.105-yocto-standard #1 SMP PREEMPT Mon Mar 22 02:54:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

/proc/cmdline
kernel console=ttyS0,115200n8 root=/dev/sda1 rw rootwait ip=dhcp ignore_loglevel selinux=0 enforcing=0 noinitrd memtest=0 kmemleak=off TARGET=Harcuvar

Gnu C                  gcc (GCC) 10.2.0
Clang                  clang version 12.0.0 (https://github.com/llvm/llvm-project 15d1ee36720ff24323f55452ae3cfb63f318c3f3)
Gnu make               4.3
util-linux             2.36.2
mount                  linux 2.36.2 (libmount 2.36.2: btrfs, namespaces, assert, debug)
modutils               28
e2fsprogs              1.46.1
PPP                    2.4.9
Linux C Library        > libc.2.33
Dynamic linker (ldd)   2.33
Procps                 3.3.17-dirty
Net-tools              2.10
iproute2               iproute2-5.11.0
iputils                s20200821+
ethtool                5.10
Sh-utils               8.32
Modules Loaded         snd_hrtimer snd_seq snd_seq_device snd_timer xfrm_user can_raw can dummy ppp_synctty ppp_async crc_ccitt ppp_generic slip slhc tun sctp cfg80211 8021q intel_rapl_msr intel_rapl_common pnd2_edac x86_pkg_temp_thermal intel_powerclamp coretemp iTCO_wdt crct10dif_pclmul crct10dif_common iTCO_vendor_support qat_c3xxx matroxfb_base aesni_intel watchdog efi_pstore matroxfb_g450 intel_qat matroxfb_accel glue_helper crypto_simd matroxfb_DAC1064 dh_generic g450_pll cryptd efivars matroxfb_misc i2c_i801 uio i2c_ismt acpi_cpufreq sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse configfsTP: starting ksm03


free reports:
               total        used        free      shared  buff/cache   available
Mem:        32841488      464152    32090400       63628      286936    31932440
Swap:              0           0           0

cpuinfo:
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              1
Core(s) per socket:              16
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           95
Model name:                      06/5f
Stepping:                        1
Frequency boost:                 enabled
CPU MHz:                         2400.000
CPU max MHz:                     2101.0000
CPU min MHz:                     800.0000
BogoMIPS:                        4200.00
Virtualization:                  VT-x
L1d cache:                       384 KiB
L1i cache:                       512 KiB
L2 cache:                        16 MiB
NUMA node0 CPU(s):               0-15
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, STIBP disabled, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault epb cat_l2 pti tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts

AppArmor disabled

SELinux mode: unknown
no big block device was specified on commandline.
Tests which require a big block device are disabled.
You can specify it with option -z
COMMAND:    /opt/ltp/bin/ltp-pan   -e -S   -a 1860043     -n 1860043 -p -f /opt/ltp/wrLinux_ltp/tmpdir/ltp-XwoTKyJTqv/alltests -l /opt/ltp/wrLinux_ltp/runtime/runtime.log  -C /opt/ltp/output/LTP_RUN_ON-runtime.log.failed -T /opt/ltp/output/LTP_RUN_ON-runtime.log.tconf
INFO: Restricted to \<ksm03\>
LOG File: /opt/ltp/wrLinux_ltp/runtime/runtime.log
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-runtime.log.failed
TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-runtime.log.tconf
Running tests.......
<<<test_start>>>
tag=ksm03 stime=1616484909
cmdline="ksm03"
contacts=""
analysis=exit
<<<test_output>>>
m03_1 (ksm03 -u 128)
tst_test.c:1261: TINFO: Timeout per run is 0h 05m 00s
tst_device.c:423: TINFO: No device is mounted at /tmp/cgroup_mem
tst_cgroup.c:122: TINFO: Cgroup v2 mount at /tmp/cgroup_mem success
tst_cgroup.c:301: TBROK: Failed to close FILE '/tmp/cgroup_mem/cgroup.subtree_control': ENOENT (2)
tst_cgroup.c:180: TINFO: Cgroup v2 unmount success

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=ksm03_1 stime=1616484909
cmdline="ksm03 -u 128"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1261: TINFO: Timeout per run is 0h 05m 00s
tst_device.c:423: TINFO: No device is mounted at /tmp/cgroup_mem
tst_cgroup.c:122: TINFO: Cgroup v2 mount at /tmp/cgroup_mem success
tst_cgroup.c:301: TBROK: Failed to close FILE '/tmp/cgroup_mem/cgroup.subtree_control': ENOENT (2)
tst_cgroup.c:180: TINFO: Cgroup v2 unmount success

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20210121

       ###############################################################

            Done executing testcases.
            LTP Version:  20210121
       ###############################################################

Steps to Reproduce

Build:
--dl-layers --machines intel-x86-64 --distro wrlinux --templates feature/test feature/system-stats feature/benchmark feature/bsp-extras feature/valgrind feature/target-toolchain feature/gcc-sanitizers feature/ldconfig feature/intel-persistent-memory feature/bcc feature/intel-qat feature/intel-sst feature/edac

Enable tracing options
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_PREEMPTIRQ_EVENTS=y
CONFIG_IRQSOFF_TRACER=y
CONFIG_PREEMPT_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_HWLAT_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
CONFIG_BRANCH_PROFILE_NONE=y
CONFIG_STACK_TRACER=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_KPROBE_EVENTS=y
CONFIG_UPROBE_EVENTS=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_FUNCTION_PROFILER=y
CONFIG_FTRACE_STARTUP_TEST=y
CONFIG_EVENT_TRACE_STARTUP_TEST=y
CONFIG_EVENT_TRACE_TEST_SYSCALLS=y
CONFIG_MMIOTRACE=y
CONFIG_TRACEPOINT_BENCHMARK=m
CONFIG_RING_BUFFER_STARTUP_TEST=y
CONFIG_RING_BUFFER_BENCHMARK=m
CONFIG_MMIOTRACE_TEST=m
CONFIG_PREEMPTIRQ_DELAY_TEST=m
CONFIG_TRACE_EVAL_MAP_FILE=y
CONFIG_DYNAMIC_DEBUG=y

Enable numa in ltp

bitbake wrlinux-image-std

Boot the target by sda1:
root@intel-x86-64:~# umount /dev/sda*
root@intel-x86-64:~# dd if=/dev/zero of=/dev/sda bs=1k count=100; sleep 2
root@intel-x86-64:~# parted -s /dev/sda mklabel gpt; sleep 2
root@intel-x86-64:~# parted /dev/sda p; sleep 2
root@intel-x86-64:~# partprobe; sleep 2
root@intel-x86-64:~# parted -s /dev/sda align-check optimal 1; sleep 2
root@intel-x86-64:~# mkfs.ext4 -F /dev/sda1; sleep 2
root@intel-x86-64:~# mount /dev/sda1 /mnt && cp /rootfs.tar.bz2* /mnt
root@intel-x86-64:~# tar --numeric-owner -mjxif rootfs.tar.bz2*
root@intel-x86-64:~# reboot -f

kernel console=ttyS0,115200n8 root=/dev/sda1 rw rootwait ip=dhcp ignore_loglevel selinux=0 enforcing=0 noinitrd memtest=0 kmemleak=off TARGET=Harcuvar

On the target:
/opt/ltp/wrLinux_ltp/wr-runltp -f mm -s ksm03|ksm04|ksm03_1|ksm04_1
Live chat
Online