Bug 22298 - [Anolis23][x86_64][社区nightly][6.6.88] ltp测试套syscalls/setsockopt10报setsockopt10.c:150: TBROK: connect(3, sock_ntop: unknown AF_xxx: 0, len: 16, 16) failed: EOPNOTSUPP (95)
Summary: [Anolis23][x86_64][社区nightly][6.6.88] ltp测试套syscalls/setsockopt10报setsockopt1...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuming
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-03 14:26 UTC by gaohongmei
Modified: 2025-07-03 14:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaohongmei 2025-07-03 14:26:08 UTC
Description of problem:
anolis23 x86 6.6.88环境,ltp测试套syscalls/setsockopt10报setsockopt10.c:150: TBROK: connect(3, sock_ntop: unknown AF_xxx: 0, len: 16, 16) failed: EOPNOTSUPP (95)

Version-Release number of selected component (if applicable):
# uname -r
6.6.88-cbp.git.8c112c479.an23.x86_64

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

How reproducible:

# cd ltp
# ./runltp  -f syscalls -s setsockopt10
Running tests.......
<<<test_start>>>
tag=setsockopt10 stime=1751523661
cmdline="setsockopt10"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_taint.c:116: TCONF: Ignoring already set kernel warning taint
tst_test.c:1741: TINFO: LTP version: 20220527-1548-g3a89553af
tst_test.c:1625: TINFO: Timeout per run is 0h 00m 30s
setsockopt10.c:100: TINFO: child: Listen for tcp1 connection
setsockopt10.c:137: TINFO: parent: Connect for tcp0 connection
setsockopt10.c:149: TINFO: parent: Disconnect by setting unspec address
setsockopt10.c:150: TBROK: connect(3, sock_ntop: unknown AF_xxx: 0, len: 16, 16) failed: EOPNOTSUPP (95)
tst_test.c:1673: TINFO: Killed the leftover descendant processes

HINT: You _MAY_ be missing kernel fixes:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c02d41d71f90

HINT: You _MAY_ be vulnerable to CVE(s):

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0461

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

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

            Done executing testcases.
            LTP Version:  20220527-1548-g3a89553af
       ###############################################################

Actual results:
fail

Expected results:
pass

Additional info:
# free -m
               total        used        free      shared  buff/cache   available
Mem:           15589        1053       13337          71        1197       14134
Swap:              0           0           0

# 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 aperfmperf tsc_known_freq pni pclmulqdq monito
                          r ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowpr
                          efetch cpuid_fault ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed ad
                          x smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves wbnoinvd arat
                           avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm ar
                          ch_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:          
  Gather data sampling:   Unknown: Dependent on hypervisor status
  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
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Vulnerable
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Enhanced / Automatic IBRS; RSB filling; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop
  Srbds:                  Not affected
  Tsx async abort:        Not affected
Comment 1 gaohongmei 2025-07-03 14:32:23 UTC
anolis23 x86 6.6.88环境,ltp测试套cve/cve-2023-0461报setsockopt10.c:150: TBROK: connect(3, sock_ntop: unknown AF_xxx: 0, len: 16, 16) failed: EOPNOTSUPP (95)

# ./runltp  -f cve -s cve-2023-0461
Running tests.......
<<<test_start>>>
tag=cve-2023-0461 stime=1751524098
cmdline="setsockopt10"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_taint.c:116: TCONF: Ignoring already set kernel warning taint
tst_test.c:1741: TINFO: LTP version: 20220527-1548-g3a89553af
tst_test.c:1625: TINFO: Timeout per run is 0h 00m 30s
setsockopt10.c:100: TINFO: child: Listen for tcp1 connection
setsockopt10.c:137: TINFO: parent: Connect for tcp0 connection
setsockopt10.c:149: TINFO: parent: Disconnect by setting unspec address
setsockopt10.c:150: TBROK: connect(3, sock_ntop: unknown AF_xxx: 0, len: 16, 16) failed: EOPNOTSUPP (95)
tst_test.c:1673: TINFO: Killed the leftover descendant processes

HINT: You _MAY_ be missing kernel fixes:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c02d41d71f90

HINT: You _MAY_ be vulnerable to CVE(s):

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0461

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

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

            Done executing testcases.
            LTP Version:  20220527-1548-g3a89553af
       ###############################################################