public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@redhat•com>
To: Palmer Dabbelt <palmerdabbelt@google•com>,
	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 <palmerdabbelt@google•com>,
	linux-kernel@vger•kernel.org, clang-built-linux@googlegroups•com,
	kernel-team@android•com,
	Jesper Dangaard Brouer <brouer@redhat•com>
Subject: Re: [PATCH] selftests/bpf: Elide a check for LLVM versions that can't compile it
Date: Fri, 24 Jan 2020 21:27:11 +0100	[thread overview]
Message-ID: <87ftg4fvmo.fsf@toke.dk> (raw)
In-Reply-To: <20200124180839.185837-1-palmerdabbelt@google.com>

Palmer Dabbelt <palmerdabbelt@google•com> 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 <palmerdabbelt@google•com>

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


  reply	other threads:[~2020-01-24 20:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-24 18:08 [PATCH] selftests/bpf: Elide a check for LLVM versions that can't compile it Palmer Dabbelt
2020-01-24 20:27 ` Toke Høiland-Jørgensen [this message]
2020-01-27 11:09   ` Daniel Borkmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftg4fvmo.fsf@toke.dk \
    --to=toke@redhat$(echo .)com \
    --cc=andriin@fb$(echo .)com \
    --cc=ast@kernel$(echo .)org \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=brouer@redhat$(echo .)com \
    --cc=clang-built-linux@googlegroups$(echo .)com \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=john.fastabend@gmail$(echo .)com \
    --cc=kafai@fb$(echo .)com \
    --cc=kernel-team@android$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-kselftest@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=palmerdabbelt@google$(echo .)com \
    --cc=shuah@kernel$(echo .)org \
    --cc=songliubraving@fb$(echo .)com \
    --cc=yhs@fb$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox