syzkaller/pkg/csource
Andrei Vagin 2649e7ccc4 Call initialize_devlink_ports only when a device has been created
gVisor doesn't support netdevsim and NETLINK_GENERIC and
without this fix, sys-executor always fails:

E openat(AT_FDCWD, /sys/bus/netdevsim/new_device, ...)
X openat(AT_FDCWD, /sys/bus/netdevsim/new_device, ...) = 0x0 errno=2
E socket(AF_NETLINK, SOCK_RAW|0x0, NETLINK_GENERIC)
X socket(AF_NETLINK, SOCK_RAW|0x0, NETLINK_GENERIC) = 0x0 errno=93
E write(0x2 host:[3], "socket(AF_NETLINK) failed\n", 0x1a)
X write(0x2 host:[3], ..., 0x1a) = 0x1a (2.767µs)
E write(0x2 host:[3], " (errno 93)\n", 0xc)
X write(0x2 host:[3], ..., 0xc) = 0xc (2.729µs)
E exit_group(0x43)
X exit_group(0x43) = 0x0 (900ns)

Cc: Jiri Pirko <jiri@mellanox.com>
Fixes: f350e2dc1f ("executor: rename devlink port netdevices to defined names")
Signed-off-by: Andrei Vagin <avagin@google.com>
2019-11-26 10:07:31 +01:00
..
build.go pkg/csource: allow to ignore warnings during build 2019-03-21 13:30:12 +01:00
common.go pkg/csource: rename some options 2019-11-16 09:58:54 +01:00
csource_test.go pkg/csoruce: test that executor does not mis-spell any of the SYZ_* macros 2019-11-16 09:58:54 +01:00
csource.go pkg/csource: rename some options 2019-11-16 09:58:54 +01:00
gen.go all: add basic USB fuzzing support 2019-04-11 16:24:45 +02:00
generated.go Call initialize_devlink_ports only when a device has been created 2019-11-26 10:07:31 +01:00
options_test.go pkg/csource: rename some options 2019-11-16 09:58:54 +01:00
options.go pkg/csource: rename some options 2019-11-16 09:58:54 +01:00
race_test.go pkg/csource: fix test exit code 2018-05-07 20:40:44 +02:00