Li Zefan
e37a06f109
cgroup: fix the retry path of cgroup_mount()
...
If we hit the retry path, we'll call parse_cgroupfs_options() again,
but the string we pass to it has been modified by the previous call
to this function.
This bug can be observed by:
# mount -t cgroup -o name=foo,cpuset xxx /mnt && umount /mnt && \
mount -t cgroup -o name=foo,cpuset xxx /mnt
mount: wrong fs type, bad option, bad superblock on xxx,
missing codepage or helper program, or other error
...
The second mount passed "name=foo,cpuset" to the parser, and then it
hit the retry path and call the parser again, but this time the string
passed to the parser is "name=foo".
To fix this, we avoid calling parse_cgroupfs_options() again in this
case.
Signed-off-by: Li Zefan <lizefan@huawei.com >
Signed-off-by: Tejun Heo <tj@kernel.org >
2014-04-17 11:18:06 -04:00
..
2014-04-07 16:35:53 -07:00
2014-04-05 13:20:43 -07:00
2013-11-13 12:09:34 +09:00
2014-03-22 11:33:09 +01:00
2014-04-07 16:36:14 -07:00
2014-04-07 16:36:11 -07:00
2014-04-03 16:21:08 -07:00
2014-03-31 11:21:19 -07:00
2014-04-07 16:38:06 -07:00
2014-04-07 16:36:11 -07:00
2014-04-12 14:49:50 -07:00
2013-12-10 18:21:34 +00:00
2014-02-18 11:17:17 +01:00
2014-02-18 11:17:17 +01:00
2014-04-12 12:38:53 -07:00
2014-03-20 10:10:53 -04:00
2014-04-12 12:38:53 -07:00
2014-04-12 12:38:53 -07:00
2013-12-20 12:25:45 -08:00
2014-04-03 09:26:18 -07:00
2014-03-19 10:23:54 -04:00
2014-04-17 11:18:06 -04:00
2014-04-02 12:51:41 -07:00
2013-12-02 20:43:14 +01:00
2014-03-20 13:43:40 +01:00
2014-04-03 16:22:16 -07:00
2013-11-13 12:09:12 +09:00
2013-11-09 00:16:23 -05:00
2014-04-07 16:36:06 -07:00
2014-02-13 18:13:22 -08:00
2014-04-07 16:36:11 -07:00
2013-12-19 13:50:32 -05:00
2014-02-02 14:09:12 -08:00
2014-04-12 17:57:51 -07:00
2014-04-03 16:21:05 -07:00
2014-03-20 12:35:46 +01:00
2014-04-03 16:21:07 -07:00
2014-02-21 21:49:07 +01:00
2014-04-07 16:36:11 -07:00
2013-11-15 09:32:22 +09:00
2014-04-07 16:36:11 -07:00
2014-02-05 12:54:53 -08:00
2013-11-13 12:09:26 +09:00
2014-04-07 16:36:11 -07:00
2014-04-03 16:20:49 -07:00
2014-03-31 14:13:25 -07:00
2014-04-07 16:36:14 -07:00
2014-02-26 06:35:13 -08:00
2013-12-05 21:28:42 +08:00
2014-04-07 16:36:08 -07:00
2013-12-04 14:09:46 +10:30
2014-04-02 16:20:21 -07:00
2013-12-09 16:56:29 +01:00
2014-04-07 14:55:46 -07:00
2014-03-06 15:35:10 +01:00
2013-12-18 19:04:50 -08:00
2014-04-12 14:49:50 -07:00
2014-04-07 16:35:54 -07:00
2014-04-03 16:21:07 -07:00
2014-04-12 12:38:53 -07:00
2014-04-07 16:36:11 -07:00
2014-02-24 14:47:15 -08:00
2014-03-19 11:28:14 +01:00
2014-03-11 11:33:47 +01:00
2014-04-03 16:21:05 -07:00
2014-04-07 16:35:52 -07:00
2013-11-13 12:09:33 +09:00
2014-04-07 16:36:07 -07:00
2013-12-10 18:25:28 +00:00
2013-12-10 18:25:28 +00:00
2013-11-19 16:39:05 -05:00
2014-04-01 11:00:07 -07:00
2014-02-23 09:04:39 -08:00
2014-04-12 13:06:10 -07:00
2014-02-24 14:47:15 -08:00
2014-04-03 16:21:07 -07:00
2014-04-03 16:21:07 -07:00
2014-04-03 16:20:58 -07:00
2014-04-01 11:00:07 -07:00