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
..
2013-10-09 16:54:10 -07:00
2017-09-08 18:26:48 -07:00
2017-10-23 16:58:59 +01:00
2014-11-21 15:24:50 +00:00
2017-09-29 13:57:21 +01: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-08-16 22:25:30 +02:00
2014-04-07 12:10:00 +01:00
2017-11-08 19:42:43 +00:00
2017-08-16 22:25:30 +02:00
2014-11-21 15:24:50 +00:00
2014-11-21 15:24:50 +00:00
2017-10-12 11:29:29 +01:00
2016-04-28 11:33:53 +02:00
2017-11-16 12:50:35 -08:00
2017-09-09 16:34:41 +01:00
2017-11-16 12:50:35 -08:00
2017-06-18 22:25:16 +01:00
2017-12-03 10:51:08 -05:00
2016-06-22 19:54:28 +01:00
2017-11-02 11:10:55 +01:00
2014-07-18 12:29:04 +01:00
2017-06-18 22:25:16 +01:00
2017-10-14 15:08:33 +01:00
2017-09-10 19:34:53 -04:00
2017-10-23 16:59:31 +01:00
2017-08-14 16:22:55 +01:00
2016-02-08 15:48:32 +00:00
2017-06-20 12:25:22 +02:00
2017-08-14 16:22:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-01-26 23:49:02 +00:00
2014-06-06 16:08:15 -07:00
2017-08-14 16:22:55 +01: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:50:35 -08:00
2017-03-17 10:01:28 +00:00
2017-05-11 14:43:31 +01:00
2017-11-02 11:10:55 +01:00
2011-12-13 08:52:02 +00:00
2015-12-21 14:40:54 +00: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-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-01-04 11:12:10 +00:00
2017-06-21 13:02:58 +01:00
2015-12-01 22:17:45 +01:00
2018-01-22 19:07:11 -06:00
2017-04-09 07:49:24 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2015-03-28 16:54:53 +00:00
2017-09-29 13:57:21 +01:00
2017-11-16 12:50:35 -08:00
2017-09-10 19:31:46 -04:00
2017-09-10 19:31:46 -04:00
2017-11-02 11:10:55 +01:00
2017-02-03 18:46:33 +00:00
2017-10-29 08:29:30 -07:00
2017-01-16 17:30:46 +00:00
2017-06-14 11:58:45 +02:00
2017-10-23 16:58:59 +01:00
2017-09-09 16:26:42 +01:00
2017-11-02 11:10:55 +01:00
2017-03-02 08:42:37 +01:00
2012-11-28 22:13:54 -05:00
2017-03-02 08:42:31 +01:00
2015-06-06 10:37:28 +01:00
2014-11-21 15:24:50 +00:00
2017-06-14 11:59:16 +02:00
2017-08-16 22:25:30 +02:00
2017-11-08 19:42:47 +00:00
2014-11-13 23:58:09 +00:00
2013-09-02 13:49:29 +01:00
2017-06-21 13:02:58 +01:00
2017-11-16 12:50:35 -08:00
2017-11-16 12:50:35 -08:00
2015-12-01 21:44:24 +01:00