Eric W. Biederman
efc463adbc
signal: Simplify tracehook_report_syscall_exit
...
Replace user_single_step_siginfo with user_single_step_report
that allocates siginfo structure on the stack and sends it.
This allows tracehook_report_syscall_exit to become a simple
if statement that calls user_single_step_report or ptrace_report_syscall
depending on the value of step.
Update the default helper function now called user_single_step_report
to explicitly set si_code to SI_USER and to set si_uid and si_pid to 0.
The default helper has always been doing this (using memset) but it
was far from obvious.
The powerpc helper can now just call force_sig_fault.
The x86 helper can now just call send_sigtrap.
Unfortunately the default implementation of user_single_step_report
can not use force_sig_fault as it does not use a SIGTRAP si_code.
So it has to carefully setup the siginfo and use use force_sig_info.
The net result is code that is easier to understand and simpler
to maintain.
Ref: 85ec7fd9f8
("ptrace: introduce user_single_step_siginfo() helper")
Reviewed-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com >
2018-09-19 15:45:42 +02:00
..
2018-06-21 12:33:08 +02:00
2018-07-18 01:18:05 +09:00
2017-12-04 15:01:09 +11:00
2018-06-03 21:19:40 +10:00
2018-07-16 11:37:21 +10:00
2017-11-02 11:10:55 +01:00
2018-05-25 12:04:44 +10:00
2017-08-23 22:27:04 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-30 22:48:17 +10:00
2018-03-24 00:38:51 +11:00
2018-05-18 16:05:15 +10:00
2018-07-19 14:37:57 +10:00
2016-12-24 11:46:01 -08:00
2018-07-30 22:47:53 +10:00
2017-04-13 23:34:33 +10:00
2018-01-10 16:41:14 +01:00
2018-01-15 09:35:39 +01:00
2018-07-30 15:58:01 -05:00
2018-07-19 14:37:57 +10:00
2018-03-27 23:44:58 +11:00
2017-09-21 14:56:00 +10:00
2018-06-03 20:43:41 +10:00
2018-03-27 23:44:58 +11:00
2018-06-03 20:43:39 +10:00
2018-01-27 20:02:52 +11:00
2018-07-02 23:54:26 +10:00
2018-08-08 00:32:24 +10:00
2018-08-08 00:32:26 +10:00
2016-08-07 23:50:09 -04:00
2018-07-30 22:48:17 +10:00
2018-08-08 00:32:27 +10:00
2018-08-20 20:19:54 +10:00
2018-07-30 22:48:17 +10:00
2017-11-02 11:10:55 +01:00
2018-07-30 22:48:18 +10:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:13 +10:00
2016-08-07 23:50:09 -04:00
2018-07-30 22:48:17 +10:00
2017-11-02 11:10:55 +01:00
2018-07-30 22:48:17 +10:00
2018-06-26 09:07:55 +02:00
2018-07-30 22:48:17 +10:00
2018-07-24 22:03:14 +10:00
2018-08-13 15:59:06 +10:00
2018-07-30 22:48:17 +10:00
2018-08-14 15:36:02 +10:00
2016-12-20 09:48:44 -08:00
2017-08-23 22:27:04 +10:00
2018-04-05 14:59:26 +10:00
2017-09-01 16:42:54 +10:00
2018-08-07 21:49:24 +10:00
2017-08-23 22:27:04 +10:00
2015-08-03 11:34:12 +02:00
2018-04-13 17:10:28 -07:00
2017-08-10 23:32:12 +10:00
2018-06-21 12:33:19 +02:00
2018-06-21 12:33:19 +02:00
2018-07-30 22:48:16 +10:00
2018-05-17 14:12:40 +10:00
2018-07-30 22:48:17 +10:00
2017-11-02 11:10:55 +01:00
2018-05-10 23:25:08 +10:00
2018-08-10 22:12:36 +10:00
2018-07-30 22:47:53 +10:00
2018-08-08 00:32:36 +10:00
2018-08-10 22:12:39 +10:00
2018-02-02 10:01:04 -08:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:17 +10:00
2018-06-04 00:39:17 +10:00
2018-05-25 12:04:38 +10:00
2018-06-11 09:16:29 +09:00
2018-08-08 00:32:23 +10:00
2017-12-11 13:03:35 +11:00
2015-06-02 11:47:45 +10:00
2018-06-03 20:40:24 +10:00
2017-08-23 22:27:04 +10:00
2018-01-19 22:37:01 +11:00
2017-11-12 23:51:41 +11:00
2018-03-31 09:09:36 +11:00
2018-06-25 23:21:13 +09:00
2018-06-25 23:21:13 +09:00
2017-12-11 13:03:35 +11:00
2018-02-06 09:59:40 -08:00
2018-08-17 11:32:50 -07:00
2017-12-18 23:05:52 -06:00
2018-07-30 22:48:16 +10:00
2018-01-22 05:48:33 +11:00
2018-08-08 00:32:30 +10:00
2018-04-04 16:59:50 +10:00
2018-08-10 22:12:38 +10:00
2017-11-02 11:10:55 +01:00
2018-07-30 22:48:17 +10:00
2016-12-24 11:46:01 -08:00
2018-06-03 20:43:41 +10:00
2017-08-31 14:26:47 +10:00
2018-01-22 05:48:33 +11:00
2017-08-31 14:26:40 +10:00
2018-06-07 10:23:33 -07:00
2018-06-03 20:43:33 +10:00
2018-06-25 23:21:13 +09:00
2018-06-12 16:19:22 -07:00
2018-08-08 00:32:26 +10:00
2018-08-10 22:12:38 +10:00
2018-07-30 22:48:17 +10:00
2018-08-08 00:32:23 +10:00
2018-05-25 12:04:43 +10:00
2018-06-25 23:21:13 +09:00
2018-06-25 23:21:13 +09:00
2018-06-22 19:04:22 +02:00
2018-05-10 23:25:13 +10:00
2017-11-02 11:10:55 +01:00
2018-08-21 16:01:59 +10:00
2018-06-19 23:03:50 +10:00
2018-07-30 22:48:17 +10:00
2017-03-02 08:42:30 +01:00
2018-07-30 22:48:17 +10:00
2017-11-02 11:10:55 +01:00
2017-03-20 19:02:49 +11:00
2018-05-10 23:25:15 +10:00
2018-06-25 23:21:13 +09:00
2018-03-31 09:09:36 +11:00
2018-05-10 23:25:14 +10:00
2018-05-10 23:25:16 +10:00
2018-05-10 23:25:14 +10:00
2018-05-25 12:04:44 +10:00
2018-06-04 00:39:20 +10:00
2018-07-30 22:48:17 +10:00
2018-09-19 15:45:42 +02:00
2015-04-07 17:15:13 +10:00
2017-08-24 16:19:21 +10:00
2018-07-30 22:47:54 +10:00
2018-05-25 12:04:46 +10:00
2018-07-30 22:48:16 +10:00
2018-08-08 00:32:23 +10:00
2018-07-24 22:03:14 +10:00