From: Eduard Zingerman <eddyz87@gmail.com>
To: Gregory Bell <grbell@redhat.com>
Cc: bpf@vger.kernel.org, andrii@kernel.org, mykolal@fb.com,
ast@kernel.org, daniel@iogearbox.net, martin.lau@linux.dev,
song@kernel.org, yonghong.song@linux.dev,
john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me,
haoluo@google.com, jolsa@kernel.org, shuah@kernel.org
Subject: Re: [PATCH bpf-next 0/2] Fix verifier test failures in verbose mode
Date: Mon, 12 May 2025 10:26:26 -0700 [thread overview]
Message-ID: <m234d97nb1.fsf@gmail.com> (raw)
In-Reply-To: <cover.1747058195.git.grbell@redhat.com> (Gregory Bell's message of "Mon, 12 May 2025 10:04:11 -0400")
Gregory Bell <grbell@redhat.com> writes:
> This patch series fixes two issues that cause false failures in the
> BPF verifier test suite when run with verbose output (`-v`).
>
> The following tests fail only when running the test_verifier in
> verbose.
>
> #458/p ld_dw: xor semi-random 64 bit imms, test 5 FAIL
> #494/p precise: test 1 FAIL
> #495/p precise: test 2 FAIL
> #497/p precise: ST zero to stack insn is supported FAIL
> #498/p precise: STX insn causing spi > allocated_stack FAIL
> #501/p scale: scale test 1 FAIL
> #502/p scale: scale test 2 FAIL
>
> This leads to inconsistent results across verbose and
> non-verbose runs.
>
> Patch 1 addresses an issue where the verbose flag (`-v`) unintentionally
> overrides the `opts.log_level`, leading to incorrect contents when checking
> bpf_vlog in tests with `expected_ret == VERBOSE_ACCEPT`. This occurs when
> running verbose with `-v` but not `-vv`
>
> Patch 2 increases the size of the `bpf_vlog[]` buffer to prevent truncation
> of large verifier logs, which was causing failures in several scale and
> 64-bit immediate tests.
>
>
> Before patches:
> ./test_verifier | grep FAIL
> Summary: 790 PASSED, 0 SKIPPED, 0 FAILED
Can reproduce the issue with -v option, the series fixes failures I see.
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
next prev parent reply other threads:[~2025-05-12 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-12 14:04 [PATCH bpf-next 0/2] Fix verifier test failures in verbose mode Gregory Bell
2025-05-12 14:04 ` [PATCH bpf-next 1/2] selftests/bpf: test_verifier verbose causes erroneous failures Gregory Bell
2025-05-12 14:04 ` [PATCH bpf-next 2/2] selftests/bpf: test_verifier verbose log overflows Gregory Bell
2025-05-12 17:26 ` Eduard Zingerman [this message]
2025-05-12 17:50 ` [PATCH bpf-next 0/2] Fix verifier test failures in verbose mode patchwork-bot+netdevbpf
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=m234d97nb1.fsf@gmail.com \
--to=eddyz87@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=grbell@redhat.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=martin.lau@linux.dev \
--cc=mykolal@fb.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/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.