Bug 8824 - [Anolis23.1 GA][Beta][ANCK-6.6.25-2][x86_64/aarch64] kernel-selftests测试filesystems/binderfs.binderfs_test执行失败
Summary: [Anolis23.1 GA][Beta][ANCK-6.6.25-2][x86_64/aarch64] kernel-selftests测试filesy...
Status: CLOSED WONTFIX
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: 6.6.25-2
Hardware: All Linux
: P2-High S2-major
Target Milestone: ---
Assignee: Jingbo Xu
QA Contact:
URL:
Whiteboard:
Keywords: Function
Depends on:
Blocks:
 
Reported: 2024-04-22 18:46 UTC by anolislw
Modified: 2024-05-20 17:58 UTC (History)
8 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 2024-04-22 18:46:51 UTC
缺陷描述]:
kernel-selftests测试filesystems/binderfs.binderfs_test执行失败.


[重现概率]:
必现

[重现步骤]
1. 下载kernel-6.6.25-2_rc1.an23.src.rpm
2. rpm -i kernel-6.6.25-2_rc1.an23.src.rpm
3. yum-builddep -y /root/rpmbuild/SPECS/kernel.spec   
   rpmbuild -bp /root/rpmbuild/SPECS/kernel.spec
   cd /root/rpmbuild/BUILD/kernel-6.6.25-2_rc1.an23/linux-6.6.25-2_rc1.an23.aarch64/tools/testing/selftests/filesystems/binderfs
4. make;./binderfs_test

[期望结果]:
用例执行PASS


[实际结果]:
[root@iZbp143ti4ccpaufkzata6Z binderfs]# ./binderfs_test
TAP version 13
1..3
# Starting 3 tests from 1 test cases.
#  RUN           global.binderfs_stress ...
# binderfs_test.c:415:binderfs_stress:Expected ret (-1) == 0 (0)
# binderfs_test.c:416:binderfs_stress:No such device - Failed to mount binderfs, check if CONFIG_ANDROID_BINDERFS is enabled in the running kernel
# binderfs_test.c:489:binderfs_stress:Expected ret (-1) == 0 (0)
# binderfs_test.c:490:binderfs_stress:wait_for_pid() failed
# binderfs_stress: Test terminated by assertion
#          FAIL  global.binderfs_stress
not ok 1 global.binderfs_stress
#  RUN           global.binderfs_test_privileged ...
# binderfs_test.c:79:binderfs_test_privileged:Expected ret (-1) == 0 (0)
#      SKIP      binderfs missing
#      SKIP      The Android binderfs filesystem is not available
#            OK  global.binderfs_test_privileged
ok 2 # SKIP The Android binderfs filesystem is not available
#  RUN           global.binderfs_test_unprivileged ...
# binderfs_test.c:79:binderfs_test_unprivileged:Expected ret (-1) == 0 (0)
#      SKIP      binderfs missing
#      SKIP      The Android binderfs filesystem is not available
#            OK  global.binderfs_test_unprivileged
ok 3 # SKIP The Android binderfs filesystem is not available
# FAILED: 2 / 3 tests passed.
# Totals: pass:0 fail:1 xfail:0 xpass:0 skip:2 error:0



[重现环境]:
环境信息:云上ecs

[root@iZbp143ti4ccpaufkzata6Z breakpoints]# uname -ra
Linux iZbp143ti4ccpaufkzata6Z 6.6.25-2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:02:38 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           6.1G  804K  6.1G   1% /run
efivarfs        256K   18K  239K   7% /sys/firmware/efi/efivars
/dev/nvme0n1p2   40G   13G   27G  33% /
tmpfs            16G  3.1M   16G   1% /tmp
/dev/nvme0n1p1  500M  6.5M  494M   2% /boot/efi
tmpfs           3.1G  4.0K  3.1G   1% /run/user/0
[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]# free -g
               total        used        free      shared  buff/cache   available
Mem:              30           0          28           0           1          29
Swap:              0           0           0
[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.25-2_rc1.an23.aarch64 root=UUID=6424d533-3c41-4ad9-89fa-1d3bf8c49fd3 ro rhgb crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0 cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 quiet selinux=1 console=tty0 biosdevname=0 net.ifnames=0 console=ttyAMA0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295
[root@iZbp143ti4ccpaufkzata6Z breakpoints]#
[root@iZbp143ti4ccpaufkzata6Z breakpoints]# lscpu
Architecture:             aarch64
  CPU op-mode(s):         32-bit, 64-bit
  Byte Order:             Little Endian
CPU(s):                   8
  On-line CPU(s) list:    0-7
Vendor ID:                ARM
  BIOS Vendor ID:         Alibaba Cloud
  Model name:             Neoverse-N2
    BIOS Model name:      virt-rhel7.6.0  CPU @ 2.0GHz
    BIOS CPU family:      1
    Model:                0
    Thread(s) per core:   1
    Core(s) per socket:   8
    Socket(s):            1
    Stepping:             r0p0
    BogoMIPS:             100.00
    Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm
                          3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesh
                          a3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
Caches (sum of all):
  L1d:                    512 KiB (8 instances)
  L1i:                    512 KiB (8 instances)
  L2:                     8 MiB (8 instances)
  L3:                     64 MiB (1 instance)
NUMA:
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-7
Vulnerabilities:
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:             Mitigation; __user pointer sanitization
  Spectre v2:             Mitigation; CSV2, BHB
  Srbds:                  Not affected
  Tsx async abort:        Not affected
Comment 1 feitian200603 alibaba_cloud_group 2024-04-28 18:02:48 UTC
系统目前不支持该文件系统,请确认是否符合版本要求
[root@iZbp1c9jzchxjqive233ugZ ~]# cat /boot/config-6.6.25-2_rc1.an23.x86_64 |grep BIND
CONFIG_VT_HW_CONSOLE_BINDING=y
# CONFIG_ANDROID_BINDER_IPC is not set
[root@iZbp1c9jzchxjqive233ugZ ~]# mkdir /dev/binderfs
[root@iZbp1c9jzchxjqive233ugZ ~]# mount -t binder binder /dev/binderfs/
mount: /dev/binderfs: unknown filesystem type 'binder'.
       dmesg(1) may have more information after failed mount system call.
Comment 2 Jingbo Xu alibaba_cloud_group 2024-04-30 16:02:59 UTC
(In reply to feitian200603 from comment #1)
> 系统目前不支持该文件系统,请确认是否符合版本要求
> [root@iZbp1c9jzchxjqive233ugZ ~]# cat /boot/config-6.6.25-2_rc1.an23.x86_64
> |grep BIND
> CONFIG_VT_HW_CONSOLE_BINDING=y
> # CONFIG_ANDROID_BINDER_IPC is not set
> [root@iZbp1c9jzchxjqive233ugZ ~]# mkdir /dev/binderfs
> [root@iZbp1c9jzchxjqive233ugZ ~]# mount -t binder binder /dev/binderfs/
> mount: /dev/binderfs: unknown filesystem type 'binder'.
>        dmesg(1) may have more information after failed mount system call.

这个之前和@子札 对齐过,对 binderfs 不作支持
Comment 3 Jingbo Xu alibaba_cloud_group 2024-05-06 15:38:47 UTC
和 @张菁 对齐,关闭 bugzilla
Comment 4 yunmeng365524 2024-05-20 17:58:48 UTC
开发确认不解决关闭,测试建立相关基线。