I am very new to syzkaller and just trying to get it up and running on my Samsung Galaxy S7 (My host computer is running a standard distribution of ubuntu 16.04). Before doing anything specific with my fuzzing, I am just trying to produce an output similar to what was shown in the install guide here (
https://github.com/google/syzkaller/blob/master/docs/setup.md). Following the android guide here (
https://github.com/google/syzkaller/blob/master/docs/setup_linux-host_android-device_arm64-kernel.md), I am able to get the fuzzer to run, but I am not convinced I have it working properly. Here is the output I get when I run syzkaller.
2017/08/28 14:14:54 loading corpus...
2017/08/28 14:14:54 loaded 0 programs (0 total, 0 deleted)
2017/08/28 14:14:54 serving http on
http://127.0.0.1:500002017/08/28 14:14:54 serving rpc on tcp://[::]:36531
2017/08/28 14:14:54 booting test machines...
2017/08/28 14:14:54 wait for the connection from test machine...
2017/08/28 14:15:53 failed to associate adb device 9886334b3644444955 with console: no console is associated with this device
2017/08/28 14:15:53 falling back to 'adb shell dmesg -w'
2017/08/28 14:15:53 note: some bugs may be detected as 'lost connection to test machine' with no kernel output
2017/08/28 14:15:58 vm-0: crash: WARNING in device_create_file
The phone will then reboot and continue to produce that same crash. I noticed the rpc line has no address and I cannot seem to make it take one (I am also not sure how I would do that and the things I have tried have not worked). I am also not sure how big of an issue that is. I ran the program a second time with the debug flag set. That output is shown below.
2017/08/28 14:18:23 loading corpus...
2017/08/28 14:18:23 loaded 0 programs (0 total, 0 deleted)
2017/08/28 14:18:23 serving http on
http://127.0.0.1:500002017/08/28 14:18:23 serving rpc on tcp://[::]:34811
2017/08/28 14:18:23 booting test machines...
2017/08/28 14:18:23 wait for the connection from test machine...
2017/08/28 14:18:24 executing adb [shell pwd]
2017/08/28 14:18:24 adb returned
2017/08/28 14:18:24 executing adb [shell reboot]
2017/08/28 14:18:25 adb returned
2017/08/28 14:18:36 executing adb [shell pwd]
2017/08/28 14:18:36 adb failed: exit status 1
error: device '9886334b3644444955' not found
...
2017/08/28 14:19:03 executing adb [shell pwd]
2017/08/28 14:19:03 adb failed: exit status 1
error: device '9886334b3644444955' not found
2017/08/28 14:19:04 executing adb [shell pwd]
2017/08/28 14:19:04 adb returned
2017/08/28 14:19:04 executing adb [root]
2017/08/28 14:19:04 adb returned
2017/08/28 14:19:05 executing adb [shell pwd]
2017/08/28 14:19:05 adb returned
2017/08/28 14:19:26 failed to associate adb device 9886334b3644444955 with console: no console is associated with this device
2017/08/28 14:19:26 falling back to 'adb shell dmesg -w'
2017/08/28 14:19:26 note: some bugs may be detected as 'lost connection to test machine' with no kernel output
2017/08/28 14:19:26 executing adb [shell rm -Rf /data/local/tmp/syzkaller*]
2017/08/28 14:19:26 adb returned
2017/08/28 14:19:26 executing adb [reverse tcp:35099 tcp:34811]
2017/08/28 14:19:26 adb returned
2017/08/28 14:19:26 executing adb [push /home/bf/shared/go/src/
github.com/google/syzkaller/bin/syz-fuzzer /data/local/tmp/syz-fuzzer]
2017/08/28 14:19:29 adb returned
2017/08/28 14:19:29 executing adb [push /home/bf/shared/go/src/
github.com/google/syzkaller/bin/syz-executor /data/local/tmp/syz-executor]
2017/08/28 14:19:29 adb returned
2017/08/28 14:19:29 starting: adb shell /data/local/tmp/syz-fuzzer -executor=/data/local/tmp/syz-executor -name=vm-0 -manager=
127.0.0.1:35099 -procs=1 -leak=false -cover=true -sandbox=none -debug=true -v=100
After the last line it prints out what looks like a kernel log. It then crashes and reboots.
2017/08/28 14:19:29 vm-0: crash: WARNING in device_create_file
2017/08/28 14:19:31 executing adb [shell pwd]
2017/08/28 14:19:31 adb returned
2017/08/28 14:19:31 executing adb [shell reboot]
2017/08/28 14:19:31 adb returned
2017/08/28 14:19:42 executing adb [shell pwd]
2017/08/28 14:19:42 adb failed: exit status 1
error: device '9886334b3644444955' not found
...
It will do this forever, as far as I can tell. It seems like the person on this thread (
https://groups.google.com/forum/#!topic/syzkaller/Y_lQNl8yKVw) was having a similar issue, but I am not sure how it was resolved. I will attach the log and report file form the debug run as well as the config file I am using. Sorry for the long-winded question, but any thoughts and/or suggestions would be welcome. Thanks!