[缺陷描述]: kernel-selftests测试,case:net/tls有102个fail项。 [重现概率]: 必现 [重现步骤] 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/net 4. make;./tls [期望结果]: 用例执行PASS [实际结果]: [root@iZbp143ti4ccpaufkzata6Z net]# ./tls ...... ...... # OK tls_err.13_aes_gcm.bad_cmsg ok 682 tls_err.13_aes_gcm.bad_cmsg # RUN tls_err.13_aes_gcm.timeo ... # OK tls_err.13_aes_gcm.timeo ok 683 tls_err.13_aes_gcm.timeo # RUN tls_err.13_aes_gcm.poll_partial_rec ... # OK tls_err.13_aes_gcm.poll_partial_rec ok 684 tls_err.13_aes_gcm.poll_partial_rec # RUN tls_err.13_aes_gcm.epoll_partial_rec ... # OK tls_err.13_aes_gcm.epoll_partial_rec ok 685 tls_err.13_aes_gcm.epoll_partial_rec # RUN tls_err.13_aes_gcm.poll_partial_rec_async ... # OK tls_err.13_aes_gcm.poll_partial_rec_async ok 686 tls_err.13_aes_gcm.poll_partial_rec_async # FAILED: 584 / 686 tests passed. # Totals: pass:584 fail:102 xfail:0 xpass:0 skip:0 error:0 ========== 失败的102个测试项 =============== [root@iZbp143ti4ccpaufkzata6Z net]# cat net-tls.log | grep "not" not ok 569 tls.12_aria_gcm.sendfile not ok 570 tls.12_aria_gcm.send_then_sendfile not ok 571 tls.12_aria_gcm.multi_chunk_sendfile not ok 572 tls.12_aria_gcm.recv_max not ok 573 tls.12_aria_gcm.recv_small not ok 574 tls.12_aria_gcm.msg_more not ok 575 tls.12_aria_gcm.msg_more_unsent not ok 576 tls.12_aria_gcm.msg_eor not ok 577 tls.12_aria_gcm.sendmsg_single not ok 578 tls.12_aria_gcm.sendmsg_fragmented not ok 579 tls.12_aria_gcm.sendmsg_large not ok 580 tls.12_aria_gcm.sendmsg_multiple not ok 581 tls.12_aria_gcm.sendmsg_multiple_stress not ok 582 tls.12_aria_gcm.splice_from_pipe not ok 583 tls.12_aria_gcm.splice_from_pipe2 not ok 584 tls.12_aria_gcm.send_and_splice not ok 585 tls.12_aria_gcm.splice_to_pipe not ok 586 tls.12_aria_gcm.splice_cmsg_to_pipe not ok 587 tls.12_aria_gcm.splice_dec_cmsg_to_pipe not ok 588 tls.12_aria_gcm.recv_and_splice not ok 589 tls.12_aria_gcm.peek_and_splice not ok 590 tls.12_aria_gcm.recvmsg_single not ok 591 tls.12_aria_gcm.recvmsg_single_max not ok 592 tls.12_aria_gcm.recvmsg_multiple not ok 593 tls.12_aria_gcm.single_send_multiple_recv not ok 594 tls.12_aria_gcm.multiple_send_single_recv not ok 595 tls.12_aria_gcm.single_send_multiple_recv_non_align not ok 596 tls.12_aria_gcm.recv_partial not ok 597 tls.12_aria_gcm.recv_nonblock not ok 598 tls.12_aria_gcm.recv_peek not ok 599 tls.12_aria_gcm.recv_peek_multiple not ok 600 tls.12_aria_gcm.recv_peek_multiple_records not ok 601 tls.12_aria_gcm.recv_peek_large_buf_mult_recs not ok 602 tls.12_aria_gcm.recv_lowat not ok 603 tls.12_aria_gcm.bidir not ok 604 tls.12_aria_gcm.pollin not ok 605 tls.12_aria_gcm.poll_wait not ok 606 tls.12_aria_gcm.poll_wait_split not ok 607 tls.12_aria_gcm.blocking not ok 608 tls.12_aria_gcm.nonblocking not ok 609 tls.12_aria_gcm.mutliproc_even not ok 610 tls.12_aria_gcm.mutliproc_readers not ok 611 tls.12_aria_gcm.mutliproc_writers not ok 612 tls.12_aria_gcm.mutliproc_sendpage_even not ok 613 tls.12_aria_gcm.mutliproc_sendpage_readers not ok 614 tls.12_aria_gcm.mutliproc_sendpage_writers not ok 615 tls.12_aria_gcm.control_msg not ok 616 tls.12_aria_gcm.shutdown not ok 617 tls.12_aria_gcm.shutdown_unsent not ok 618 tls.12_aria_gcm.shutdown_reuse not ok 619 tls.12_aria_gcm.getsockopt not ok 620 tls.12_aria_gcm_256.sendfile not ok 621 tls.12_aria_gcm_256.send_then_sendfile not ok 622 tls.12_aria_gcm_256.multi_chunk_sendfile not ok 623 tls.12_aria_gcm_256.recv_max not ok 624 tls.12_aria_gcm_256.recv_small not ok 625 tls.12_aria_gcm_256.msg_more not ok 626 tls.12_aria_gcm_256.msg_more_unsent not ok 627 tls.12_aria_gcm_256.msg_eor not ok 628 tls.12_aria_gcm_256.sendmsg_single not ok 629 tls.12_aria_gcm_256.sendmsg_fragmented not ok 630 tls.12_aria_gcm_256.sendmsg_large not ok 631 tls.12_aria_gcm_256.sendmsg_multiple not ok 632 tls.12_aria_gcm_256.sendmsg_multiple_stress not ok 633 tls.12_aria_gcm_256.splice_from_pipe not ok 634 tls.12_aria_gcm_256.splice_from_pipe2 not ok 635 tls.12_aria_gcm_256.send_and_splice not ok 636 tls.12_aria_gcm_256.splice_to_pipe not ok 637 tls.12_aria_gcm_256.splice_cmsg_to_pipe not ok 638 tls.12_aria_gcm_256.splice_dec_cmsg_to_pipe not ok 639 tls.12_aria_gcm_256.recv_and_splice not ok 640 tls.12_aria_gcm_256.peek_and_splice not ok 641 tls.12_aria_gcm_256.recvmsg_single not ok 642 tls.12_aria_gcm_256.recvmsg_single_max not ok 643 tls.12_aria_gcm_256.recvmsg_multiple not ok 644 tls.12_aria_gcm_256.single_send_multiple_recv not ok 645 tls.12_aria_gcm_256.multiple_send_single_recv not ok 646 tls.12_aria_gcm_256.single_send_multiple_recv_non_align not ok 647 tls.12_aria_gcm_256.recv_partial not ok 648 tls.12_aria_gcm_256.recv_nonblock not ok 649 tls.12_aria_gcm_256.recv_peek not ok 650 tls.12_aria_gcm_256.recv_peek_multiple not ok 651 tls.12_aria_gcm_256.recv_peek_multiple_records not ok 652 tls.12_aria_gcm_256.recv_peek_large_buf_mult_recs not ok 653 tls.12_aria_gcm_256.recv_lowat not ok 654 tls.12_aria_gcm_256.bidir not ok 655 tls.12_aria_gcm_256.pollin not ok 656 tls.12_aria_gcm_256.poll_wait not ok 657 tls.12_aria_gcm_256.poll_wait_split not ok 658 tls.12_aria_gcm_256.blocking not ok 659 tls.12_aria_gcm_256.nonblocking not ok 660 tls.12_aria_gcm_256.mutliproc_even not ok 661 tls.12_aria_gcm_256.mutliproc_readers not ok 662 tls.12_aria_gcm_256.mutliproc_writers not ok 663 tls.12_aria_gcm_256.mutliproc_sendpage_even not ok 664 tls.12_aria_gcm_256.mutliproc_sendpage_readers not ok 665 tls.12_aria_gcm_256.mutliproc_sendpage_writers not ok 666 tls.12_aria_gcm_256.control_msg not ok 667 tls.12_aria_gcm_256.shutdown not ok 668 tls.12_aria_gcm_256.shutdown_unsent not ok 669 tls.12_aria_gcm_256.shutdown_reuse not ok 670 tls.12_aria_gcm_256.getsockopt [重现环境]: 环境信息:云上ecs [root@iZbp143ti4ccpaufkzata6Z breakpoints]# uname -a 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
[root@iZbp143ti4ccpaufkzata6Z net]# grep CONFIG_CRYPTO_ARIA /boot/config-6.6.25-2_rc1.an23.aarch64 # CONFIG_CRYPTO_ARIA is not set aria算法没开启,请研发确认是否要开启; 另外应该要优化脚本,判断如果config没开启的话,相应算法的case应该SKIP 相应的path如下: https://lore.kernel.org/netdev/cover.1692977948.git.sd@queasysnail.net/T/
KTLS失败是因为ARIA算法默认没有编译,不是TLS的问题; 另外,ARIA是韩国的算法,不需要开启; 这个问题可以忽略
该cofnig确认暂不开启,测试建立对应基线。
ANCK6.6.71-3 rc1,倚天机器,kernel-selftests中net.tls用例也有同样的失败,在此做个纪录 #uname -r 6.6.71-3_rc1.al8.aarch64