aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_akaros.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-15 10:37:30 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-15 10:19:39 +0000
commitc6f10907c38ce49ddc321539f75aabf0a9ad6c71 (patch)
tree1277a1d64e2201b58b550ef0131222eaab9fcf73 /executor/executor_akaros.h
parent33fec5a3ec55bce7f1664e70e6f5ff8daf56886d (diff)
all: remove akaros support
Akaros support is unused, it was shutdown on syzbot for a while, the akaros development seems to be frozen for years as well. We have a bunch of hacks for Akaros since it supported only super old gcc and haven't supported Go. Remove it.
Diffstat (limited to 'executor/executor_akaros.h')
-rw-r--r--executor/executor_akaros.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/executor/executor_akaros.h b/executor/executor_akaros.h
deleted file mode 100644
index 82cae909d..000000000
--- a/executor/executor_akaros.h
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2017 syzkaller project authors. All rights reserved.
-// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <unistd.h>
-
-#include "nocover.h"
-
-static void os_init(int argc, char** argv, void* data, size_t data_size)
-{
- program_name = argv[0];
- if (argc == 2 && strcmp(argv[1], "child") == 0) {
- if (mmap(data, data_size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE | MAP_FIXED, -1, 0) != data)
- fail("mmap of data segment failed");
- child();
- }
-}
-
-static intptr_t execute_syscall(const call_t* c, intptr_t a[kMaxArgs])
-{
- return syscall(c->sys_nr, a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
-}