From patchwork Sun Nov 22 02:22:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Matei X-Patchwork-Id: 11923733 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB609C388F9 for ; Sun, 22 Nov 2020 02:22:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8503F207D3 for ; Sun, 22 Nov 2020 02:22:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uQD+m9rR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726662AbgKVCWi (ORCPT ); Sat, 21 Nov 2020 21:22:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbgKVCWg (ORCPT ); Sat, 21 Nov 2020 21:22:36 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6549FC0613CF for ; Sat, 21 Nov 2020 18:22:36 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id q22so12972228qkq.6 for ; Sat, 21 Nov 2020 18:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8sN61+5YVYZAGnYkDvdsKJNgaYzMcuDpuLXuHjAq8FA=; b=uQD+m9rRblaCDd4iZB+8mVk9/5tPErRpIlyUu3YBrPHRcRe34rcC8cPVGNWSz6ZW+z typs/M9O94qkhIwqktm3C++hFl069ghgLB/gzCIvPWhwQ3F1Q6MakRlRruy/EIRefJhP 7rnH195fSsDreOf8bRC6wM2Pj7azlpq+nUVegoTlIQbObQpKWlrBwH3JFYhjvOXEFMnR DcktZHFbfI9XUYL73XC4wn4z0WuMciva8EtHqiU4Ln3drSpel8gTAO/8JiE8yF7P799M cxeVI89TAGv4lQdsAbti1+03nedv0tlnbCWvHJWRN5SvE879HuU41wEEiFcvuoE0j3Ib H5bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8sN61+5YVYZAGnYkDvdsKJNgaYzMcuDpuLXuHjAq8FA=; b=LJgW1Ig9IR2hYMcVdqtJMPLDZC7nbho6YKbTLtNf31QGx2sN9co96AsnQXvoHOsavF EdPxdZqavFOztr6hfwSlCY/kDfuFVt377ZVVhk2tc48JIQEvBOTSt6xsUTXpV+ZWjOCz uYEB1LwY25JjAOtKP5z/lV5VZf0S5t8upDSxvJoMEr0vTfXMm4uAYeRKqQ9RHQYP/NM/ JcAg1ntk1uHodoi40ExGJTojGIkQivY3FwcXrap1GvTKqpeLh5GNsCcnC4r7F2tHHvAP znozJdE7DUP1g1x6KtTb1jVAeyJZf91jQSKcSoF0FeUU0+iz8k7HgHNd7iulCZsovnlK lshQ== X-Gm-Message-State: AOAM530bZK9BM5PoASTjiZp9N6V6w+w/ZaQR2IWCAbqrnsLhd2KvVEcd 25QOuJDXsNpsoO+k5hTqlS/Bvo5HzDuXJg== X-Google-Smtp-Source: ABdhPJzypDo6muQBjxCkz/HdgOh71zFzrj2jlw662IffNyq3qQlfZ4ZgF9pqlxOCANCG/yeAMqslyg== X-Received: by 2002:a05:620a:a90:: with SMTP id v16mr23238259qkg.479.1606011755224; Sat, 21 Nov 2020 18:22:35 -0800 (PST) Received: from localhost (pool-96-239-57-246.nycmny.fios.verizon.net. [96.239.57.246]) by smtp.gmail.com with ESMTPSA id r125sm5317373qke.129.2020.11.21.18.22.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Nov 2020 18:22:34 -0800 (PST) From: Andrei Matei To: bpf@vger.kernel.org Cc: Andrei Matei Subject: [PATCH bpf-next 1/2] selftest/bpf: fix link in readme Date: Sat, 21 Nov 2020 21:22:04 -0500 Message-Id: <20201122022205.57229-1-andreimatei1@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net The link was bad because of invalid rst; it was pointing to itself and was rendering badly. Signed-off-by: Andrei Matei Acked-by: Yonghong Song --- tools/testing/selftests/bpf/README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst index ac9eda830187..3b8d8885892d 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -2,7 +2,10 @@ BPF Selftest Notes ================== General instructions on running selftests can be found in -`Documentation/bpf/bpf_devel_QA.rst`_. +`Documentation/bpf/bpf_devel_QA.rst`__. + +__ /Documentation/bpf/bpf_devel_QA.rst#q-how-to-run-bpf-selftests + Additional information about selftest failures are documented here. From patchwork Sun Nov 22 02:22:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Matei X-Patchwork-Id: 11923735 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7C21C63697 for ; Sun, 22 Nov 2020 02:22:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A8E54207F7 for ; Sun, 22 Nov 2020 02:22:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gtvbwX8F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbgKVCWp (ORCPT ); Sat, 21 Nov 2020 21:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbgKVCWp (ORCPT ); Sat, 21 Nov 2020 21:22:45 -0500 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD354C0613CF for ; Sat, 21 Nov 2020 18:22:44 -0800 (PST) Received: by mail-qt1-x842.google.com with SMTP id e10so2787563qte.4 for ; Sat, 21 Nov 2020 18:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3sOOhQuJTCs7M9k//3ZDXBQCl6X/YpKX3+cMRPKXlIU=; b=gtvbwX8FROQQXxtQ55EAJGhKHnC0M3I036JykWK0ATmdusaGPm9tMsalKt57iWuj5k 6R9jPlxE8Y+AUsqiWr3QeBeSwWZkwk2894fbzL4UnWMmIBs8+MHZbYqMplhQgFG9+tse wiUm5iCoUr/XDKu8VvWE20qLY+zcQNjFfRF9XVaObLCaqu11nha4rH0MgNyEhYFaUTet iQ9jY1ngi3OUVxhz22wlj8KumIXDXAs/a7o3A50g4G46J8IeRi08qoE3JoK/FTztXilU 1960OsMEg76O/0YE/UTm61fY5IueNEMWuouvXWwEsMlePbIYZAWC2qbqIi6yBS7eunGr boyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3sOOhQuJTCs7M9k//3ZDXBQCl6X/YpKX3+cMRPKXlIU=; b=TniMA/+lUblv43mwavVqpTHbayR3muRomSfEIU1CXtD9g3qTSA8jE9btDdKtTuZTQJ O0Z5QG4DKGC7nMG9EoX3YcfvwE9PKlKWlHxrFUyUCKAy5qkbCFyOD92TgWr+s/Ty5YWe WymWrSgSwIXqyQ42ikM8wO4n+wdLCW57m/0wSwaZV3BJ5rCIRcADicOouIhBBh3nj6+l JZub85uqAgrFhmDEZmlhfLY39fx56gQJfk3FJeucztCQ6qcJ45oGJs03WjQdIZeeP4w4 vv5rF1xPGT4Ufp5K4hCApQzDp9b7ctZhUazbyB9uJ3f+5wH9wDU8i0kWB75KLSC9R2ry Fj+A== X-Gm-Message-State: AOAM530BzGSpBvbO5eArzxKl1+e3ykDY8kIgL7tmBucg0fnU1018zNOr VWlYG32Rb5TPW8UVVIN7OOfspeij9S+bEA== X-Google-Smtp-Source: ABdhPJzqrjAV5C9p8s80JdZfWO2g45QosFvIoI5WPQ65I1IpxkiU6cYA9Vufvz5AtsCVJF3rKmb82Q== X-Received: by 2002:a05:622a:1:: with SMTP id x1mr22479761qtw.229.1606011763696; Sat, 21 Nov 2020 18:22:43 -0800 (PST) Received: from localhost (pool-96-239-57-246.nycmny.fios.verizon.net. [96.239.57.246]) by smtp.gmail.com with ESMTPSA id r89sm5443234qtd.16.2020.11.21.18.22.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Nov 2020 18:22:43 -0800 (PST) From: Andrei Matei To: bpf@vger.kernel.org Cc: Andrei Matei Subject: [PATCH bpf-next 2/2] selftest/bpf: fix rst formatting in readme Date: Sat, 21 Nov 2020 21:22:05 -0500 Message-Id: <20201122022205.57229-2-andreimatei1@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201122022205.57229-1-andreimatei1@gmail.com> References: <20201122022205.57229-1-andreimatei1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net A couple of places in the readme had invalid rst formatting causing the rendering to be off. This patch fixes them with minimal edits. Signed-off-by: Andrei Matei Acked-by: Yonghong Song --- tools/testing/selftests/bpf/README.rst | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst index 3b8d8885892d..ca064180d4d0 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -33,11 +33,12 @@ The verifier will reject such code with above error. At insn 18 the r7 is indeed unbounded. The later insn 19 checks the bounds and the insn 20 undoes map_value addition. It is currently impossible for the verifier to understand such speculative pointer arithmetic. -Hence - https://reviews.llvm.org/D85570 -addresses it on the compiler side. It was committed on llvm 12. +Hence `this patch`__ addresses it on the compiler side. It was committed on llvm 12. + +__ https://reviews.llvm.org/D85570 The corresponding C code + .. code-block:: c for (int i = 0; i < MAX_CGROUPS_PATH_DEPTH; i++) { @@ -80,10 +81,11 @@ The symptom for ``bpf_iter/netlink`` looks like 17: (7b) *(u64 *)(r7 +0) = r2 only read is supported -This is due to a llvm BPF backend bug. The fix - https://reviews.llvm.org/D78466 +This is due to a llvm BPF backend bug. `The fix`__ has been pushed to llvm 10.x release branch and will be -available in 10.0.1. The fix is available in llvm 11.0.0 trunk. +available in 10.0.1. The patch is available in llvm 11.0.0 trunk. + +__ https://reviews.llvm.org/D78466 BPF CO-RE-based tests and Clang version ======================================= @@ -97,11 +99,11 @@ them to Clang/LLVM. These sub-tests are going to be skipped if Clang is too old to support them, they shouldn't cause build failures or runtime test failures: - - __builtin_btf_type_id() ([0], [1], [2]); - - __builtin_preserve_type_info(), __builtin_preserve_enum_value() ([3], [4]). +- __builtin_btf_type_id() [0_, 1_, 2_]; +- __builtin_preserve_type_info(), __builtin_preserve_enum_value() [3_, 4_]. - [0] https://reviews.llvm.org/D74572 - [1] https://reviews.llvm.org/D74668 - [2] https://reviews.llvm.org/D85174 - [3] https://reviews.llvm.org/D83878 - [4] https://reviews.llvm.org/D83242 +.. _0: https://reviews.llvm.org/D74572 +.. _1: https://reviews.llvm.org/D74668 +.. _2: https://reviews.llvm.org/D85174 +.. _3: https://reviews.llvm.org/D83878 +.. _4: https://reviews.llvm.org/D83242