Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2446930rwr; Fri, 28 Apr 2023 10:23:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IEmBAtsLp38bJgbBzfCWIOyNApe5WZH6cd25894rzRdA5Ali3ukBziYLkY8ApdI/pX4/t X-Received: by 2002:a05:6a00:c8e:b0:63d:2d99:2e7c with SMTP id a14-20020a056a000c8e00b0063d2d992e7cmr9380831pfv.0.1682702622192; Fri, 28 Apr 2023 10:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682702622; cv=none; d=google.com; s=arc-20160816; b=ZCcNdHdQ/BFMFoFvG/n5cYKp7lijQhloWcljGoW1cdS/1VYLCU3Vp511FrsETki9xI oCOw4FdVwTw+P/VdTccc/Ae5Vu+keA1+jjpN0t3QbPosNQie/JNLw1/XLdkSnzyV24C0 JW078CxyuakwjHqwpdx0/hzyLYnjrHdTyNajDCw8wXIXBgYdGWPAcLGWvm1jvjkeBKQ1 +tRR02a7Oe69wglxmBtCAJ1JWXUVbVB6kN5GvEoNXA+XdjpxwK19ynXbECACiP2TlxKO 2CgRjCVEBsKBrVVx2dI0BSWeG/xs4gw18ZvscNcyGrmdVfGBw8ZfMrD9fhmH3qyHyMj7 ZD7Q== 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=orF2TGjKH9RnkI54wP/gNHzEqDj6sbeR6PxFmMBG6iU=; b=Td3T4vtMjjUGlTgfgPEv/e+ILrwPdwtu3OOVtNbdHRtiboFVHET64G00l2CLcfc317 jWgZHJ6g9KwQm+rKMKHioGvlbAS5YD1OjzfRZ3MVBD7P509vqlwu3CmaR/kLtFzf+CMb u+VgesylmhbHwxPZ+AhilcinFivGLRuMKSuTf/qMXjNl/wLPkpd+DcHO0A1HBla4wJd4 SxzRU5uV8eAZZKLcgglKxibEhnyi8mlskLDyyTacY6/3brLPpib8C6VWmUtG+NanZrl3 da0qaH3gMLWrxJTXJ2zUuzTnhKzZb53/rK/+cSlrFg0Qg15ux40l/tpvZWeLmZ9q3K7X XAQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Og6im9eI; 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 186-20020a6206c3000000b0063b645b66f1si20555571pfg.193.2023.04.28.10.23.30; Fri, 28 Apr 2023 10:23:42 -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=Og6im9eI; 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 S1346338AbjD1RUc (ORCPT + 99 others); Fri, 28 Apr 2023 13:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjD1RUa (ORCPT ); Fri, 28 Apr 2023 13:20:30 -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 E0DB92D50; Fri, 28 Apr 2023 10:20:28 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-94ed7e49541so4152566b.1; Fri, 28 Apr 2023 10:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682702427; x=1685294427; 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=orF2TGjKH9RnkI54wP/gNHzEqDj6sbeR6PxFmMBG6iU=; b=Og6im9eIF6DaYG2GWJ5b2TKo9T6LHVbDSI0mRdlIMWomUWZJqYz62QFIt0Wf4XxZfk ECtGRKZN/GPSuYSJFdzw8JTKZBztaKXICMfDh/W6JQnlMYnk8zqQcvCmPfARv9YNb+Rk vGLmbfzCS/pH4ue6J8AcHQvPLnF9Zc6/NyiJvfxN8bt5ojGg6Wk6tQg0LZTLm8UivTG+ AAhFOAodZj8oyEq/iK1u2MYPnenON4Oo220ZYgq0TwfF2mg2WSVK+npODFrwK4cwrBp6 shIxTMqGnbFh0K6OJ9uvcncy013NihsMSIFPVLm9ZHoXRypMgheDJ2hneNpIKvxmPfyu NfKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682702427; x=1685294427; 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=orF2TGjKH9RnkI54wP/gNHzEqDj6sbeR6PxFmMBG6iU=; b=DPBOMhOxVGhuqOO+BqOncCpYBFT+2Okv/CDH9p+AXrUeIaQpAo+qNkz45Qzjmqa2AD bkETdbRrkWOvVnRF8HbyIk2/mUZCdfnW9ugCf1Xu/mHErFBnwKuUzeSJ6UkZeC6ZKyoh 2+Z/ePGajENB2YWObEIMkN7VLY0uOEI7YMnByxoGy6YUPp9Lubkb7RMHIRUMiVHcLNwc 51TIHAZR450/hXZG1KFF+wyR2k/Ll5uEGQiG+2d/F8lzqcAWli5G2KBnjfk3n4BwSyRb zpNvDi4BVA8zIpJuiHZ+CKnWcXL66vvbivfI/BA3HT8BmeQXLI9tORCrm9AltcH3xPHR zdKg== X-Gm-Message-State: AC+VfDzRdtSWlTMJSSgSu6olc/kzheLKR1p/hOfN7wxigfsHSmd2u9Xk jUcmUVU5zAZhJtwT4pK9K9iVb5n3R4bMtbmCmpU= X-Received: by 2002:a17:907:9703:b0:94f:8605:3f30 with SMTP id jg3-20020a170907970300b0094f86053f30mr5739104ejc.24.1682702427237; Fri, 28 Apr 2023 10:20:27 -0700 (PDT) MIME-Version: 1.0 References: <20230406004018.1439952-1-drosen@google.com> <874jp0bcoy.fsf@oracle.com> In-Reply-To: <874jp0bcoy.fsf@oracle.com> From: Andrii Nakryiko Date: Fri, 28 Apr 2023 10:20:15 -0700 Message-ID: Subject: Re: [PATCH 0/3] Dynptr Verifier Adjustments To: "Jose E. Marchesi" Cc: Daniel Rosenberg , 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 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 Fri, Apr 28, 2023 at 2:04=E2=80=AFAM Jose E. Marchesi wrote: > > > > On Thu, Apr 27, 2023 at 4:36=E2=80=AFPM Daniel Rosenberg wrote: > >> > >> On Wed, Apr 26, 2023 at 4:39=E2=80=AFPM Andrii Nakryiko > >> wrote: > >> > > >> > 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. > >> > >> I've tried the same, modulo some paths. I'm pretty sure it's version > >> related at this point. > >> The current issue I'm seeing is "error: indirect call in function, > >> which are not supported by eBPF" when using GCC-BPF for > >> progs/bind4_prog.c > > > > I don't think GCC-BPF is able to compile selftests properly just yet. > > So I guess the problem is that you do have some version of gcc-bpf in > > the system and selftest's Makefile tries to build gcc variants of > > test_progs? That's bad (I don't have GCC-BPF locally, and everyone > > else apparently as well). > > > > So for now just `make BPF_GCC=3D` ? CC'ing Jose, we should probably > > agree on some criteria of "GCC-BPF is really capable of building > > selftests" and adjust Makefile to only attempt GCC BPF build in that > > case. > > Being able to run the selftests is our goal at the moment, but we are > not there yet, no. > > What about making the kernel build system to emit a visible warning > before it builds the GCC variants of the tests programs? Something like > "this is experimental and will likely fail". Given gcc-bpf can't build selftests right now, should we just disable it until there is a version on which gcc-bpf works? We can make it such that you can force it to build using gcc-bpf (make USE_GCC_BPF=3D1 or something). > > >> > >> Currently using clang 16.0.0 and gcc 12.2.0-14. > >> I did manage to get it to build by just commenting out TEST_GEN_PROGS > >> +=3D test_progs-bpf_gcc