aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAlexander Egorenkov <Alexander.Egorenkov@ibm.com>2020-06-02 09:18:07 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-25 23:08:45 +0200
commitaea82c003a1826ebd9bf53194bb40fe911f9c23e (patch)
treeb553b2118a605c2df9e8ac6def779377f310e0ae /executor
parentf9147b0836f6cd4196dbc25509e8763435cc857a (diff)
sys/linux: first 64bit big-endian architecture s390x
* mmap syscall is special on Linux s390x because the parameters for this syscall are passed as a struct on user stack instead of registers. * Introduce the SyscallTrampolines table into targets.Target to address the above problem. * There is a bug in Linux kernel s390x which causes QEMU TCG to hang when KASAN is enabled. The bug has been fixed in the forthcoming Linux 5.8 version. Until then do not enable KASAN when using QEMU TCG, QEMU KVM shall have no problems with KASAN. Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index c4b3f052f..cb60ca9de 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -1655,6 +1655,8 @@ struct fs_image_segment {
#define sys_memfd_create 360
#elif GOARCH_mips64le
#define sys_memfd_create 314
+#elif GOARCH_s390x
+#define sys_memfd_create 350
#endif
static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, long segments)