about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-03-28 22:44:57 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-03-28 22:44:57 +0100
commit6a62cc0b80d490e20587c6d9ff6f1b782ee9082c (patch)
treee9c42a4e58397fd7a959e42085349dc9063cf362
parent10f7fff0851ab8327b360a93948d95d38cb1e168 (diff)
downloadmiasm-6a62cc0b80d490e20587c6d9ff6f1b782ee9082c.tar.gz
miasm-6a62cc0b80d490e20587c6d9ff6f1b782ee9082c.zip
Fix syscall linux
-rw-r--r--miasm/os_dep/linux/syscall.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/miasm/os_dep/linux/syscall.py b/miasm/os_dep/linux/syscall.py
index 3b612f74..c45f4b22 100644
--- a/miasm/os_dep/linux/syscall.py
+++ b/miasm/os_dep/linux/syscall.py
@@ -985,10 +985,6 @@ def syscall_x86_64_exception_handler(linux_env, syscall_callbacks, jitter):
     @linux_env: LinuxEnvironment_x86_64 instance
     @syscall_callbacks: syscall number -> func(jitter, linux_env)
     """
-    # Ensure the jitter has break on a SYSCALL
-    cur_instr = jitter.jit.mdis.dis_instr(jitter.pc)
-    if cur_instr.name != "SYSCALL":
-        return True
 
     # Dispatch to SYSCALL stub
     syscall_number = jitter.cpu.RAX
@@ -1003,7 +999,6 @@ def syscall_x86_64_exception_handler(linux_env, syscall_callbacks, jitter):
     # Clean exception and move pc to the next instruction, to let the jitter
     # continue
     jitter.cpu.set_exception(jitter.cpu.get_exception() ^ EXCEPT_SYSCALL)
-    jitter.pc += cur_instr.l
     return True