Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1508651rwr; Wed, 26 Apr 2023 16:39:54 -0700 (PDT) X-Google-Smtp-Source: AKy350a76UdWWFRqFtKtnGDqTmnTkbSY3FDp3EEqPra9v1+ja2cTBoWkG2BHFal61jrhlknFjrSQ X-Received: by 2002:a05:6a20:ab98:b0:f0:cef6:9d2e with SMTP id da24-20020a056a20ab9800b000f0cef69d2emr24141745pzb.28.1682552394029; Wed, 26 Apr 2023 16:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682552394; cv=none; d=google.com; s=arc-20160816; b=QQ01ZfPMqCqOOxk5776NAMjNJMBeaUwSiPlfeLE2c0oO8jxbaAR7DAI72jAAGB0Qt/ i7jSXfdfl+tHTvQIyixj4Y98n1/XC2Nzcbff1NTUi4HmkITkO2Ci6xyOh9bY/NMAMqrK CmwswTmk/ckRymx5rrUAifZxKTMUAd3VaBzcI+vmrYGf+Yx+3CvpTBSXAQMqfmoAeeE4 xD0OtIT9mYmb5vFDq2Qxu76o+hoWds3Du5EsmZmsmVr4rJLnkBmRDL1AQ4ZLt4/z/jTj PEpYOIfTTpMPlxKLRQWQZdG762BHIkZy/txo0cuKm1uQp9p1CM8US06IYb9XO0DmNLD/ qfOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oONRy5l2JLOJyEo1AeYm19pBhJ3UQG2RW3FoWKC6TsI=; b=l+SolSs6FcPnI3HNlMIRWqnonmv7cPY98AutUloQu0K0PMgf1f0yj4Er3dLGWx7Cg9 tFrv/D0VegKgDUpIv4H6TgHYmbOYfR559lNyorRnPnTApFnmv2R/TB1/FfU0alzErs/K qREX3gSvaBOc1+8b/AWSsqPD00I56WgTNhKFdd4ncuowu+8oi4TiT/GhyT7cIK4jnHiX vTjKTQpMcIh5S/Yl9xnHsbzCFt9mZbXRm9twkw864UZL99Ev0T1AqX5OeyDo/ER/ssVi 4lYOvWdxjFCfDT2a/uOL3WKEQzLg9yWP/19UGc5sNNQ6sbxIuxYgn/sBI3U3SdDAJFVf 0hxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=h2PZfx92; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg24-20020a17090b0d9800b0024b630117a6si15320500pjb.163.2023.04.26.16.39.41; Wed, 26 Apr 2023 16:39:54 -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=@gmail.com header.s=20221208 header.b=h2PZfx92; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242752AbjDZXjg (ORCPT + 99 others); Wed, 26 Apr 2023 19:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239378AbjDZXje (ORCPT ); Wed, 26 Apr 2023 19:39:34 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CA61FEE; Wed, 26 Apr 2023 16:39:33 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-94a34a0b9e2so1153510466b.1; Wed, 26 Apr 2023 16:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682552371; x=1685144371; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oONRy5l2JLOJyEo1AeYm19pBhJ3UQG2RW3FoWKC6TsI=; b=h2PZfx9252YBjhMtLryYSuzrbcGAljB7L9ewNiOfZlhLJ+zSh7pVKQFYNGo6RwRNNg DxbbL/B5ZtqMoxab3wiA0hGrU7wDbXPBWSTlIUYyeCTUndsBJOkVKxGv0M4thC6Kja2e /OTnpJVVHhcIy83FfS6kqUUm/8iEJBEVkAQEn8bXyHR0yGhx13PpdrxJfseEVF+LCmfe L8rRQuKzKqfcBKNNrPz3YvmjdhwE/xvPP2Ue7Y1Jclhbk7dGmDxs2tC+UmPDPqkt+yie 9bv0/pZFuqwCa5gNchfmcpR8Cqx12cVhZtAeMdp1A/fly3Q9Qf15nPwDEMYk1MkI+Tj0 owFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682552371; x=1685144371; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oONRy5l2JLOJyEo1AeYm19pBhJ3UQG2RW3FoWKC6TsI=; b=GVv4+Z2ityS91RNEkumW4GrJxHJlItQENQkPwju83A0TErScafVczYvDMeQfh1iHQc lWPLbHZa412gUCZZ9mSWh6YpeQ68FbqSFk5RoWYOCGblTdrTYCcjfmwev7M16f3RThaH JUpzj2LqK5OgOc6V/M5SJ2WzmpXQY7ZQs5NqXRHZBXCMxvITX0yBCiM+7a/efspBgkcD 3upQFWqoeK6UC5N6+VS498gscB5UK8lAwLt9VZTZ8dWSlervdFEkun/4BKivbbeIiG/R ZSugHKtP5/UXWQZroXqyM879PRbkWefF1k6aX21RFHdzueBH950rF5V+vIK/KihuRumb g+xA== X-Gm-Message-State: AAQBX9cvB5vC2bNG5kSSsxPWb5cs1XAtY01NywrXWJQn4qEwu2hacFGw b8wVDCrFNuI7YrBmuB2h4pv/cXAEhV+bvmcjZbI= X-Received: by 2002:a17:906:a103:b0:8aa:a9fe:a3fc with SMTP id t3-20020a170906a10300b008aaa9fea3fcmr19604988ejy.8.1682552371348; Wed, 26 Apr 2023 16:39:31 -0700 (PDT) MIME-Version: 1.0 References: <20230406004018.1439952-1-drosen@google.com> In-Reply-To: From: Andrii Nakryiko Date: Wed, 26 Apr 2023 16:39:19 -0700 Message-ID: Subject: Re: [PATCH 0/3] Dynptr Verifier Adjustments To: Daniel Rosenberg Cc: bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 On Wed, Apr 26, 2023 at 3:07=E2=80=AFPM Daniel Rosenberg wrote: > > > > > It is expected that you build the freshest vmlinux image before > > building selftests, because we generate vmlinux.h from it. In your > > case we generated vmlinux.h from your system-wide > > /sys/kernel/btf/vmlinux BTF information, which doesn't yet have latest > > UAPI enums. > > > I'm still unable to build the selftests. I've got it pointed to a > locally built kernel built using the config/config.x86_64, and have > tried running the vmtest.sh script, and building just the tests via > make. I'm using O=3D to direct it to the out directory for the kernel > build. I've been hitting various errors when trying this. Confusingly > the error message isn't always the same. Currently from a clean build, > it complains about "linux/atomic.h" not found via #include > "../../../include/linux/filter.h"'s in various files. Other times it's > complained about the various helper functions from bpf_helper_defs.h > being unused. > > I'm not sure if I'm invoking the command wrong, or missing > dependencies or something. I got past some earlier issues by updating > clang. Any idea what I'm doing wrong? Don't know, show the sequence of commands you are running? I have linux source in ~/linux, and KBUILD_OUTPUT set to ~/linux-build/default. And it only takes this: $ cd ~/linux $ make -j90 # build kernel $ cd tools/testing/selftests/bpf $ make -j90 # build selftests And that's it.