Cristian-Bogdan SIRB
5aa5ce53bc
Kernel: Fix the gettid syscall
...
syscall_handler was not actually updating the value in regs->eax, so the
gettid() was always returning 85: the value of regs->eax was not
actually updated, and it remained the one from Userland (the value of
SC_gettid).
The syscall_handler was modified to actually get a pointer to
RegisterState, so any changes to it will actually be saved.
NOTE: This was actually more of a compiler optimization:
On the SC_gettid flow, we saved in regs.eax the return value of
sys$gettid(), but the compiler discarded it, since it followed a return.
On a normal flow, the value of regs.eax was reused in
tracer->did_syscall, so the compiler actually updated the value.
2020-02-27 10:58:43 +01:00
..
2020-02-24 11:27:03 +01:00
2020-02-24 11:27:03 +01:00
2020-02-24 11:27:03 +01:00
2020-02-26 15:25:53 +01:00
2020-02-26 15:25:53 +01:00
2020-02-24 11:27:03 +01:00
2020-02-25 14:52:35 +01:00
2020-02-24 11:27:03 +01:00
2020-02-26 21:33:14 +01:00
2020-02-25 14:52:35 +01:00
2020-02-10 12:07:48 +01:00
2020-02-02 00:20:41 +01:00
2020-02-10 10:46:25 +01:00
2020-02-23 22:03:03 +01:00
2020-02-09 19:38:17 +01:00
2020-01-18 09:45:54 +01:00
2020-01-13 11:06:42 +01:00
2020-02-16 01:27:42 +01:00
2020-02-16 01:27:42 +01:00
2020-01-18 09:45:54 +01:00
2020-02-16 02:15:33 +01:00
2020-02-02 00:20:41 +01:00
2020-02-02 00:20:41 +01:00
2020-02-02 00:20:41 +01:00
2020-02-24 11:27:03 +01:00
2020-02-23 11:10:52 +01:00
2020-02-16 01:27:42 +01:00
2020-02-16 01:27:42 +01:00
2020-01-18 09:45:54 +01:00
2020-01-31 13:13:04 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-02-16 01:27:42 +01:00
2020-02-17 15:04:27 +01:00
2020-02-16 01:27:42 +01:00
2020-01-17 22:34:26 +01:00
2020-02-26 13:06:40 +01:00
2020-02-26 13:06:40 +01:00
2020-02-10 10:46:25 +01:00
2020-02-24 11:27:03 +01:00
2020-02-10 10:46:25 +01:00
2020-02-16 01:27:42 +01:00
2020-02-04 19:11:52 +01:00
2020-01-18 09:45:54 +01:00
2020-02-22 10:09:54 +01:00
2020-02-16 01:27:42 +01:00
2020-02-27 10:42:31 +01:00
2020-02-26 13:06:40 +01:00
2020-02-16 01:27:42 +01:00
2020-02-16 01:27:42 +01:00
2020-02-27 10:41:32 +01:00
2020-02-22 10:54:50 +01:00
2020-02-16 01:27:42 +01:00
2020-02-16 01:27:42 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-02-10 10:46:25 +01:00
2020-02-26 13:06:40 +01:00
2020-02-17 15:04:27 +01:00
2020-02-25 14:52:35 +01:00
2020-02-24 13:32:45 +01:00
2020-02-10 10:46:25 +01:00
2020-02-27 10:58:43 +01:00
2020-02-16 12:55:56 +01:00
2020-02-17 15:04:27 +01:00
2020-02-27 10:09:44 +01:00
2020-02-18 13:44:27 +01:00
2020-02-16 01:27:42 +01:00
2020-02-24 11:27:03 +01:00
2020-02-20 06:57:01 +01:00
2020-02-26 13:06:40 +01:00
2020-02-26 13:06:40 +01:00