Description of problem: Anolis23 x86_64 ECS环境,社区nightly kernel-selftests测试futex下case:run.sh有多个futex相关fail问题 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1)rpm-i kernel-xxx.src.rpm 2) yum-builddep -y ~/rpmbuild/SPECS/kernel.spec 3) rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec 4) cd ~/rpmbuild/BUILD/kernel-5.10.xxx.an23/linux-5.10.xxx.an23.x86_64/ 5) cd tools/testing/selftests/futex;make;./run.sh Actual results: [root@qibo-anolis23-nightly-func-x86-1 futex]# ./run.sh TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed not ok 1 # error futex-requeue-pi # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations ok 1 futex-requeue-pi-mismatched-ops # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 TAP version 13 1..1 # futex_requeue_pi_signal_restart: Test signal handling during requeue_pi # Arguments: <none> ERROR: Operation not permitted: pthread_create ERROR: Unknown error -1: Creating waiting thread failednot ok 1 # error futex-requeue-pi-signal-restart # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 TAP version 13 1..1 # futex_wait_timeout: Block on a futex and wait for timeout # Arguments: timeout=100000ns ok 1 futex-wait-timeout # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 TAP version 13 1..1 # futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT ok 1 futex-wait-wouldblock # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 TAP version 13 1..1 # futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT ok 1 futex-wait-uninitialized-heap # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 TAP version 13 1..1 # futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT ok 1 futex-wait-private-mapped-file # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Expected results: case pass Additional info: [root@qibo-anolis23-nightly-func-x86-1 futex]# cat /etc/anolis-release Anolis OS release 23 [root@qibo-anolis23-nightly-func-x86-1 futex]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 7.6G 0 7.6G 0% /dev/shm tmpfs 3.1G 716K 3.1G 1% /run /dev/vda1 40G 13G 28G 33% / /dev/vdc1 98G 3.3G 90G 4% /tmp tmpfs 1.6G 0 1.6G 0% /run/user/0 [root@qibo-anolis23-nightly-func-x86-1 futex]# free -g total used free shared buff/cache available Mem: 15 0 12 0 1 14 Swap: 0 0 0 [root@qibo-anolis23-nightly-func-x86-1 futex]# 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 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_kn own_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsa ve avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enha nced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap a vx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves w bnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bital g 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 [root@qibo-anolis23-nightly-func-x86-1 futex]# cat /proc/cmdline BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-74.git.593b3005aa1a.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