kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ef37ab611d402b4b15cb481e6300578e93479bf4
parent b1a3f2b0f83afa0a54990503b3c639666dc36885
Author: Dennis Dillert <dennis.dillert@gmail.com>
Date:   Sun,  2 Apr 2023 19:54:29 +0200

Fix bug: Added syscalls for tasks example.

The tasks example stopped working on Linux (Ubuntu 22.04) due to the use of missing syscalls, which have been added in this fix. In addition, the definition files have been updated to include the newer clone3 system call (in the Linux kernel since 5.6) for new process and thread creation.

Diffstat:
examples/tasks/src/tasks.c | 2++
misc/linux/aarch64_syscall.h.in | 1+
misc/linux/arm_syscall.h.in | 1+
misc/linux/x86_64_syscall.h.in | 1+
4 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/examples/tasks/src/tasks.c b/examples/tasks/src/tasks.c @@ -55,6 +55,8 @@ KORE_SECCOMP_FILTER("tasks", KORE_SYSCALL_ALLOW(recvmsg), KORE_SYSCALL_ALLOW(sendmmsg), KORE_SYSCALL_ALLOW(getpeername), + KORE_SYSCALL_ALLOW(rseq), + KORE_SYSCALL_ALLOW(clone3), ); #endif diff --git a/misc/linux/aarch64_syscall.h.in b/misc/linux/aarch64_syscall.h.in @@ -287,4 +287,5 @@ #define __NR_fsconfig 431 #define __NR_fsmount 432 #define __NR_fspick 433 +#define __NR_clone3 435 diff --git a/misc/linux/arm_syscall.h.in b/misc/linux/arm_syscall.h.in @@ -387,6 +387,7 @@ #define __NR_fsconfig 431 #define __NR_fsmount 432 #define __NR_fspick 433 +#define __NR_clone3 435 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 diff --git a/misc/linux/x86_64_syscall.h.in b/misc/linux/x86_64_syscall.h.in @@ -343,4 +343,5 @@ #define __NR_fsconfig 431 #define __NR_fsmount 432 #define __NR_fspick 433 +#define __NR_clone3 435