Eric W. Biederman
f71dd7dc2d
signal/ptrace: Add force_sig_ptrace_errno_trap and use it where needed
...
There are so many places that build struct siginfo by hand that at
least one of them is bound to get it wrong. A handful of cases in the
kernel arguably did just that when using the errno field of siginfo to
pass no errno values to userspace. The usage is limited to a single
si_code so at least does not mess up anything else.
Encapsulate this questionable pattern in a helper function so
that the userspace ABI is preserved.
Update all of the places that use this pattern to use the new helper
function.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-01-22 19:07:11 -06:00
..
2017-11-16 12:47:46 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 12:42:35 +02:00
2017-11-16 13:00:24 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01: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
2016-06-14 13:58:26 +10:00
2016-03-04 23:44:51 -06:00
2017-12-06 23:32:43 +11:00
2017-11-15 14:25:42 +11:00
2016-12-24 11:46:01 -08:00
2017-05-08 17:15:11 -07:00
2017-04-13 23:34:33 +10:00
2017-11-02 11:10:55 +01:00
2017-01-24 12:23:35 -05:00
2017-06-28 06:54:55 -07:00
2017-11-22 23:17:01 +11:00
2016-07-08 22:09:50 +10:00
2017-09-21 14:56:00 +10:00
2017-11-16 12:47:46 -08:00
2016-11-22 11:57:07 +11:00
2017-11-06 17:40:00 +11:00
2017-08-31 14:26:09 +10:00
2017-09-26 11:19:07 +10:00
2017-08-15 22:55:53 +10:00
2017-11-06 16:48:14 +11:00
2016-08-07 23:50:09 -04:00
2014-06-10 18:54:22 -07:00
2017-04-30 01:05:18 -05:00
2017-11-16 12:47:46 -08:00
2017-12-05 23:21:46 +11:00
2016-10-14 14:26:58 -07:00
2017-11-02 11:10:55 +01:00
2017-08-15 22:55:55 +10:00
2017-11-13 22:12:48 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-11-10 22:00:54 +11:00
2017-11-02 11:10:55 +01:00
2016-08-07 23:50:09 -04:00
2017-02-18 21:37:14 +11:00
2014-04-23 10:05:16 +10:00
2017-11-15 14:25:42 +11:00
2015-06-02 21:37:19 -05:00
2014-04-23 10:05:16 +10:00
2013-07-01 11:10:35 +10:00
2016-12-20 09:48:44 -08:00
2017-08-23 22:27:04 +10:00
2013-08-14 14:58:08 +10:00
2017-11-02 11:10:55 +01:00
2017-09-01 16:42:54 +10:00
2017-11-06 16:48:07 +11:00
2017-08-23 22:27:04 +10:00
2015-08-03 11:34:12 +02:00
2016-12-20 09:48:44 -08:00
2017-08-10 23:32:12 +10:00
2017-11-12 23:51:41 +11:00
2017-11-12 23:51:43 +11:00
2017-08-31 14:26:00 +10:00
2017-08-15 21:04:32 +10:00
2017-11-02 11:10:55 +01:00
2017-11-06 16:48:14 +11:00
2017-11-07 15:35:57 +01:00
2016-05-11 21:54:04 +10:00
2017-11-16 12:47:46 -08:00
2017-11-10 20:55:03 +11:00
2017-10-16 23:12:02 +11:00
2017-06-02 19:20:43 +10:00
2017-11-24 16:49:37 +11:00
2016-08-07 23:50:09 -04:00
2016-03-07 14:53:53 +11:00
2017-10-13 19:41:57 +11:00
2016-12-24 11:46:01 -08:00
2015-06-02 11:47:45 +10:00
2017-06-27 17:02:50 -07:00
2017-08-23 22:27:04 +10:00
2017-08-24 16:19:01 +10:00
2017-11-12 23:51:41 +11:00
2017-11-13 23:35:43 +11:00
2017-08-23 22:27:04 +10:00
2017-11-06 16:48:14 +11:00
2017-08-31 14:26:12 +10:00
2017-08-23 22:27:04 +10:00
2017-10-18 10:04:56 +02:00
2016-05-11 21:54:26 +10:00
2016-12-24 11:46:01 -08:00
2018-01-22 19:07:11 -06:00
2014-09-25 23:14:46 +10:00
2017-09-02 21:02:38 +10:00
2017-11-02 11:10:55 +01:00
2017-11-06 16:48:14 +11:00
2016-12-24 11:46:01 -08:00
2017-09-20 13:30:09 +10:00
2013-07-01 11:10:34 +10:00
2017-08-31 14:26:47 +10:00
2016-12-24 11:46:01 -08:00
2017-08-31 14:26:40 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-18 15:15:07 +02:00
2017-06-23 09:32:11 +02:00
2017-09-01 16:42:46 +10:00
2017-11-10 22:11:35 +11:00
2017-12-05 23:21:46 +11:00
2017-11-10 22:11:35 +11:00
2018-01-15 19:56:20 -06:00
2017-11-16 12:47:46 -08:00
2017-11-13 10:53:05 +11:00
2016-10-04 20:33:16 +11:00
2017-11-02 11:10:55 +01:00
2017-08-31 18:16:08 +10:00
2017-03-28 14:43:59 +11:00
2014-10-09 22:26:04 -04:00
2017-11-02 11:10:55 +01:00
2017-03-02 08:42:30 +01:00
2017-08-10 22:29:41 +10:00
2017-11-02 11:10:55 +01:00
2017-03-20 19:02:49 +11:00
2016-12-24 11:46:01 -08:00
2017-04-12 22:32:43 +10:00
2017-11-10 22:11:35 +11:00
2015-11-26 22:11:17 +11:00
2015-11-26 22:11:17 +11:00
2017-08-31 14:26:47 +10:00
2017-11-21 15:57:07 -08:00
2017-07-02 20:40:24 +10:00
2017-11-16 12:47:46 -08:00
2018-01-22 19:07:10 -06:00
2014-11-12 13:47:20 +11:00
2015-04-07 17:15:13 +10:00
2017-08-24 16:19:21 +10:00
2017-02-06 19:46:04 +11:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 12:47:46 -08:00