From patchwork Thu Apr 27 14:32:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Revest X-Patchwork-Id: 88290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp318306vqo; Thu, 27 Apr 2023 07:44:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rKP0Yc6v6QSGA71/tJGKkTI8dva3NcCiol/e5g2zt4n5kU0kROwoNSuSBEU1DAoPMFAqT X-Received: by 2002:a05:6a21:32a2:b0:f0:5d68:e977 with SMTP id yt34-20020a056a2132a200b000f05d68e977mr7374114pzb.9.1682606692058; Thu, 27 Apr 2023 07:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682606692; cv=none; d=google.com; s=arc-20160816; b=mFvPyB4PoAvUFOI/fdy/tBwNtAuJYjBlSQjhSGGj28toxGB4d/AjJ5Ux9RF0Yhdd4a D+k6XP+drDct1eyaQ4wMf8Sr5BIAcACjeFQbqkkfmrunL+/ZIfAdDPibw52+f9N1runu /2bcCBbTCg4Lb4yb6I/pTFqSYAvpj8GFTtwTB4g87IR9mrOcAqJgj2hdPO3yrPsQHxc1 k7wos/85xQLakmmvSjMnNAdBcJS4nhIYd4eqpQQdSlbceVBP1NwYhe2bXfHCuEdQ6F0U G8Y2HdUyBg3ruO2L1ux+bVrVc4VAI3uT4t3eniAq8vPCrmQedZedQ1fzk+iY2HEPPpP3 Fbfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NC7nq0EbIOtkjFyp1W7XN3emfgeyS+wIyNqgVyHKOuU=; b=bFBQLF79OafijM1HJ9CygFqr2rNR9n1ZJeBGpNXW84F1Q87GckdCvB5XYtsaJV3pHm ++M029aqn2dnFm2o2zt/N/mRwLas0I+VnO/9QEdOYivDGj8uGYw/+oiRMVhINsZRXt50 mY80O9NmAc70w9PwvldEAiAG3yQjYd4jmFiT/RPGQeVey90zcZtKorwGl8je4KjesagY HFaqBCVHGapOLL28xey4eALm9fxhRCz2lBZYc0dD2X6ggBw5KLfXKMryvUYT+C3Ld3J/ gWb/sEGKQUfjFziW5p2ffA3Z2rr2tJWO/bQcBoMsopdlad+9Nk9E6TgqMJ9bUoFqtQcB XHLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SeAz2TjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a63fd4c000000b004fd10490f3dsi19061894pgj.251.2023.04.27.07.44.32; Thu, 27 Apr 2023 07:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SeAz2TjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244069AbjD0Ocp (ORCPT + 99 others); Thu, 27 Apr 2023 10:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244097AbjD0Ocj (ORCPT ); Thu, 27 Apr 2023 10:32:39 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F438420F for ; Thu, 27 Apr 2023 07:32:14 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f09b4a1527so87764295e9.0 for ; Thu, 27 Apr 2023 07:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682605932; x=1685197932; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NC7nq0EbIOtkjFyp1W7XN3emfgeyS+wIyNqgVyHKOuU=; b=SeAz2TjPKuEo4D4KgtTb/qTkQK1pezteODWCgPPn1nz/+7aisQtWiBIUaVhuYhg/jt 9PcV106ADxzwNuJFqn6Wy/O9K7gheXVKn2Ek+XRhLFa5VDHPKUMoYqowG5EZBPsiK0Hl JGMFxaLMfQe926eIh0Farg2EQ1wcmvCXPx1Mk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682605932; x=1685197932; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NC7nq0EbIOtkjFyp1W7XN3emfgeyS+wIyNqgVyHKOuU=; b=enPVl+rgdNYcPpljOUzalsEGX3GC9+n7jE9FQ07kIrWn+SgkydOUUtqcbUwWFjqDb2 f1u7S8yPn2ogNVD9jrVxsRdC2PTUV8OpVY+O7l28dOTtmdzqY8a3Dsn6atDM862G3GdX FKjEC7Pkv+UJtVJHWtYgmoVf7RHn8tFMuTPqyPeduIoWweskZXEymI7boCR69nU/7w2J vr3+pyfpUNm6N9miKEZme40omNXYKI5zX/QqNHuhaOq3u0KeNAQEAwh4RaVSQ5Y3061v UJwQ1NPrE8xyzQDBz5y5b8EJJ+x52/QZazdab62n8bxEztq4XB/1pyiuGDMkdDYMhA6d HS7g== X-Gm-Message-State: AC+VfDw8pM1mCht30nNvDLZUYIeNY7UNXc03ZJCxQHrQUKvEYQ1l22wW o83/WU+lG5fyl/pdXh9PMAAU/A== X-Received: by 2002:adf:fe8b:0:b0:2f2:3dbf:6922 with SMTP id l11-20020adffe8b000000b002f23dbf6922mr1408147wrr.22.1682605932268; Thu, 27 Apr 2023 07:32:12 -0700 (PDT) Received: from revest.zrh.corp.google.com ([2a00:79e0:9d:6:a66d:4f2c:7ce5:e8ea]) by smtp.gmail.com with ESMTPSA id u6-20020adff886000000b002f28de9f73bsm18735484wrp.55.2023.04.27.07.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 07:32:11 -0700 (PDT) From: Florent Revest To: bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kpsingh@kernel.org, mykolal@fb.com, martin.lau@linux.dev, song@kernel.org, xukuohai@huaweicloud.com, mark.rutland@arm.com, Florent Revest Subject: [PATCH bpf-next] selftests/bpf: Update the aarch64 tests deny list Date: Thu, 27 Apr 2023 16:32:07 +0200 Message-ID: <20230427143207.635263-1-revest@chromium.org> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764340994732765801?= X-GMAIL-MSGID: =?utf-8?q?1764340994732765801?= Now that ftrace supports direct call on arm64, BPF tracing programs work on that architecture. This fixes the vast majority of BPF selftests except for: - multi_kprobe programs which require fprobe, not available on arm64 yet - tracing_struct which requires trampoline support to access struct args This patch updates the list of BPF selftests which are known to fail so the BPF CI can validate the tests which pass now. Signed-off-by: Florent Revest Acked-by: Stanislav Fomichev --- tools/testing/selftests/bpf/DENYLIST.aarch64 | 81 +------------------- 1 file changed, 4 insertions(+), 77 deletions(-) diff --git a/tools/testing/selftests/bpf/DENYLIST.aarch64 b/tools/testing/selftests/bpf/DENYLIST.aarch64 index 0a6837f97c32..4b6b18424140 100644 --- a/tools/testing/selftests/bpf/DENYLIST.aarch64 +++ b/tools/testing/selftests/bpf/DENYLIST.aarch64 @@ -1,33 +1,5 @@ -bloom_filter_map # libbpf: prog 'check_bloom': failed to attach: ERROR: strerror_r(-524)=22 -bpf_cookie/lsm -bpf_cookie/multi_kprobe_attach_api -bpf_cookie/multi_kprobe_link_api -bpf_cookie/trampoline -bpf_loop/check_callback_fn_stop # link unexpected error: -524 -bpf_loop/check_invalid_flags -bpf_loop/check_nested_calls -bpf_loop/check_non_constant_callback -bpf_loop/check_nr_loops -bpf_loop/check_null_callback_ctx -bpf_loop/check_stack -bpf_mod_race # bpf_mod_kfunc_race__attach unexpected error: -524 (errno 524) -bpf_tcp_ca/dctcp_fallback -btf_dump/btf_dump: var_data # find type id unexpected find type id: actual -2 < expected 0 -cgroup_hierarchical_stats # attach unexpected error: -524 (errno 524) -d_path/basic # setup attach failed: -524 -deny_namespace # attach unexpected error: -524 (errno 524) -fentry_fexit # fentry_attach unexpected error: -1 (errno 524) -fentry_test # fentry_attach unexpected error: -1 (errno 524) -fexit_sleep # fexit_attach fexit attach failed: -1 -fexit_stress # fexit attach unexpected fexit attach: actual -524 < expected 0 -fexit_test # fexit_attach unexpected error: -1 (errno 524) -get_func_args_test # get_func_args_test__attach unexpected error: -524 (errno 524) (trampoline) -get_func_ip_test # get_func_ip_test__attach unexpected error: -524 (errno 524) (trampoline) -htab_update/reenter_update -kfree_skb # attach fentry unexpected error: -524 (trampoline) -kfunc_call/subprog # extern (var ksym) 'bpf_prog_active': not found in kernel BTF -kfunc_call/subprog_lskel # skel unexpected error: -2 -kfunc_dynptr_param/dynptr_data_null # libbpf: prog 'dynptr_data_null': failed to attach: ERROR: strerror_r(-524)=22 +bpf_cookie/multi_kprobe_attach_api # kprobe_multi_link_api_subtest:FAIL:fentry_raw_skel_load unexpected error: -3 +bpf_cookie/multi_kprobe_link_api # kprobe_multi_link_api_subtest:FAIL:fentry_raw_skel_load unexpected error: -3 kprobe_multi_bench_attach # bpf_program__attach_kprobe_multi_opts unexpected error: -95 kprobe_multi_test/attach_api_addrs # bpf_program__attach_kprobe_multi_opts unexpected error: -95 kprobe_multi_test/attach_api_pattern # bpf_program__attach_kprobe_multi_opts unexpected error: -95 @@ -35,51 +7,6 @@ kprobe_multi_test/attach_api_syms # bpf_program__attach_kprobe_mu kprobe_multi_test/bench_attach # bpf_program__attach_kprobe_multi_opts unexpected error: -95 kprobe_multi_test/link_api_addrs # link_fd unexpected link_fd: actual -95 < expected 0 kprobe_multi_test/link_api_syms # link_fd unexpected link_fd: actual -95 < expected 0 -kprobe_multi_test/skel_api # kprobe_multi__attach unexpected error: -524 (errno 524) -ksyms_module/libbpf # 'bpf_testmod_ksym_percpu': not found in kernel BTF -ksyms_module/lskel # test_ksyms_module_lskel__open_and_load unexpected error: -2 -libbpf_get_fd_by_id_opts # test_libbpf_get_fd_by_id_opts__attach unexpected error: -524 (errno 524) -linked_list -lookup_key # test_lookup_key__attach unexpected error: -524 (errno 524) -lru_bug # lru_bug__attach unexpected error: -524 (errno 524) -modify_return # modify_return__attach failed unexpected error: -524 (errno 524) -module_attach # skel_attach skeleton attach failed: -524 -module_fentry_shadow # bpf_link_create unexpected bpf_link_create: actual -524 < expected 0 -mptcp/base # run_test mptcp unexpected error: -524 (errno 524) -netcnt # packets unexpected packets: actual 10001 != expected 10000 -rcu_read_lock # failed to attach: ERROR: strerror_r(-524)=22 -recursion # skel_attach unexpected error: -524 (errno 524) -ringbuf # skel_attach skeleton attachment failed: -1 -setget_sockopt # attach_cgroup unexpected error: -524 -sk_storage_tracing # test_sk_storage_tracing__attach unexpected error: -524 (errno 524) -skc_to_unix_sock # could not attach BPF object unexpected error: -524 (errno 524) -socket_cookie # prog_attach unexpected error: -524 -stacktrace_build_id # compare_stack_ips stackmap vs. stack_amap err -1 errno 2 -task_local_storage/exit_creds # skel_attach unexpected error: -524 (errno 524) -task_local_storage/recursion # skel_attach unexpected error: -524 (errno 524) -test_bprm_opts # attach attach failed: -524 -test_ima # attach attach failed: -524 -test_local_storage # attach lsm attach failed: -524 -test_lsm # test_lsm_first_attach unexpected error: -524 (errno 524) -test_overhead # attach_fentry unexpected error: -524 -timer # timer unexpected error: -524 (errno 524) -timer_crash # timer_crash__attach unexpected error: -524 (errno 524) -timer_mim # timer_mim unexpected error: -524 (errno 524) -trace_printk # trace_printk__attach unexpected error: -1 (errno 524) -trace_vprintk # trace_vprintk__attach unexpected error: -1 (errno 524) +kprobe_multi_test/skel_api # libbpf: failed to load BPF skeleton 'kprobe_multi': -3 +module_attach # prog 'kprobe_multi': failed to auto-attach: -95 tracing_struct # tracing_struct__attach unexpected error: -524 (errno 524) -trampoline_count # attach_prog unexpected error: -524 -unpriv_bpf_disabled # skel_attach unexpected error: -524 (errno 524) -user_ringbuf/test_user_ringbuf_post_misaligned # misaligned_skel unexpected error: -524 (errno 524) -user_ringbuf/test_user_ringbuf_post_producer_wrong_offset -user_ringbuf/test_user_ringbuf_post_larger_than_ringbuf_sz -user_ringbuf/test_user_ringbuf_basic # ringbuf_basic_skel unexpected error: -524 (errno 524) -user_ringbuf/test_user_ringbuf_sample_full_ring_buffer -user_ringbuf/test_user_ringbuf_post_alignment_autoadjust -user_ringbuf/test_user_ringbuf_overfill -user_ringbuf/test_user_ringbuf_discards_properly_ignored -user_ringbuf/test_user_ringbuf_loop -user_ringbuf/test_user_ringbuf_msg_protocol -user_ringbuf/test_user_ringbuf_blocking_reserve -verify_pkcs7_sig # test_verify_pkcs7_sig__attach unexpected error: -524 (errno 524) -vmlinux # skel_attach skeleton attach failed: -524