Andrey Konovalov
unread,May 25, 2018, 1:10:21 PM5/25/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Florian Fainelli, syzkaller, Eric Biggers, Dmitry Vyukov
On Fri, May 25, 2018 at 5:29 PM, Florian Fainelli <
f.fai...@gmail.com> wrote:
> The ports layout of an Ethernet switch which DSA supports is configured
> through Device Tree or platform data, that part would be interesting to
> fuzz, in fact fuzzing Device Tree in general would be a fun exercise but
> it is indeed out of the scope of syzbot.
>
> Once the network devices are created, they just becomes a seemingly
> normal stacked network device setup, so I am wondering if that part
> could be fuzzed, like performing random configurations on them and
> seeing where things start to break?
I've never heard of DSA before and I'm not sure what a "normal stacked
network device" is :)
Do I understand correctly that a DSA device is visible as a network
interface, which you can configure with ifconfig (or using some custom
ioctls or through netlink)?
If so, what probably needs to be done is:
1. Teach syzkaller to initialize the interface to some meaningful
state. Take a look how it's done for some of the interfaces in
initialize_netdevices() in executor/common_linux.h:
https://github.com/google/syzkaller/blob/master/executor/common_linux.h#L409
2. Add descriptions for DSA specific ioctls, so syzkaller would start
to fuzz this interface.
Thanks!