Commit Graph

1576 Commits

Author SHA1 Message Date
Andrey Konovalov
26d265c811 docs, tools: add local link checker
This commit adds tools/check_links.py script, that checks that all local
links from documentation files are valid; fixes some of the invalid links
that we had; and makes travis buildbot check them as well.
2017-10-27 10:04:34 +02:00
Dmitry Vyukov
0a4d6e56b9 Update syzbot.md 2017-10-26 18:12:36 +02:00
Dmitry Vyukov
636a4dbf38 pkg/csource: add freebsd/netbsd support 2017-10-26 15:31:23 +02:00
Dmitry Vyukov
6fd57ceb7d vm/vmimpl: add netbsd console stub 2017-10-26 11:53:10 +02:00
Dmitry Vyukov
75cdcbe159 Update syzbot.md 2017-10-26 10:29:03 +02:00
Andrey Konovalov
0c732b810d Update setup_ubuntu-host_qemu-vm_x86-64-kernel.md 2017-10-26 00:03:50 +02:00
Dmitry Vyukov
83d9c30252 sys/netbsd: fix mmap signature
mmap syscall has 7 arguments (one unused padding)
2017-10-25 18:36:49 +02:00
Dmitry Vyukov
bc5423304f executor: small fixes for netbsd
RLIMIT_AS auses frequent random aborts on netbsd.
Reason unknown. Disable it for now.

Documentation says that __syscall should be used
for syscalls with 64-bit arguments. On amd64 most
syscalls have 64-bit arguments (incl mmap),
so switch to it.
2017-10-25 18:36:49 +02:00
Dmitry Vyukov
644a9f03f9 sys/freebsd: fix const name 2017-10-25 18:36:49 +02:00
Dmitry Vyukov
0038451914 pkg/report: add netbsd stub 2017-10-25 18:36:49 +02:00
Dmitry Vyukov
9bf63a7b2b Update README.md 2017-10-25 09:55:24 +02:00
Dmitry Vyukov
031174c310 executor: fix netbsd syscalls
executor_netbsd.cc was including syscalls_freebsd.h,
which completely messed up syscall numbers and names.
Include the right syscalls header.
2017-10-25 09:45:05 +02:00
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