aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-09-28 20:06:42 +0200
committerDmitry Vyukov <dvyukov@google.com>2016-09-28 20:06:42 +0200
commit11a690d2752b590cadebe982ae4b66bf5c0cccef (patch)
treee2d22e23f0cc7d736807b0d1c156772577b4bf57 /executor
parentc2918417cbe2da7ee83deb316c3e8163f14b01a0 (diff)
sys, prog: add tests for description parsing and serialization
Add sys/test.txt file with description of syscalls for tests. These descriptions can be used to ensure that we can parse everything we clain we can parse. Use these descriptions to write several tests for exec serialization (one test shows that alignment handling is currently incorrect). These test descriptions can also be used to write e.g. mutation tests. Update #78
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h
index 7d896373f..52f2aeb9b 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -142,6 +142,8 @@ static uintptr_t execute_syscall(int nr, uintptr_t a0, uintptr_t a1, uintptr_t a
switch (nr) {
default:
return syscall(nr, a0, a1, a2, a3, a4, a5);
+ case __NR_syz_test:
+ return 0;
case __NR_syz_open_dev:
return syz_open_dev(a0, a1, a2);
case __NR_syz_open_pts: