Sven Schnelle
873e5a763d
s390/ptrace: fix setting syscall number
...
When strace wants to update the syscall number, it sets GPR2
to the desired number and updates the GPR via PTRACE_SETREGSET.
It doesn't update regs->int_code which would cause the old syscall
executed on syscall restart. As we cannot change the ptrace ABI and
don't have a field for the interruption code, check whether the tracee
is in a syscall and the last instruction was svc. In that case assume
that the tracer wants to update the syscall number and copy the GPR2
value to regs->int_code.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com >
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com >
2020-06-16 13:44:04 +02:00
..
2020-05-14 16:44:25 +02:00
2020-03-25 11:50:48 +01:00
2020-03-25 11:50:48 +01:00
2018-03-28 08:38:24 +02:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-09-03 13:53:56 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-01-18 09:33:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-27 09:36:28 -05:00
2017-11-02 11:10:55 +01:00
2019-03-12 10:04:01 -07:00
2020-04-27 02:07:40 -04:00
2020-04-22 16:20:55 +02:00
2019-11-12 11:24:10 +01:00
2020-06-09 09:39:13 -07:00
2019-08-29 15:34:58 +02:00
2019-12-11 19:53:24 +01:00
2018-08-23 18:48:43 -07:00
2020-02-27 19:44:40 +01:00
2020-06-16 13:44:04 +02:00
2019-04-17 10:40:57 +02:00
2020-05-20 10:22:49 +02:00
2017-11-13 11:47:01 -08:00
2019-11-30 10:52:45 +01:00
2020-05-28 12:21:54 +02:00
2019-04-29 10:44:03 +02:00
2019-04-26 12:34:05 +02:00
2020-05-06 15:19:35 +02:00
2020-03-11 14:18:44 +01:00
2019-06-07 10:10:10 +02:00
2019-01-28 15:58:55 +01:00
2019-09-10 13:27:51 +01:00
2019-08-19 21:54:15 -07:00
2020-01-30 13:07:55 +01:00
2017-11-24 15:37:12 +01:00
2020-05-14 23:21:37 +02:00
2020-05-20 10:13:27 +02:00
2020-06-09 09:39:13 -07:00
2020-05-06 14:59:20 +02:00
2020-01-30 13:07:55 +01:00
2020-05-08 00:12:43 +02:00
2020-05-28 12:21:54 +02:00
2019-05-06 16:42:54 -07:00
2019-04-11 13:36:53 +02:00
2017-11-02 11:10:55 +01:00
2019-02-22 09:19:55 +01:00
2019-11-20 17:16:01 +01:00
2020-03-10 15:16:25 +01:00
2019-11-20 17:16:01 +01:00
2020-03-25 12:39:37 +01:00
2019-10-31 17:20:54 +01:00
2018-07-02 11:24:54 +02:00
2020-02-27 19:44:40 +01:00
2020-03-10 15:16:25 +01:00
2020-03-23 13:41:55 +01:00
2020-06-16 13:44:04 +02:00
2019-05-02 13:54:11 +02:00
2019-05-02 13:54:11 +02:00
2018-02-05 07:34:50 +01:00
2020-06-08 12:05:31 -07:00
2020-03-25 12:39:37 +01:00
2020-06-08 12:05:31 -07:00
2019-11-30 10:52:48 +01:00
2018-10-15 12:17:00 +02:00
2019-01-18 09:33:19 +01:00
2019-01-28 15:58:55 +01:00
2019-10-31 17:20:52 +01:00
2020-04-27 02:07:40 -04:00
2020-04-22 16:20:55 +02:00
2020-03-11 14:18:44 +01:00
2019-12-18 23:29:26 +01:00
2018-04-23 07:57:16 +02:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-11-04 15:57:41 +01:00
2019-10-09 12:39:25 +02:00