Al Viro
7a8b048430
fix cgroup_do_mount() handling of failure exits
...
commit 399504e21a upstream.
same story as with last May fixes in sysfs (7b745a4e40
"unfuck sysfs_mount()"); new_sb is left uninitialized
in case of early errors in kernfs_mount_ns() and papering
over it by treating any error from kernfs_mount_ns() as
equivalent to !new_ns ends up conflating the cases when
objects had never been transferred to a superblock with
ones when that has happened and resulting new superblock
had been dropped. Easily fixed (same way as in sysfs
case). Additionally, there's a superblock leak on
kernfs_node_dentry() failure *and* a dentry leak inside
kernfs_node_dentry() itself - the latter on probably
impossible errors, but the former not impossible to trigger
(as the matter of fact, injecting allocation failures
at that point *does* trigger it).
Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-03-23 20:09:53 +01:00
..
2019-03-23 20:09:51 +01:00
2019-03-23 20:09:53 +01:00
2018-06-15 07:15:28 +09:00
2019-02-12 19:47:19 +01:00
2019-01-13 09:51:05 +01:00
2019-03-13 14:02:26 -07:00
2018-06-08 18:56:02 +09:00
2019-03-05 17:58:47 +01:00
2018-08-20 18:33:50 +02:00
2019-03-05 17:58:49 +01:00
2018-10-12 12:35:02 +02:00
2018-11-13 11:08:48 -08:00
2019-01-13 09:51:06 +01:00
2019-03-05 17:58:49 +01:00
2019-02-12 19:47:05 +01:00
2019-03-13 14:02:36 -07:00
2018-01-04 16:45:09 -08:00
2018-02-06 18:32:44 -08:00
2018-05-18 14:58:22 +02:00
2018-08-17 09:41:28 -07:00
2018-07-18 11:43:36 -04:00
2018-07-17 14:45:08 -04:00
2018-02-23 11:22:22 -05:00
2018-06-19 10:39:54 -04:00
2018-08-15 10:46:54 -07:00
2018-11-13 11:08:47 -08:00
2017-11-02 11:10:55 +01:00
2018-06-24 14:39:47 +02:00
2016-12-24 11:46:01 -08:00
2017-07-31 13:09:49 +02:00
2019-02-12 19:47:25 +01:00
2018-08-22 10:52:47 -07:00
2017-05-18 10:30:19 -06:00
2018-04-27 14:34:51 +02:00
2018-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2019-03-05 17:58:49 +01:00
2018-02-21 16:54:06 +01:00
2018-06-21 12:33:19 +02:00
2019-01-13 09:51:04 +01:00
2018-08-06 12:35:20 +02:00
2017-11-02 11:10:55 +01:00
2019-03-05 17:58:49 +01:00
2017-12-14 16:00:49 -08:00
2019-02-12 19:47:19 +01:00
2018-05-15 23:08:33 -07:00
2018-01-08 19:43:15 +01:00
2018-09-10 10:15:48 +02:00
2018-08-14 19:12:29 -03:00
2017-11-02 11:10:55 +01:00
2016-10-25 11:31:51 +02:00
2018-08-02 08:06:54 +09:00
2019-02-12 19:47:20 +01:00
2018-06-15 07:55:24 +09:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-07-16 12:31:57 -07:00
2017-09-08 18:26:51 -07:00
2018-11-13 11:08:28 -08:00
2017-07-12 16:25:59 -07:00
2018-08-13 11:25:07 -07:00
2017-03-02 08:42:39 +01:00
2018-07-18 01:18:05 +09:00
2019-01-13 09:51:04 +01:00
2018-07-02 11:36:17 +02:00
2018-07-02 11:36:17 +02:00
2019-02-12 19:47:06 +01:00
2017-02-24 17:46:56 -08:00
2017-03-13 15:57:41 -03:00
2018-01-05 18:43:00 +11:00
2018-12-29 13:37:57 +01:00
2018-04-11 10:28:37 -07:00
2018-04-03 19:15:32 -07:00
2019-01-13 09:51:06 +01:00
2017-03-02 08:42:39 +01:00
2018-12-05 19:32:03 +01:00
2017-11-02 11:10:55 +01:00
2018-08-06 12:35:20 +02:00
2019-03-13 14:02:35 -07:00
2018-06-08 17:21:52 -07:00
2018-07-10 22:18:52 +02:00
2018-06-06 16:34:00 -07:00
2019-02-20 10:25:48 +01:00
2019-02-12 19:47:25 +01:00
2018-07-03 09:20:44 +02:00
2017-11-02 11:10:55 +01:00
2018-08-03 15:52:10 +02:00
2017-03-08 09:18:02 +01:00
2018-08-13 11:25:07 -07:00
2018-06-10 10:17:09 -07:00
2018-09-20 22:01:11 +02:00
2018-04-16 11:26:49 +02:00
2019-02-12 19:47:19 +01:00
2017-12-17 13:57:15 +01:00
2018-02-06 18:32:46 -08:00
2018-06-21 12:33:05 +02:00
2018-06-25 11:30:10 -07:00
2018-10-17 15:35:29 -04:00
2017-03-02 08:42:39 +01:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2018-06-07 16:56:28 -04:00
2017-08-29 15:14:38 +02:00
2018-11-13 11:09:00 -08:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-04-11 10:28:35 -07:00
2018-08-30 12:56:40 +02:00
2018-08-30 12:56:40 +02:00
2018-05-18 08:47:13 -07:00
2018-08-30 12:56:40 +02:00