Bug 4574 - [Anolis23][x86_64][社区nightly & ANCK-5.10-14-rc2] kernel-selftest测试case:proc.proc-uptime-001异常抛出Aborted (core dumped)
Summary: [Anolis23][x86_64][社区nightly & ANCK-5.10-14-rc2] kernel-selftest测试case:proc.p...
Status: RESOLVED WONTFIX
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:
Depends on:
Blocks:
 
Reported: 2023-03-20 17:32 UTC by anolislw
Modified: 2023-03-21 11:20 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-20 17:32:33 UTC
Description of problem:
在anolis23 x86 ECS环境下,安装ANCK-5.10-14-rc2内核测试下,kernel-selftest测试case:proc.proc-uptime-001异常抛出Aborted (core dumped)

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

How reproducible:

Steps to Reproduce:
1)下载内核src源码包kernel-5.10.134-14_rc2.an23.src.rpm
2)rpm-i kernel-xxx.src.rpm
3) yum-builddep -y ~/rpmbuild/SPECS/kernel.spec
4) rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
5) cd ~/rpmbuild/BUILD/kernel-5.10.xxx.an23/linux-5.10.xxx.an23.x86_64/
6) cd tools/testing/selftests/proc && make && ./proc-uptime-001

Actual results:
[root@qibo-anolis23-nightly-func-x86-1 proc]# ./proc-uptime-001
proc-uptime-001: proc-uptime-001.c:39: main: Assertion `i1 >= i0' failed.
Aborted (core dumped)


Expected results:
case无异常

Additional info:
[root@qibo-anolis23-nightly-func-x86-1 proc]# uname -r
5.10.134-14_rc2.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 proc]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anolis23-nightly-func-x86-1 proc]# df -hh
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M  4.0K  4.0M   1% /dev
tmpfs           7.6G     0  7.6G   0% /dev/shm
tmpfs           3.1G  604K  3.1G   1% /run
/dev/vda1        40G  9.2G   31G  23% /
tmpfs           7.6G  2.2G  5.5G  29% /tmp
tmpfs           1.6G     0  1.6G   0% /run/user/0
[root@qibo-anolis23-nightly-func-x86-1 proc]# free -g
               total        used        free      shared  buff/cache   available
Mem:              15           0          11           2           2          12
Swap:              0           0           0
[root@qibo-anolis23-nightly-func-x86-1 proc]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-14_rc2.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@qibo-anolis23-nightly-func-x86-1 proc]# 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



注意:
这个case出现Aborted (core dumped)现象,复现一次不是每次复验必现的,大概率多试几个可以复现的
Comment 1 anolislw alibaba_cloud_group 2023-03-20 18:02:08 UTC
在5.10.134-14_rc1内核上该case:proc.proc-uptime-001是pass的
------------------------
  {
    "testcase": "proc.proc-uptime-001",
    "value": "Pass"
  }

在Anolis8-5.10-x86_64内核上该case:proc.proc-uptime-001是skip的
------------------------
  {
    "testcase": "proc.proc-uptime-001",
    "value": "Skip"
  }
Comment 2 yunmeng365524 2023-03-21 11:20:01 UTC
首先很奇怪,rc1是OK的,rc2挂掉了,但是coredump是挂在用户态。
查看coredump信息:
[root@qibo-anolis23-nightly-func-x86-1 proc]# coredumpctl info 10559
           PID: 10559 (proc-uptime-001)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 6 (ABRT)
     Timestamp: Tue 2023-03-21 11:12:50 CST (1min 36s ago)
  Command Line: ./proc-uptime-001
    Executable: /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/pro>
 Control Group: /user.slice/user-0.slice/session-4.scope
          Unit: session-4.scope
         Slice: user-0.slice
       Session: 4
     Owner UID: 0 (root)
       Boot ID: aec774a0f96e431981ab8619a18eb29e
    Machine ID: 432698561ba6400e937f4027d8bde489
      Hostname: qibo-anolis23-nightly-func-x86-1
       Storage: /var/lib/systemd/coredump/core.proc-uptime-001.0.aec774a0f96e431981ab8619a18eb29e.10559.1679368370000000.zst (>
  Size on Disk: 17.4K
       Message: Process 10559 (proc-uptime-001) of user 0 dumped core.

                Stack trace of thread 10559:
                #0  0x00007f3b17412cdc __pthread_kill_implementation (libc.so.6 + 0x88cdc)
                #1  0x00007f3b173c28f6 raise (libc.so.6 + 0x388f6)
                #2  0x00007f3b173ac7fc abort (libc.so.6 + 0x227fc)
                #3  0x00007f3b173ac71b __assert_fail_base.cold (libc.so.6 + 0x2271b)
                #4  0x00007f3b173bb636 __assert_fail (libc.so.6 + 0x31636)
                #5  0x0000000000401138 n/a (/root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64>
                ELF object binary architecture: AMD x86-64

可以看到,挂在了glibc上,
排查glibc版本,可以看到用的是测试repo的高版本glibc
[root@qibo-anolis23-nightly-func-x86-1 proc]# rpm -qa | grep glibc
glibc-common-2.36-5.an23.x86_64
glibc-gconv-extra-2.36-5.an23.x86_64
glibc-minimal-langpack-2.36-5.an23.x86_64
glibc-2.36-5.an23.x86_64
glibc-devel-2.36-5.an23.x86_64
glibc-static-2.36-5.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 proc]# yum info glibc
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:06:52 ago on Tue Mar 21 08:08:44 2023.
Installed Packages
Name         : glibc
Version      : 2.36
Release      : 5.an23
Architecture : x86_64
Size         : 6.5 M
Source       : glibc-2.36-5.an23.src.rpm
Repository   : @System
From repo    : build
Summary      : The GNU libc libraries
URL          : http://www.gnu.org/software/glibc/
License      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ and GPLv2+ with exceptions and BSD and Inner-Net and ISC and
             : Public Domain and GFDL
Description  : The glibc package contains standard libraries which are used by
             : multiple programs on the system. In order to save disk space and
             : memory, as well as to make upgrading easier, common system code is
             : kept in one place and shared between programs. This particular package
             : contains the most important sets of shared libraries: the standard C
             : library and the standard math library. Without these two libraries, a
             : Linux system will not function.
降级glibc的版本后,运行OK
[root@qibo-anolis23-nightly-func-x86-1 proc]# yum repolist
Failed to set locale, defaulting to C.UTF-8
repo id                                                  repo name
AppStream                                                AnolisOS-23 - AppStream
BaseOS                                                   AnolisOS-23 - BaseOS
build                                                    build
[root@qibo-anolis23-nightly-func-x86-1 proc]# yum downgrade glibc
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:07:20 ago on Tue Mar 21 08:08:44 2023.
Dependencies resolved.
===============================================================================================================================
 Package                                 Architecture            Version                      Repository                  Size
===============================================================================================================================
Downgrading:
 glibc                                   x86_64                  2.36-3.an23                  BaseOS                     2.0 M
 glibc-common                            x86_64                  2.36-3.an23                  BaseOS                     278 k
 glibc-devel                             x86_64                  2.36-3.an23                  BaseOS                     441 k
 glibc-gconv-extra                       x86_64                  2.36-3.an23                  BaseOS                     1.5 M
 glibc-minimal-langpack                  x86_64                  2.36-3.an23                  BaseOS                     7.4 k
 glibc-static                            x86_64                  2.36-3.an23                  AppStream                  1.8 M

Transaction Summary
===============================================================================================================================
Downgrade  6 Packages

Total download size: 6.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): glibc-common-2.36-3.an23.x86_64.rpm                                                     1.7 MB/s | 278 kB     00:00
(2/6): glibc-gconv-extra-2.36-3.an23.x86_64.rpm                                                7.0 MB/s | 1.5 MB     00:00
(3/6): glibc-devel-2.36-3.an23.x86_64.rpm                                                      1.1 MB/s | 441 kB     00:00
(4/6): glibc-minimal-langpack-2.36-3.an23.x86_64.rpm                                            51 kB/s | 7.4 kB     00:00
(5/6): glibc-2.36-3.an23.x86_64.rpm                                                            2.5 MB/s | 2.0 MB     00:00
(6/6): glibc-static-2.36-3.an23.x86_64.rpm                                                     2.0 MB/s | 1.8 MB     00:00
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                          4.8 MB/s | 6.1 MB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                       1/1
  Downgrading      : glibc-common-2.36-3.an23.x86_64                                                                      1/12
  Downgrading      : glibc-gconv-extra-2.36-3.an23.x86_64                                                                 2/12
  Running scriptlet: glibc-gconv-extra-2.36-3.an23.x86_64                                                                 2/12
  Downgrading      : glibc-minimal-langpack-2.36-3.an23.x86_64                                                            3/12
  Running scriptlet: glibc-2.36-3.an23.x86_64                                                                             4/12
  Downgrading      : glibc-2.36-3.an23.x86_64                                                                             4/12
  Running scriptlet: glibc-2.36-3.an23.x86_64                                                                             4/12
  Downgrading      : glibc-devel-2.36-3.an23.x86_64                                                                       5/12
  Downgrading      : glibc-static-2.36-3.an23.x86_64                                                                      6/12
  Cleanup          : glibc-static-2.36-5.an23.x86_64                                                                      7/12
  Cleanup          : glibc-devel-2.36-5.an23.x86_64                                                                       8/12
  Cleanup          : glibc-2.36-5.an23.x86_64                                                                             9/12
  Cleanup          : glibc-minimal-langpack-2.36-5.an23.x86_64                                                           10/12
  Cleanup          : glibc-gconv-extra-2.36-5.an23.x86_64                                                                11/12
  Running scriptlet: glibc-gconv-extra-2.36-5.an23.x86_64                                                                11/12
  Cleanup          : glibc-common-2.36-5.an23.x86_64                                                                     12/12
  Running scriptlet: glibc-common-2.36-5.an23.x86_64                                                                     12/12
  Verifying        : glibc-2.36-3.an23.x86_64                                                                             1/12
  Verifying        : glibc-2.36-5.an23.x86_64                                                                             2/12
  Verifying        : glibc-common-2.36-3.an23.x86_64                                                                      3/12
  Verifying        : glibc-common-2.36-5.an23.x86_64                                                                      4/12
  Verifying        : glibc-devel-2.36-3.an23.x86_64                                                                       5/12
  Verifying        : glibc-devel-2.36-5.an23.x86_64                                                                       6/12
  Verifying        : glibc-gconv-extra-2.36-3.an23.x86_64                                                                 7/12
  Verifying        : glibc-gconv-extra-2.36-5.an23.x86_64                                                                 8/12
  Verifying        : glibc-minimal-langpack-2.36-3.an23.x86_64                                                            9/12
  Verifying        : glibc-minimal-langpack-2.36-5.an23.x86_64                                                           10/12
  Verifying        : glibc-static-2.36-3.an23.x86_64                                                                     11/12
  Verifying        : glibc-static-2.36-5.an23.x86_64                                                                     12/12

Downgraded:
  glibc-2.36-3.an23.x86_64                  glibc-common-2.36-3.an23.x86_64                glibc-devel-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-static-2.36-3.an23.x86_64

Complete!
[root@qibo-anolis23-nightly-func-x86-1 proc]# yum info glibc
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:07:44 ago on Tue Mar 21 08:08:44 2023.
Installed Packages
Name         : glibc
Version      : 2.36
Release      : 3.an23
Architecture : x86_64
Size         : 6.5 M
Source       : glibc-2.36-3.an23.src.rpm
Repository   : @System
From repo    : BaseOS
Summary      : The GNU libc libraries
URL          : http://www.gnu.org/software/glibc/
License      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ and GPLv2+ with exceptions and BSD and Inner-Net and ISC and
             : Public Domain and GFDL
Description  : The glibc package contains standard libraries which are used by
             : multiple programs on the system. In order to save disk space and
             : memory, as well as to make upgrading easier, common system code is
             : kept in one place and shared between programs. This particular package
             : contains the most important sets of shared libraries: the standard C
             : library and the standard math library. Without these two libraries, a
             : Linux system will not function.

Available Packages
Name         : glibc
Version      : 2.36
Release      : 5.an23
Architecture : x86_64
Size         : 2.0 M
Source       : glibc-2.36-5.an23.src.rpm
Repository   : build
Summary      : The GNU libc libraries
URL          : http://www.gnu.org/software/glibc/
License      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ and GPLv2+ with exceptions and BSD and Inner-Net and ISC and
             : Public Domain and GFDL
Description  : The glibc package contains standard libraries which are used by
             : multiple programs on the system. In order to save disk space and
             : memory, as well as to make upgrading easier, common system code is
             : kept in one place and shared between programs. This particular package
             : contains the most important sets of shared libraries: the standard C
             : library and the standard math library. Without these two libraries, a
             : Linux system will not function.

[root@qibo-anolis23-nightly-func-x86-1 proc]# make clean
rm -f -r /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-001-lookup /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-002-posix-eq /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-003-kthread /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-loadavg-001 /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-pid-vm /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-map-files-001 /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-map-files-002 /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-syscall /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-wchan /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-uptime-001 /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-uptime-002 /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/read /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/self /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/setns-dcache /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/setns-sysvipc /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/thread-self /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-multiple-procfs /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-fsconfig-hidepid
[root@qibo-anolis23-nightly-func-x86-1 proc]# make
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    fd-001-lookup.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-001-lookup
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    fd-002-posix-eq.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-002-posix-eq
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    fd-003-kthread.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/fd-003-kthread
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-loadavg-001.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-loadavg-001
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-pid-vm.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-pid-vm
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-self-map-files-001.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-map-files-001
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-self-map-files-002.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-map-files-002
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-self-syscall.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-syscall
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-self-wchan.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-self-wchan
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-uptime-001.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-uptime-001
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-uptime-002.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-uptime-002
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    read.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/read
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    self.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/self
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    setns-dcache.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/setns-dcache
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    setns-sysvipc.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/setns-sysvipc
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    thread-self.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/thread-self
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-multiple-procfs.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-multiple-procfs
gcc -Wall -O2 -Wno-unused-function -D_GNU_SOURCE    proc-fsconfig-hidepid.c  -o /root/rpmbuild/BUILD/kernel-5.10.134-14_rc2.an23/linux-5.10.134-14_rc2.an23.x86_64/tools/testing/selftests/proc/proc-fsconfig-hidepid
[root@qibo-anolis23-nightly-func-x86-1 proc]# ll
total 2000
-rw-r--r--. 1 root root     747 Mar 21 11:00 Makefile
-rw-r--r--. 1 root root      17 Mar 16 19:23 config
-rwxr-xr-x. 1 root root   25920 Mar 21 11:16 fd-001-lookup
-rw-r--r--. 1 root root    3678 Mar 16 19:23 fd-001-lookup.c
-rwxr-xr-x. 1 root root   25232 Mar 21 11:16 fd-002-posix-eq
-rw-r--r--. 1 root root    1629 Mar 16 19:23 fd-002-posix-eq.c
-rwxr-xr-x. 1 root root   25960 Mar 21 11:16 fd-003-kthread
-rw-r--r--. 1 root root    3993 Mar 16 19:23 fd-003-kthread.c
-rw-r--r--. 1 root root 1433394 Mar 17 11:53 kernel-headers-5.10.134-14_rc2.an23.x86_64.rpm
-rwxr-xr-x. 1 root root   25248 Mar 21 11:16 proc-fsconfig-hidepid
-rw-r--r--. 1 root root    1591 Mar 16 19:23 proc-fsconfig-hidepid.c
-rwxr-xr-x. 1 root root   25336 Mar 21 11:16 proc-loadavg-001
-rw-r--r--. 1 root root    1962 Mar 16 19:23 proc-loadavg-001.c
-rwxr-xr-x. 1 root root   25320 Mar 21 11:16 proc-multiple-procfs
-rw-r--r--. 1 root root    1595 Mar 16 19:23 proc-multiple-procfs.c
-rwxr-xr-x. 1 root root   26712 Mar 21 11:16 proc-pid-vm
-rw-r--r--. 1 root root   10733 Mar 16 19:23 proc-pid-vm.c
-rwxr-xr-x. 1 root root   25376 Mar 21 11:16 proc-self-map-files-001
-rw-r--r--. 1 root root    2427 Mar 16 19:23 proc-self-map-files-001.c
-rwxr-xr-x. 1 root root   25472 Mar 21 11:16 proc-self-map-files-002
-rw-r--r--. 1 root root    2792 Mar 16 19:23 proc-self-map-files-002.c
-rwxr-xr-x. 1 root root   25296 Mar 21 11:16 proc-self-syscall
-rw-r--r--. 1 root root    1634 Mar 16 19:23 proc-self-syscall.c
-rwxr-xr-x. 1 root root   25136 Mar 21 11:16 proc-self-wchan
-rw-r--r--. 1 root root    1163 Mar 16 19:23 proc-self-wchan.c
-rwxr-xr-x. 1 root root   25456 Mar 21 11:16 proc-uptime-001
-rw-r--r--. 1 root root    1299 Mar 16 19:23 proc-uptime-001.c
-rwxr-xr-x. 1 root root   25656 Mar 21 11:16 proc-uptime-002
-rw-r--r--. 1 root root    2111 Mar 16 19:23 proc-uptime-002.c
-rw-r--r--. 1 root root    1700 Mar 16 19:23 proc-uptime.h
-rw-r--r--. 1 root root     846 Mar 16 19:23 proc.h
-rwxr-xr-x. 1 root root   26160 Mar 21 11:16 read
-rw-r--r--. 1 root root    3438 Mar 16 19:23 read.c
-rwxr-xr-x. 1 root root   25328 Mar 21 11:16 self
-rw-r--r--. 1 root root    1204 Mar 16 19:23 self.c
-rwxr-xr-x. 1 root root   25920 Mar 21 11:16 setns-dcache
-rw-r--r--. 1 root root    2612 Mar 16 19:23 setns-dcache.c
-rwxr-xr-x. 1 root root   25920 Mar 21 11:16 setns-sysvipc
-rw-r--r--. 1 root root    2954 Mar 16 19:23 setns-sysvipc.c
-rwxr-xr-x. 1 root root   25656 Mar 21 11:16 thread-self
-rw-r--r--. 1 root root    1740 Mar 16 19:23 thread-self.c
[root@qibo-anolis23-nightly-func-x86-1 proc]# ./proc-uptime-001
[root@qibo-anolis23-nightly-func-x86-1 proc]#