From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no 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 A6F3CC32771 for ; Fri, 24 Jan 2020 20:27:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D42B2075D for ; Fri, 24 Jan 2020 20:27:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EBV9p5LE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404326AbgAXU1V (ORCPT ); Fri, 24 Jan 2020 15:27:21 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:24053 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389021AbgAXU1V (ORCPT ); Fri, 24 Jan 2020 15:27:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579897638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Pn41gsoJ7Prz9D2Chq8+4st2brwhG+QxzipNPoNENGo=; b=EBV9p5LEBRNMMKcf7LDLxKN7MXpWjZxV9EOFETtbiYgJdI1KOSza/TCgSF7tuQEHcYy1jn 6ORjurgJ4RN5afvkOGlRDvDucCyT8TRErXO/TvwqfiBjZIDOgq6doKfLr6iPSr9a+4St4O USTdUocQ4sYPVlgwJkMlRYl2CIENpV4= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-230-T9frnd9GNV26vQgFTgUvaw-1; Fri, 24 Jan 2020 15:27:15 -0500 X-MC-Unique: T9frnd9GNV26vQgFTgUvaw-1 Received: by mail-lf1-f71.google.com with SMTP id l2so605867lfk.23 for ; Fri, 24 Jan 2020 12:27:15 -0800 (PST) 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:in-reply-to:references:date :message-id:mime-version; bh=Pn41gsoJ7Prz9D2Chq8+4st2brwhG+QxzipNPoNENGo=; b=qUgTnir6gitTkji+9YckxVWfFuVL0So5iQCUNObL9F11xcGr8sMh+txJRcM9h/5LSo 1Twh12c236G1gPLtGoeFRk5QIG93NMbJL2E01/XxsicwK3m9Q7jBDe1XOQ1y81p0U79w AvYdtkXHxEuwoCjDPsSLftFje/HcoEYrcYR+8Mg0999pZSs2YutX/f91xAY7Mnbs8rAn DpH7ZfoWIj86k8tdB9SYmrE/Vv1pk62OY6GGu4ZxIN1ISCDIOY/iJqT54XY4EYbtD8/u pI+wOMiw5XJ9fCae/LEFIHiBDTBYZfx3AeOIQk0BJMvZkm8ZuknGbAoKQTdpgVwza8zD 2Imw== X-Gm-Message-State: APjAAAWvV3451d8AxBVylQROaam1cHOrNXKBUcbxNAasEeAAHPuPMXKX 0w7Bf9MffH39hxthUHU4r/JwlKA0WPkRQcS+AaJ68G+MTANhHs6jfqHLFWNlvH3Pqx0+L7ZRsb5 UpCKr+siEp8W9zsJq X-Received: by 2002:ac2:515b:: with SMTP id q27mr2115394lfd.119.1579897633632; Fri, 24 Jan 2020 12:27:13 -0800 (PST) X-Google-Smtp-Source: APXvYqx9hrO0z4pTMXfCFGI/ExgfB5vQ/R1c2J8bnz5equSvHLWgIR8YUpPBbv8gpOUT2OWeI+Wb0Q== X-Received: by 2002:ac2:515b:: with SMTP id q27mr2115388lfd.119.1579897633361; Fri, 24 Jan 2020 12:27:13 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([85.204.121.218]) by smtp.gmail.com with ESMTPSA id q26sm3308753lfp.85.2020.01.24.12.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 12:27:12 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 476A5180073; Fri, 24 Jan 2020 21:27:11 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Palmer Dabbelt , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, john.fastabend@gmail.com, Palmer Dabbelt , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, kernel-team@android.com, Jesper Dangaard Brouer Subject: Re: [PATCH] selftests/bpf: Elide a check for LLVM versions that can't compile it In-Reply-To: <20200124180839.185837-1-palmerdabbelt@google.com> References: <20200124180839.185837-1-palmerdabbelt@google.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 24 Jan 2020 21:27:11 +0100 Message-ID: <87ftg4fvmo.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Palmer Dabbelt writes: > The current stable LLVM BPF backend fails to compile the BPF selftests > due to a compiler bug. The bug has been fixed in trunk, but that fix > hasn't landed in the binary packages I'm using yet (Fedora arm64). > Without this workaround the tests don't compile for me. > > This patch triggers a preprocessor warning on LLVM versions that > definitely have the bug. The test may be conservative (ie, I'm not sure > if 9.1 will have the fix), but it should at least make the current set > of stable releases work together. > > See https://reviews.llvm.org/D69438 for more information on the fix. I > obtained the workaround from > https://lore.kernel.org/linux-kselftest/aed8eda7-df20-069b-ea14-f06628984566@gmail.com/T/ > > Fixes: 20a9ad2e7136 ("selftests/bpf: add CO-RE relocs array tests") > Signed-off-by: Palmer Dabbelt Having to depend on the latest trunk llvm to compile the selftests is definitely unfortunate. I believe there are some tests that won't work at all without trunk llvm (the fentry/fexit stuff comes to mind; although I'm not sure if they'll fail to compile, just fail to run?). Could we extend this type of checking to any such case? -Toke