All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Neal Shukla <nshukla@riotgames.com>
Cc: Xdp <xdp-newbies@vger.kernel.org>,
	Lisa Watanabe <lwatanabe@riotgames.com>
Subject: Re: Issue with verifier error
Date: Tue, 28 Sep 2021 14:02:56 -0700	[thread overview]
Message-ID: <CAADnVQJrwCVZP65HiyCJu9t7mToMOOP5undP7EqUpONF2GwMoA@mail.gmail.com> (raw)
In-Reply-To: <CAJwr_MfAwrWu1XiSQoEVR-vRs0jbLXi9G4HBsxeRFQDJi0V6Eg@mail.gmail.com>

On Fri, Sep 17, 2021 at 12:18 AM Neal Shukla <nshukla@riotgames.com> wrote:
>
> Hi all,
>
> We've encountered a compiler issue which leads to issues with the
> verifier. We compile with clang using the O2 optimization level. When we
> have a call to bpf_ntohs(udp_header->dest) and attempt to load the debug version
> we get a verifier error. Removing the bpf_ntohs(udp_header->dest) call and
> loading the debug version results in no errors, as does loading the
> non-debug version of our code.
...
> Any insight into the issue would be much appreciated. Thank you!

It could be related to optimizations that llvm was doing.
Could you please try the latest llvm trunk and the latest bpf-next?
Do you still see this issue?
If so, we will investigate. Pls provide full .c reproducer.

Thanks!

      reply	other threads:[~2021-09-28 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 22:15 Issue with verifier error Neal Shukla
2021-09-28 21:02 ` Alexei Starovoitov [this message]

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=CAADnVQJrwCVZP65HiyCJu9t7mToMOOP5undP7EqUpONF2GwMoA@mail.gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=lwatanabe@riotgames.com \
    --cc=nshukla@riotgames.com \
    --cc=xdp-newbies@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.