From: Daniel Borkmann <daniel@iogearbox.net>
To: Yonghong Song <yhs@fb.com>, bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@fb.com>, kernel-team@fb.com
Subject: Re: [PATCH bpf-next v2] [tools/bpf] workaround a verifier failure for test_progs
Date: Mon, 11 Nov 2019 14:07:34 +0100 [thread overview]
Message-ID: <a9403907-73d4-bd25-6f2d-44be85cd63e0@iogearbox.net> (raw)
In-Reply-To: <20191107170045.2503480-1-yhs@fb.com>
On 11/7/19 6:00 PM, Yonghong Song wrote:
> With latest llvm compiler, running test_progs will have
> the following verifier failure for test_sysctl_loop1.o:
> libbpf: load bpf program failed: Permission denied
> libbpf: -- BEGIN DUMP LOG ---
> libbpf:
> invalid indirect read from stack var_off (0x0; 0xff)+196 size 7
> ...
> libbpf: -- END LOG --
> libbpf: failed to load program 'cgroup/sysctl'
> libbpf: failed to load object 'test_sysctl_loop1.o'
>
> The related bytecodes look below:
> 0000000000000308 LBB0_8:
> 97: r4 = r10
> 98: r4 += -288
> 99: r4 += r7
> 100: w8 &= 255
> 101: r1 = r10
> 102: r1 += -488
> 103: r1 += r8
> 104: r2 = 7
> 105: r3 = 0
> 106: call 106
> 107: w1 = w0
> 108: w1 += -1
> 109: if w1 > 6 goto -24 <LBB0_5>
> 110: w0 += w8
> 111: r7 += 8
> 112: w8 = w0
[...]
Applied, thanks!
next prev parent reply other threads:[~2019-11-11 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 17:00 [PATCH bpf-next v2] [tools/bpf] workaround a verifier failure for test_progs Yonghong Song
2019-11-07 23:10 ` Song Liu
2019-11-11 13:07 ` Daniel Borkmann [this message]
2020-04-28 2:56 Ma Xinjian
2020-04-28 6:13 ` Yonghong Song
2020-04-28 22:33 ` Alexei Starovoitov
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=a9403907-73d4-bd25-6f2d-44be85cd63e0@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=ast@fb.com \
--cc=bpf@vger.kernel.org \
--cc=kernel-team@fb.com \
--cc=yhs@fb.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).