selftest sock_fields failed on s390x with latest llvm17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Ilya,

BPF CI ([1]) detected a s390x failure when bpf program is compiled with latest llvm17 on bpf-next branch. To reproduce the issue, just run normal './test_progs -j'. The failure log looks like below:

Notice: Success: 341/3015, Skipped: 29, Failed: 1
Error: #191 sock_fields
  Error: #191 sock_fields
  create_netns:PASS:create netns 0 nsec
  create_netns:PASS:bring up lo 0 nsec
  serial_test_sock_fields:PASS:test_sock_fields__open_and_load 0 nsec
serial_test_sock_fields:PASS:attach_cgroup(egress_read_sock_fields) 0 nsec serial_test_sock_fields:PASS:attach_cgroup(ingress_read_sock_fields) 0 nsec
  serial_test_sock_fields:PASS:attach_cgroup(read_sk_dst_port 0 nsec
  test:PASS:getsockname(listen_fd) 0 nsec
  test:PASS:getsockname(cli_fd) 0 nsec
  test:PASS:accept(listen_fd) 0 nsec
  init_sk_storage:PASS:bpf_map_update_elem(sk_pkt_out_cnt_fd) 0 nsec
  init_sk_storage:PASS:bpf_map_update_elem(sk_pkt_out_cnt10_fd) 0 nsec
  test:PASS:send(accept_fd) 0 nsec
  test:PASS:recv(cli_fd) 0 nsec
  test:PASS:send(accept_fd) 0 nsec
  test:PASS:recv(cli_fd) 0 nsec
  test:PASS:recv(accept_fd) for fin 0 nsec
  test:PASS:recv(cli_fd) for fin 0 nsec
check_sk_pkt_out_cnt:PASS:bpf_map_lookup_elem(sk_pkt_out_cnt, &accept_fd) 0 nsec check_sk_pkt_out_cnt:PASS:bpf_map_lookup_elem(sk_pkt_out_cnt, &cli_fd) 0 nsec
  check_result:PASS:bpf_map_lookup_elem(linum_map_fd) 0 nsec
  check_result:PASS:bpf_map_lookup_elem(linum_map_fd) 0 nsec
check_result:PASS:bpf_map_lookup_elem(linum_map_fd, READ_SK_DST_PORT_IDX) 0 nsec check_result:FAIL:failure in read_sk_dst_port on line unexpected failure in read_sk_dst_port on line: actual 297 != expected 0 listen_sk: state:10 bound_dev_if:0 family:10 type:1 protocol:6 mark:0 priority:0 src_ip4:7f000006(127.0.0.6) src_ip6:0:0:0:1(::1) src_port:51966 dst_ip4:0(0.0.0.0) dst_ip6:0:0:0:0(::) dst_port:0 srv_sk: state:9 bound_dev_if:0 family:10 type:1 protocol:6 mark:0 priority:0 src_ip4:7f000006(127.0.0.6) src_ip6:0:0:0:1(::1) src_port:51966 dst_ip4:7f000006(127.0.0.6) dst_ip6:0:0:0:1(::1) dst_port:38030 cli_sk: state:5 bound_dev_if:0 family:10 type:1 protocol:6 mark:0 priority:0 src_ip4:7f000006(127.0.0.6) src_ip6:0:0:0:1(::1) src_port:38030 dst_ip4:0(0.0.0.0) dst_ip6:0:0:0:1(::1) dst_port:51966 listen_tp: snd_cwnd:10 srtt_us:0 rtt_min:4294967295 snd_ssthresh:2147483647 rcv_nxt:0 snd_nxt:0 snd:una:0 mss_cache:536 ecn_flags:0 rate_delivered:0 rate_interval_us:0 packets_out:0 retrans_out:0 total_retrans:0 segs_in:0 data_segs_in:0 segs_out:0 data_segs_out:0 lost_out:0 sacked_out:0 bytes_received:0 bytes_acked:0 srv_tp: snd_cwnd:10 srtt_us:3904 rtt_min:272 snd_ssthresh:2147483647 rcv_nxt:648617715 snd_nxt:4218065810 snd:una:4218065810 mss_cache:32768 ecn_flags:0 rate_delivered:1 rate_interval_us:272 packets_out:0 retrans_out:0 total_retrans:0 segs_in:5 data_segs_in:0 segs_out:3 data_segs_out:2 lost_out:0 sacked_out:0 bytes_received:1 bytes_acked:22 cli_tp: snd_cwnd:10 srtt_us:6035 rtt_min:730 snd_ssthresh:2147483647 rcv_nxt:4218065811 snd_nxt:648617715 snd:una:648617715 mss_cache:32768 ecn_flags:0 rate_delivered:1 rate_interval_us:925 packets_out:0 retrans_out:0 total_retrans:0 segs_in:4 data_segs_in:2 segs_out:6 data_segs_out:0 lost_out:0 sacked_out:0 bytes_received:23 bytes_acked:2
  check_result:PASS:listen_sk 0 nsec
  check_result:PASS:srv_sk 0 nsec
  check_result:PASS:srv_tp 0 nsec

If bpf program is compiled with llvm16, the test passed according to
a CI run.

I don't have s390x environment to debug this. Could you help debug it?

Thanks!

[1] https://github.com/kernel-patches/vmtest/actions/runs/4866851496/jobs/8679080985?pr=224#step:6:7645



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux