Al Viro
6c85501f2f
fix infoleak in waitid(2)
...
kernel_waitid() can return a PID, an error or 0. rusage is filled in the first
case and waitid(2) rusage should've been copied out exactly in that case, *not*
whenever kernel_waitid() has not returned an error. Compat variant shares that
braino; none of kernel_wait4() callers do, so the below ought to fix it.
Reported-and-tested-by: Alexander Potapenko <glider@google.com >
Fixes: ce72a16fa7 ("wait4(2)/waitid(2): separate copying rusage to userland")
Cc: stable@vger.kernel.org # v4.13
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2017-09-29 13:43:15 -04:00
..
2017-09-15 15:01:32 -07:00
2017-09-12 11:30:56 -07:00
2017-08-22 18:43:23 -07:00
2017-09-06 22:25:25 -07:00
2017-09-12 11:25:56 -07:00
2017-09-13 18:53:16 -07:00
2017-09-12 11:30:56 -07:00
2017-09-07 21:00:52 -07:00
2017-09-08 18:26:48 -07:00
2017-09-14 09:56:18 -07:00
2017-09-08 18:26:51 -07:00
2017-09-16 11:28:59 -07:00
2017-09-04 19:05:15 -04:00
2017-08-16 16:48:34 -07:00
2017-09-05 09:46:59 -04:00
2017-09-03 20:21:24 -04:00
2017-09-14 17:37:26 -07:00
2017-07-15 20:46:47 -04:00
2017-07-31 13:09:49 +02:00
2017-09-04 13:53:53 -07:00
2017-07-12 16:26:00 -07:00
2017-09-29 13:43:15 -04:00
2017-07-10 16:32:35 -07:00
2017-09-12 13:21:00 -07:00
2017-08-25 22:49:59 +02:00
2017-07-10 16:32:34 -07:00
2017-08-10 12:28:59 +02:00
2017-07-10 16:32:34 -07:00
2017-07-12 16:26:01 -07:00
2017-09-08 18:26:51 -07:00
2017-07-18 11:38:04 +02:00
2017-07-12 16:26:02 -07:00
2017-07-12 16:26:02 -07:00
2017-07-12 16:26:00 -07:00
2017-09-08 18:26:51 -07:00
2017-07-08 11:05:35 +02:00
2017-07-12 16:25:59 -07:00
2017-08-31 16:33:15 -07:00
2017-09-08 18:26:51 -07:00
2017-09-08 18:26:46 -07:00
2017-07-25 15:08:32 +02:00
2017-08-17 10:40:26 +02:00
2017-07-20 07:43:58 -05:00
2017-08-21 12:47:31 -07:00
2017-07-24 14:30:28 -05:00
2017-09-11 18:34:47 -07:00
2017-09-08 18:26:48 -07:00
2017-07-20 07:46:07 -05:00
2017-09-04 19:05:15 -04:00
2017-07-12 16:26:02 -07:00
2017-07-25 10:08:58 -07:00
2017-07-25 13:04:45 -07:00
2017-09-08 18:26:50 -07:00
2017-08-29 15:14:38 +02:00
2017-07-20 07:43:58 -05:00
2017-08-18 12:35:02 +02:00
2017-08-18 12:35:02 +02:00
2017-09-06 21:59:31 -07:00