From 212f927d3c939cfe129ba1c640247b92145ff48d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 12 Jan 2018 20:42:14 +0100 Subject: executor: setup network devices We test in a new network namespace, which does not have any devices set up (even lo). Create/up as many devices as possible. Give them some addresses and use these addresses in descriptions. --- sys/linux/socket.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/linux/socket.txt') diff --git a/sys/linux/socket.txt b/sys/linux/socket.txt index 36118441d..801b2f5ff 100644 --- a/sys/linux/socket.txt +++ b/sys/linux/socket.txt @@ -291,10 +291,14 @@ syzn_devname { z0 const[0, int8] } -# We could add "eth0" to this list as well, but this will affect the connection between fuzzer and manager and produce lots of "no output" crashes. -devnames = "lo", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "sit0", "ip6tnl0", "ip6gre0", "bond0", "dummy0", "eql", "ifb0", "ipddp0", "yam0", "bcsf0", "bcsh0", "teql0", "nr0", "rose0", "irlan0", "bpq0" +# We could add "eth0" to this list as well, but this will affect the connection +# between fuzzer and manager and produce lots of "no output" crashes +# (actually, this is not true now since all testing is done in a separate +# network namespace, but we still don't mess with eth0). +devnames = "lo", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "sit0", "ip6tnl0", "ip6gre0", "ip6gretap0", "bond0", "dummy0", "eql", "ifb0", "ipddp0", "yam0", "bcsf0", "bcsh0", "teql0", "nr0", "rose0", "irlan0", "erspan0", "bpq0", "vlan0", "bridge0", "vcan0", "syzkaller0", "syzkaller1" devname [ +# TODO: this should be a string, but we currently can't make a random string of fixed size. generic array[int8, IFNAMSIZ] common string[devnames, IFNAMSIZ] syzn syzn_devname -- cgit mrf-deployment