aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-09-19 16:19:40 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2019-09-19 16:20:57 +0200
commit2d1b3704eb8d3a8d66c2cdf4c7da8b003c6f4e3f (patch)
treeb9e1cd2b31a38cee1b8419a1a4d169ed8e3b98de
parent532aca508a1c9dd2529fdb0b1596e050a1b80045 (diff)
docs/linux: update USB instructions
-rw-r--r--docs/linux/external_fuzzing_usb.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/linux/external_fuzzing_usb.md b/docs/linux/external_fuzzing_usb.md
index c3f1b3dbe..8950f07aa 100644
--- a/docs/linux/external_fuzzing_usb.md
+++ b/docs/linux/external_fuzzing_usb.md
@@ -175,14 +175,14 @@ These instructions describe how to set this up on a Raspberry Pi Zero W, but any
cp bin/linux_arm/syz-executor ~/syz-bin/
```
-10. Build `syz-execprog` on your host machine for arm32 with `make TARGETARCH=arm execprog` and copy to `~/syz-bin` onto the SD card.
+10. Build `syz-execprog` on your host machine for arm32 with `make TARGETARCH=arm execprog` and copy to `~/syz-bin` onto the SD card. You may try building syz-execprog on the Raspberry Pi itself, but that worked poorly for me due to large memory consumption during the compilation process.
11. Make sure that ou can now execute syzkaller programs:
``` bash
cat socket.log
r0 = socket$inet_tcp(0x2, 0x1, 0x0)
- sudo ./syz-bin/syz-execprog -executor ./syz-bin/syz-executor -threaded=0 -collide=0 -procs=1 -nocgroups -nonetdev -nonetreset -notun -debug socket.log
+ sudo ./syz-bin/syz-execprog -executor ./syz-bin/syz-executor -threaded=0 -collide=0 -procs=1 -enable='' -debug socket.log
```
12. Setup the dwc2 USB gadget driver:
@@ -273,10 +273,12 @@ These instructions describe how to set this up on a Raspberry Pi Zero W, but any
$ sudo ./syz-bin/syz-execprog -executor ./syz-bin/syz-executor -threaded=0 -collide=0 -procs=1 -enable='' -debug usb.log
```
-18. Follow [this](https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md) to setup Wi-Fi hotspot.
+18. Steps 19 through 21 are optional. You may use a UART console and a normal USB cable instead of ssh and Zero Stem.
-19. Follow [this](https://www.raspberrypi.org/documentation/remote-access/ssh/) to enable ssh.
+19. Follow [this](https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md) to setup Wi-Fi hotspot.
-20. Optionally solder [Zero Stem](https://zerostem.io/) onto your Raspberry Pi Zero W.
+20. Follow [this](https://www.raspberrypi.org/documentation/remote-access/ssh/) to enable ssh.
+
+21. Optionally solder [Zero Stem](https://zerostem.io/) onto your Raspberry Pi Zero W.
21. You can now connect the board to an arbitrary USB port, wait for it to boot, join its Wi-Fi network, ssh onto it, and run arbitrary syzkaller USB programs.