From: Eduard Zingerman <eddyz87@gmail.com>
To: "Andrii Nakryiko" <andrii.nakryiko@gmail.com>,
"Maciej Żenczykowski" <zenczykowski@gmail.com>
Cc: BPF Mailing List <bpf@vger.kernel.org>,
Alexei Starovoitov <ast@kernel.org>
Subject: Re: Funky verifier packet range error (> check works, != does not).
Date: Wed, 03 Jan 2024 02:29:44 +0200 [thread overview]
Message-ID: <90cce906fd6628354c6cd3fab9820549f6337dd5.camel@gmail.com> (raw)
In-Reply-To: <CAEf4BzaLyHbddd-FfCMWBjbGb0==D1a=xyi0-u0zpQHonkhfyg@mail.gmail.com>
On Tue, 2024-01-02 at 16:06 -0800, Andrii Nakryiko wrote:
[...]
> For the fix that Eduard proposed (and checking
> try_match_pkt_pointers), should we do a similar simplification as we
> do for scalar register comparisons? Make sure that data_end is always
> on the right by swapping, if that's not the case. And also use
> corresponding rev_opcode() and flip_opcode() operations to minimize
> the amount of logic and duplicated code?
>
> And I mean not just for new JEQ/JNE cases, but let's also refactor and
> simplify existing logic as well?
Yes, this should simplify the function significantly.
prev parent reply other threads:[~2024-01-03 0:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-30 1:31 Funky verifier packet range error (> check works, != does not) Maciej Żenczykowski
2024-01-02 16:39 ` Eduard Zingerman
2024-01-02 18:30 ` Maciej Żenczykowski
2024-01-02 19:23 ` Eduard Zingerman
2024-01-02 20:36 ` Maciej Żenczykowski
2024-01-02 23:13 ` Eduard Zingerman
2024-01-04 16:41 ` Eduard Zingerman
2024-01-05 0:33 ` Maciej Żenczykowski
2024-01-02 21:45 ` Andrii Nakryiko
2024-01-02 22:45 ` Maciej Żenczykowski
2024-01-02 23:56 ` Yonghong Song
2024-01-03 0:06 ` Andrii Nakryiko
2024-01-03 0:29 ` Eduard Zingerman [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=90cce906fd6628354c6cd3fab9820549f6337dd5.camel@gmail.com \
--to=eddyz87@gmail.com \
--cc=andrii.nakryiko@gmail.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=zenczykowski@gmail.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