diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 19:48:30 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 19:53:14 +0200 |
| commit | 78e3ad98f6120342ae56b9812c695637fc245c75 (patch) | |
| tree | 47b2d2f40d053d755c07f937b53daea99c282991 /executor/syscalls.h | |
| parent | 5ba57bfe16056e7657e29ca6e5ef5b1446f8fce6 (diff) | |
sys/test: add more tests
Add syz_errno syscall which sets errno to the argument,
and add a test with different errno values.
This mostly tests the testing infrastructure itself.
Add syz_compare syscall which compare two blobs,
this can be used for testing of argument memory layout.
Implement syz_mmap and fix Makefile to allow building syz-execprog for test OS.
Useful for debugging.
Update #603
Diffstat (limited to 'executor/syscalls.h')
| -rw-r--r-- | executor/syscalls.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/executor/syscalls.h b/executor/syscalls.h index a8845adb5..6f53b4490 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -11439,6 +11439,8 @@ const call_t syscalls[] = { #if GOARCH_32_fork_shmem const call_t syscalls[] = { + {"syz_compare", 0, (syscall_t)syz_compare}, + {"syz_errno", 0, (syscall_t)syz_errno}, {"syz_mmap", 0, (syscall_t)syz_mmap}, }; @@ -11446,6 +11448,8 @@ const call_t syscalls[] = { #if GOARCH_32_shmem const call_t syscalls[] = { + {"syz_compare", 0, (syscall_t)syz_compare}, + {"syz_errno", 0, (syscall_t)syz_errno}, {"syz_mmap", 0, (syscall_t)syz_mmap}, }; @@ -11472,6 +11476,8 @@ const call_t syscalls[] = { {"mutate8", 0}, {"serialize0", 0}, {"serialize1", 0}, + {"syz_compare", 0, (syscall_t)syz_compare}, + {"syz_errno", 0, (syscall_t)syz_errno}, {"syz_mmap", 0, (syscall_t)syz_mmap}, {"test", 0}, {"test$align0", 0}, @@ -11566,6 +11572,8 @@ const call_t syscalls[] = { #if GOARCH_64_fork const call_t syscalls[] = { + {"syz_compare", 0, (syscall_t)syz_compare}, + {"syz_errno", 0, (syscall_t)syz_errno}, {"syz_mmap", 0, (syscall_t)syz_mmap}, }; |
