From: Eric Dumazet <eric.dumazet@gmail.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>,
Daniel Borkmann <daniel@iogearbox.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Alexei Starovoitov <ast@kernel.org>,
Networking <netdev@vger.kernel.org>
Subject: Re: [RFC] should we allow BPF to transmit empty skbs
Date: Fri, 29 Oct 2021 08:48:37 -0700 [thread overview]
Message-ID: <ead53f21-0649-1c5b-c157-6e1ec49d9458@gmail.com> (raw)
In-Reply-To: <CAADnVQLqrokhdY_DQWOhBafaYe-tSpQ60seTxv8r5MQpH6RtHw@mail.gmail.com>
On 10/29/21 8:41 AM, Alexei Starovoitov wrote:
> On Fri, Oct 29, 2021 at 8:39 AM Daniel Borkmann <daniel@iogearbox.net> wrote:
>>
>> On 10/29/21 5:22 PM, Eric Dumazet wrote:
>>> Some layers in tx path do not expect skb being empty (skb->len == 0)
>>>
>>> syzbot reported a crash [1] in fq_codel.
>>>
>>> But I expect many drivers would also crash later.
>>>
>>> Sure the immediate fq_codel crash could be 'fixed', but I would rather
>>> add some sanity checks in net/core/filter.c
>>
>> Makes sense, we shouldn't have to add this to fq_codel fast path, but rather
>> a sanity check for bpf_clone_redirect().
>>
>> I wonder if it's only related to bpf_prog_test_run() infra or if it could also
>> have been generated via stack?
>
> probably bpf_prog_test_run_skb only.
> I would only add size !=0 check there.
>
We have a C repro, I will release the syzbot bug so that it can be shared with you.
Thanks.
prev parent reply other threads:[~2021-10-29 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 15:22 [RFC] should we allow BPF to transmit empty skbs Eric Dumazet
2021-10-29 15:39 ` Daniel Borkmann
2021-10-29 15:41 ` Alexei Starovoitov
2021-10-29 15:48 ` Eric Dumazet [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=ead53f21-0649-1c5b-c157-6e1ec49d9458@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=alexei.starovoitov@gmail.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox