syzkaller/sys/netbsd
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
..
gen sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
fs_amd64.const Lots of changes to sys/netbsd (#397) 2017-10-25 09:27:47 +02:00
fs.txt sys: mark output resources as opt 2018-06-18 19:45:47 +02:00
init.go sys/netbsd: use posix helper instead of copy-pasted code 2018-08-25 09:05:51 -07:00
ipc_amd64.const Add two new syscalls shmctl and msgctl 2017-10-30 18:57:38 +01:00
ipc.txt Added a few more syscall descriptions, consts 2017-10-30 18:57:38 +01:00
mm_amd64.const sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
mm.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
socket_amd64.const Added a few more syscall descriptions, consts 2017-10-30 18:57:38 +01:00
socket_inet6_amd64.const Added a few more syscall descriptions, consts 2017-10-30 18:57:38 +01:00
socket_inet6.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
socket_inet_amd64.const Added a few more syscall descriptions, consts 2017-10-30 18:57:38 +01:00
socket_inet.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
socket_unix_amd64.const Added a few more syscall descriptions, consts 2017-10-30 18:57:38 +01:00
socket_unix.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
socket.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
sys_amd64.const sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
sys.txt sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00