syzkaller/prog
Dmitry Vyukov ecb386fe6f sys: check that target consts are defined
Currently when we get target consts with target.ConstMap["name"]
during target initialization, we just get 0 for missing consts.
This is error-prone as we can mis-type a const, or a const may
be undefined only on some archs (as we have common unix code
shared between several OSes).
Check that all the consts are actually defined.
The check detects several violations, to fix them:
1. move mremap to linux as it's only defined on linux
2. move S_IFMT to openbsd, as it's only defined and used on openbsd
3. define missing MAP_ANONYMOUS for freebsd and netbsd
4. fix extract for netbsd
2018-10-19 19:11:22 +01:00
..
alloc_test.go .gometalinter.json: enable gofmt 2018-07-31 12:16:54 +02:00
alloc.go prog: rework address allocation 2018-02-19 21:48:20 +01:00
analysis.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
any_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
any.go prog, pkg/compiler: support fmt type 2018-07-08 22:52:24 +02:00
checksum_test.go pkg/csource: fix handling of proc types 2017-12-22 11:59:46 +01:00
checksum.go prog: refactor SerializeForExec 2018-08-02 16:57:31 +02:00
clone.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
decl_test.go prog: more precise constructor calculation 2018-06-18 19:45:48 +02:00
decodeexec.go prog, pkg/compiler: support fmt type 2018-07-08 22:52:24 +02:00
encoding_test.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
encoding.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
encodingexec_test.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
encodingexec.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
export_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
generation.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
hints_test.go executor: overhaul 2018-07-24 12:04:27 +02:00
hints.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
minimization_test.go prog: sanitize calls after hints mutation 2018-07-12 12:40:30 +02:00
minimization.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
mutation_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
mutation.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
norace_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
parse_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
parse.go prog: remove default target and all global state 2017-09-15 16:02:37 +02:00
prio_test.go prog: fix corner case in normalizePrio 2018-08-30 21:44:00 -07:00
prio.go prog: fix corner case in normalizePrio 2018-08-30 21:44:00 -07:00
prog_test.go sys/openbsd: disable mknod sanitization as tests fail 2018-08-30 21:44:56 -07:00
prog.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
race_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
rand.go sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00
resources.go all: fix code formatting 2018-10-16 13:57:24 +02:00
size_test.go executor: overhaul 2018-07-24 12:04:27 +02:00
size.go all: fix gometalinter warnings 2018-03-08 18:48:26 +01:00
target.go sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
types.go sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00
validation.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00