Oleg Nesterov
fbb67524e8
cred: copy_process() should clear child->replacement_session_keyring
...
commit 79549c6dfd upstream.
keyctl_session_to_parent(task) sets ->replacement_session_keyring,
it should be processed and cleared by key_replace_session_keyring().
However, this task can fork before it notices TIF_NOTIFY_RESUME and
the new child gets the bogus ->replacement_session_keyring copied by
dup_task_struct(). This is obviously wrong and, if nothing else, this
leads to put_cred(already_freed_cred).
change copy_creds() to clear this member. If copy_process() fails
before this point the wrong ->replacement_session_keyring doesn't
matter, exit_creds() won't be called.
Signed-off-by: Oleg Nesterov <oleg@redhat.com >
Acked-by: David Howells <dhowells@redhat.com >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-04-13 08:33:50 -07:00
..
2012-04-13 08:33:48 -07:00
2011-12-14 08:44:53 +01:00
2011-07-26 16:49:45 -07:00
2012-04-13 08:33:46 -07:00
2012-04-02 09:53:03 -07:00
2012-04-02 09:52:35 -07:00
2012-04-13 08:33:47 -07:00
2011-10-31 09:20:12 -04:00
2011-07-20 14:10:11 -07:00
2011-03-14 09:15:23 -04:00
2011-10-31 09:20:12 -04:00
2010-10-30 01:42:19 -04:00
2011-03-03 10:55:40 -08:00
2011-10-31 09:20:12 -04:00
2011-03-23 19:46:28 -07:00
2011-10-31 09:20:12 -04:00
2011-11-24 11:58:22 -08:00
2012-01-12 11:29:35 -08:00
2011-10-31 19:30:05 -04:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2011-11-06 19:44:47 -08:00
2011-12-20 10:25:04 -08:00
2011-11-06 19:44:47 -08:00
2012-04-13 08:33:50 -07:00
2011-07-14 12:59:14 +03:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-05-20 08:56:56 +02:00
2012-02-29 16:31:23 -08:00
2011-11-06 19:44:47 -08:00
2011-03-23 19:47:08 -07:00
2012-04-02 09:52:30 -07:00
2011-10-31 09:20:12 -04:00
2011-11-28 08:43:52 -08:00
2012-01-03 16:14:32 -08:00
2011-10-31 09:20:12 -04:00
2011-12-05 13:28:46 -05:00
2011-03-25 17:52:22 -07:00
2011-04-10 17:01:05 +02:00
2011-06-10 15:15:40 +02:00
2011-10-30 15:16:42 +01:00
2011-10-31 09:20:12 -04:00
2011-10-26 13:10:39 +10:30
2012-03-12 12:31:26 -07:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-12-06 18:18:13 +01:00
2011-10-28 12:02:27 -07:00
2012-04-02 09:53:07 -07:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-02-13 11:16:59 -08:00
2011-10-31 09:20:13 -04:00
2011-03-23 19:46:58 -07:00
2011-10-31 09:20:12 -04:00
2011-10-26 16:17:32 +02:00
2011-10-31 09:20:12 -04:00
2011-12-09 07:50:28 -08:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-10-31 09:20:11 -04:00
2011-09-28 21:38:21 -07:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:13 -04:00
2011-09-28 21:38:46 -07:00
2011-09-28 21:38:48 -07:00
2011-09-28 21:38:22 -07:00
2011-10-31 09:20:12 -04:00
2011-09-28 21:38:48 -07:00
2012-02-20 12:46:16 -08:00
2011-03-23 19:46:22 -07:00
2011-10-31 09:20:12 -04:00
2011-01-27 21:13:51 -05:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-03-31 11:26:23 -03:00
2011-07-01 10:39:08 +02:00
2011-10-31 09:20:12 -04:00
2011-08-14 12:01:11 +02:00
2011-08-14 12:01:11 +02:00
2011-04-24 13:18:38 +02:00
2011-12-16 09:44:58 +01:00
2011-11-14 12:50:40 +01:00
2011-04-14 08:52:36 +02:00
2012-02-13 11:16:56 -08:00
2011-09-13 11:11:55 +02:00
2011-08-14 12:01:13 +02:00
2011-11-14 12:50:43 +01:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2011-11-06 19:44:47 -08:00
2011-12-20 10:25:04 -08:00
2011-08-12 16:21:35 -05:00
2012-04-13 08:33:49 -07:00
2011-09-19 17:04:37 -07:00
2011-10-31 09:20:12 -04:00
2011-12-09 07:50:29 -08:00
2012-01-25 16:13:52 -08:00
2011-09-19 17:10:57 -07:00
2011-03-23 19:47:08 -07:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 17:30:53 -07:00
2012-03-19 09:02:34 -07:00