aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-10 11:06:30 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-11 05:18:24 +0000
commit5f02070655b3c1f2ab50a82fd5f466aaeb7af44a (patch)
tree6cd193271272ef3357a2be86af98d1edf7889b73 /sys
parentb7d9eb04f4c510213e29f46db7eab4ec5c72a4ae (diff)
executor: add end-to-end coverage/signal/comparisons test
Diffstat (limited to 'sys')
-rw-r--r--sys/targets/targets.go4
-rw-r--r--sys/test/exec.txt3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 4e3e37e66..6cf5d8b9e 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -225,7 +225,7 @@ var List = map[string]map[string]*Target{
PtrSize: 4,
PageSize: 8 << 10,
Int64Alignment: 4,
- CFlags: []string{"-static"},
+ CFlags: []string{"-m32", "-static"},
osCommon: osCommon{
SyscallNumbers: true,
Int64SyscallArgs: true,
@@ -236,7 +236,7 @@ var List = map[string]map[string]*Target{
TestArch32Fork: {
PtrSize: 4,
PageSize: 4 << 10,
- CFlags: []string{"-static-pie"},
+ CFlags: []string{"-m32", "-static-pie"},
osCommon: osCommon{
SyscallNumbers: true,
Int64SyscallArgs: true,
diff --git a/sys/test/exec.txt b/sys/test/exec.txt
index 67c0c70c0..4b43b57b0 100644
--- a/sys/test/exec.txt
+++ b/sys/test/exec.txt
@@ -11,6 +11,9 @@ syz_compare_int$3(n const[3], v0 intptr, v1 intptr, v2 intptr)
syz_compare_int$4(n const[4], v0 intptr, v1 intptr, v2 intptr, v3 intptr)
syz_compare_zlib(data ptr[in, array[int8]], size bytesize[data], zdata ptr[in, compressed_image], zsize bytesize[zdata]) (no_generate, no_minimize)
+# Copies the data into KCOV buffer verbatim and sets assumed kernel bitness.
+syz_inject_cover(is64 bool8, ptr ptr[in, array[int8]], size bytesize[ptr])
+
compare_data [
align0 align0
bf0 syz_bf_struct0