<commit_before># Executing syzkaller programs

This page describes how to execute existing syzkaller programs for the purpose
of bug reproduction. This way you can replay a single program or a whole
execution log with several programs.

1. Setup Go toolchain (if you don't yet have it, you need version 1.13 or higher):
Download latest Go distribution from (https://golang.org/dl/). Unpack it to `$HOME/goroot`.
``` bash
export GOROOT=$HOME/goroot
export GOPATH=$HOME/gopath
```

2. Download syzkaller sources:
``` bash
go get -u -d github.com/google/syzkaller/prog
```

3. Build necessary syzkaller binaries:
``` bash
cd $GOPATH/src/github.com/google/syzkaller
make
```

4. Copy binaries and the program to test machine (substitute target `linux_amd64`
as necessary):
``` bash
scp -P 10022 -i stretch.img.key bin/linux_amd64/syz-execprog bin/linux_amd64/syz-executor program root@localhost:
```

5. Run the program on the test machine:<commit_msg>docs: set GO111MODULE=off to fix documentation compatibility with go v1.16+<commit_after># Executing syzkaller programs

This page describes how to execute existing syzkaller programs for the purpose
of bug reproduction. This way you can replay a single program or a whole
execution log with several programs.

1. Setup Go toolchain (if you don't yet have it, you need version 1.13 or higher):
Download latest Go distribution from (https://golang.org/dl/). Unpack it to `$HOME/goroot`.
``` bash
export GOROOT=$HOME/goroot
export GOPATH=$HOME/gopath
```

2. Download syzkaller sources:
``` bash
GO111MODULE=off go get -u -d github.com/google/syzkaller/prog
```

3. Build necessary syzkaller binaries:
``` bash
cd $GOPATH/src/github.com/google/syzkaller
make
```

4. Copy binaries and the program to test machine (substitute target `linux_amd64`
as necessary):
``` bash
scp -P 10022 -i stretch.img.key bin/linux_amd64/syz-execprog bin/linux_amd64/syz-executor program root@localhost:
```

5. Run the program on the test machine:
{'fraction_non_alphanumeric': 0.09675785207700101, 'fraction_numerical': 0.023809523809523808, 'mean_word_length': 4.642857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5432893', 'n_tokens_mistral': 671, 'n_tokens_neox': 609, 'n_words': 243}