From: David Miller <davem@davemloft.net>
To: peterpenkov96@gmail.com
Cc: netdev@vger.kernel.org, edumazet@google.com, maheshb@google.com,
willemb@google.com, ppenkov@stanford.edu
Subject: Re: [PATCH,v3,net-next 0/2] Improve code coverage of syzkaller
Date: Mon, 25 Sep 2017 20:16:31 -0700 (PDT) [thread overview]
Message-ID: <20170925.201631.612115793478960027.davem@davemloft.net> (raw)
In-Reply-To: <20170922204915.7889-1-peterpenkov96@gmail.com>
From: Petar Penkov <peterpenkov96@gmail.com>
Date: Fri, 22 Sep 2017 13:49:13 -0700
> This patch series is intended to improve code coverage of syzkaller on
> the early receive path, specifically including flow dissector, GRO,
> and GRO with frags parts of the networking stack. Syzkaller exercises
> the stack through the TUN driver and this is therefore where changes
> reside. Current coverage through netif_receive_skb() is limited as it
> does not touch on any of the aforementioned code paths. Furthermore,
> for full coverage, it is necessary to have more flexibility over the
> linear and non-linear data of the skbs.
>
> The following patches address this by providing the user(syzkaller)
> with the ability to send via napi_gro_receive() and napi_gro_frags().
> Additionally, syzkaller can specify how many fragments there are and
> how much data per fragment there is. This is done by exploiting the
> convenient structure of iovecs. Finally, this patch series adds
> support for exercising the flow dissector during fuzzing.
>
> The code path including napi_gro_receive() can be enabled via the
> IFF_NAPI flag. The remainder of the changes in this patch series give
> the user significantly more control over packets entering the kernel.
> To avoid potential security vulnerabilities, hide the ability to send
> custom skbs and the flow dissector code paths behind a
> capable(CAP_NET_ADMIN) check to require special user privileges.
>
> Changes since v2 based on feedback from Willem de Bruijn and Mahesh
> Bandewar:
>
> Patch 1/ No changes.
> Patch 2/ Check if the preconditions for IFF_NAPI_FRAGS (IFF_NAPI and
> IFF_TAP) are met before opening/attaching rather than after.
> If they are not, change the behavior from discarding the
> flag to rejecting the command with EINVAL.
Series applied, thank you.
prev parent reply other threads:[~2017-09-26 3:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-22 20:49 [PATCH,v3,net-next 0/2] Improve code coverage of syzkaller Petar Penkov
2017-09-22 20:49 ` [PATCH,v3,net-next 1/2] tun: enable NAPI for TUN/TAP driver Petar Penkov
2017-09-25 16:23 ` Mahesh Bandewar (महेश बंडेवार)
2017-09-22 20:49 ` [PATCH,v3,net-next 2/2] tun: enable napi_gro_frags() " Petar Penkov
2017-09-25 16:27 ` Mahesh Bandewar (महेश बंडेवार)
2017-09-26 3:16 ` David Miller [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=20170925.201631.612115793478960027.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=peterpenkov96@gmail.com \
--cc=ppenkov@stanford.edu \
--cc=willemb@google.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).