Commit Graph

1714 Commits

Author SHA1 Message Date
Utkarsh Anand
3f955eba7f Lots of changes to sys/netbsd (#397)
* Lots of changes to sys/netbsd:
- Removed a few syscalls that did not have proper constants defined.
- Autogenerated *.const files.
- Removed a few types like uid and gid, that were not available.
- Ran make generate

* Few changes for NetBSD support:
- Added sys/netbsd/init.go
- Added netbsd to sys/sys.go

* Fix order in sys/sys.go

* Update documentation for NetBSD
2017-10-25 09:27:47 +02:00
Dmitry Vyukov
88999972bf executor: fix mkdtemp return value check
mkdtemp return NULL on failure.
2017-10-25 07:44:06 +02:00
Andrey Konovalov
3d7d860fba Update found_bugs_usb.md 2017-10-24 17:03:46 +02:00
Dmitry Vyukov
01191dcf5d Update syzbot.md 2017-10-24 13:30:53 +02:00
Andrey Konovalov
7a28007ebe Update found_bugs_usb.md 2017-10-24 13:20:00 +02:00
Dmitry Vyukov
5009f8ec62 Update syzbot.md 2017-10-24 13:17:14 +02:00
Utkarsh Anand
3b95a1e305 Added 4 files containing syscall descriptions (#396)
* Added 4 files containing syscall descriptions
- Initial additions for peer review.

* Removed a flag:
- Because it was failing to compile.
2017-10-24 11:54:37 +02:00
Andrey Konovalov
92f543f08a Update found_bugs_usb.md 2017-10-23 16:43:19 +02:00
Utkarsh Anand
9a70df4192 Added documentation for NetBSD.
- Added a new file that documents the image preparation and running instructions for NetBSD.
2017-10-23 16:14:46 +02:00
Andrey Konovalov
afeb98ca65 Update found_bugs_usb.md 2017-10-23 13:25:21 +02:00
Dmitry Vyukov
f6a5463e58 Makefile: build netbsd binaries so that we don't regress 2017-10-23 10:19:56 +02:00
Dmitry Vyukov
da63ec6526 vm/qemu: support netbsd 2017-10-23 10:19:38 +02:00
Dmitry Vyukov
e729550825 all: basic building on netbsd
This just makes make TARGETOS=netbsd succeed.
We don't yet have prog target for netbsd.
2017-10-23 10:10:05 +02:00
Dmitry Vyukov
632b86c938 dashboard/app: better errors from bug update command
Provide better errors from bug update command.
In particular, distinguish between bad updates and internal errors.
Also better messages.
Allow duping onto closed bugs.
Don't allow unduping from closed bugs.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
8fa0c867d4 syz-fuzzer: generates hints only for the call that gave new coverage
During smashing we know what call gave new coverage,
so we can concentrate just on it.
This helps to reduce amount of hints generated (we have too many of them).
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
5044885ca2 prog: add a TODO for hints 2017-10-23 09:59:39 +02:00
Dmitry Vyukov
54ae9c6db3 tools/syz-execprog: print total number of comps/hints 2017-10-23 09:59:39 +02:00
Dmitry Vyukov
4f9fc95501 prog: fix bugs in hints generation
Add a random hints test and fix bugs it uncovers.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
a3789f831f syz-fuzzer: fix crash during hints processing
info can be nil on hard executor failures
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
baecf7a955 syz-fuzzer: make -v=1 logging more useful
We currently print programs with -v=1, this leads to too verbose output.
This was used during syzkaller bootstrapping and is not so useful anymore.
Don't print programs with -v=1. Instead give more insignt into what fuzzer
is doing.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
b71450d9fb executor: prevent executor from messing with output region
When comparisons are enabled fuzzer somehow manages to discover
the output region and corrupt it. It seems to fetch the address
from some memory operations (mmap/munmap).

Don't leak the output region address.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
3c6fe80395 syz-fuzzer: send hints/seeds stats to manager 2017-10-23 09:59:39 +02:00
Dmitry Vyukov
6755f62592 syz-fuzzer: fix manager polling
We need to always poll manager to send stats/maxsignal,
we just need not request candidates if we have plenty of work.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
9b5612df77 syz-fuzzer: fix detection of hints
Global compsSupported is shadowed by the local var,
so we never have hints enabled.
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
afa9178d57 pkg/ipc: fix reading comp hints
if/else branches are intermixed
2017-10-23 09:59:39 +02:00
Dmitry Vyukov
ab829b1b0b pkg/report: more linux spinlock oops messages 2017-10-22 14:30:13 +02:00
LeadroyaL
4d9c071338 use absolute link 2017-10-20 10:27:24 +02:00
LeadroyaL
534e07edeb docs: fix configuration documentation 2017-10-20 10:27:24 +02:00
Dmitry Vyukov
355f57c5fb Update freebsd.md 2017-10-19 14:34:48 +02:00
Dmitry Vyukov
b8d21896b6 Delete issue_template.md 2017-10-19 14:27:44 +02:00
Dmitry Vyukov
d1fdae0c34 Create issue_template.txt 2017-10-19 14:27:36 +02:00
Dmitry Vyukov
f7e3d40e6f Update freebsd.md 2017-10-19 13:31:40 +02:00
Dmitry Vyukov
d629e2b7fe Update freebsd.md 2017-10-19 13:28:49 +02:00
Andrey Konovalov
10c53cfcdb Update found_bugs_usb.md 2017-10-19 13:13:56 +02:00
Dmitry Vyukov
3704c60135 executor: fix build breakages due to doexit
Some standard libraries contain "using ::exit;",
which breaks with the current redefinition of exit.
2017-10-19 11:06:05 +02:00
Dmitry Vyukov
f26811f080 pkg/ast: fix TestParseAll 2017-10-19 10:45:27 +02:00
Dmitry Vyukov
fe864987bd syz-manager: pass kernel object dir to report.NewReporter 2017-10-18 18:19:01 +02:00
Dmitry Vyukov
6a4810dd45 pkg/report: strip unnecessary info from "workqueue lockup" crashes 2017-10-18 16:56:05 +02:00
Dmitry Vyukov
441d64d9a5 syz-manager/mgrconfig: fix selection of executor binary
We currently select executor for vm arch, need to select target arch.
This breaks linux/amd64/386 configuration where we select amd64 instead of 386.
2017-10-18 16:49:25 +02:00
Dmitry Vyukov
296be8cc8d pkg/ipc: move fallback coverage into executor
It seems to explode linux corpus.
So make it freebsd-specific.
2017-10-18 16:49:25 +02:00
Andrey Konovalov
5776783af1 Update found_bugs_usb.md 2017-10-18 14:16:38 +02:00
Dmitry Vyukov
0c3dda40b8 Update contributing.md 2017-10-18 12:31:05 +02:00
Dmitry Vyukov
7ba02b7e21 Update pull_request_template.txt 2017-10-18 12:26:12 +02:00
Dmitry Vyukov
21c4900972 Update pull_request_template.txt 2017-10-18 12:25:15 +02:00
Dmitry Vyukov
1ba1282960 Create pull_request_template.txt 2017-10-18 12:23:12 +02:00
Dmitry Vyukov
7fdc7eba93 Create issue_template.md 2017-10-18 12:14:53 +02:00
Dmitry Vyukov
83d9b33c5b Update contributing.md 2017-10-18 12:07:21 +02:00
Dmitry Vyukov
f89294761c executor: use forkserver for freebsd
Use forkserver and shmem for freebsd.
This greatly improves speed.
Also introduce fallback coverage signal based
on unique (syscall+errno) pairs.
2017-10-18 12:01:24 +02:00
Dmitry Vyukov
6368c469a5 pkg/report: support freebsd 2017-10-18 12:01:24 +02:00
Dmitry Vyukov
85c802e4cf pkg/report: support multiple OSes
Introduce report.Reporter interface.
Add an implementation per-OS.
Make users be explicit about OS they are testing.
2017-10-18 12:01:24 +02:00