about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-19 20:14:58 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-20 09:46:17 +0000
commit0b8452691409ad1b6abbfea29bb2f3aa95ee3b20 (patch)
tree15442d6a8314a136fb1ee060a597244e134fdb64
parent1740b1f01faa59a2bc1883554bf47f0c24d23d0f (diff)
downloadfocaccia-0b8452691409ad1b6abbfea29bb2f3aa95ee3b20.tar.gz
focaccia-0b8452691409ad1b6abbfea29bb2f3aa95ee3b20.zip
Implement preliminary support for clone, clone3, fork and vfork
-rw-r--r--src/focaccia/qemu/x86.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py
index 7d11c0e..8907da3 100644
--- a/src/focaccia/qemu/x86.py
+++ b/src/focaccia/qemu/x86.py
@@ -10,5 +10,8 @@ emulated_system_calls = {
 
 passthrough_system_calls = {
     56:  SyscallInfo('clone', patchup_address_registers=['rdx', 'r10'], creates_thread=True),
+    57:  SyscallInfo('fork', creates_thread=True),
+    58:  SyscallInfo('vfork', creates_thread=True),
+    435:  SyscallInfo('clone3', patchup_address_registers=['rdi'], creates_thread=True),
 }