diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-03-28 23:46:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-28 23:46:12 +0100 |
| commit | 83196a14885467a043666882db7d8120bb127b61 (patch) | |
| tree | e9c42a4e58397fd7a959e42085349dc9063cf362 | |
| parent | 10f7fff0851ab8327b360a93948d95d38cb1e168 (diff) | |
| parent | 6a62cc0b80d490e20587c6d9ff6f1b782ee9082c (diff) | |
| download | miasm-83196a14885467a043666882db7d8120bb127b61.tar.gz miasm-83196a14885467a043666882db7d8120bb127b61.zip | |
Merge pull request #1166 from serpilliere/fix_syscall_linux
Fix syscall linux
| -rw-r--r-- | miasm/os_dep/linux/syscall.py | 5 |
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 |