Re: [PATCH] cgroup: fix the retry path of cgroup_mount()

2014-04-17 Thread Tejun Heo
On Thu, Apr 17, 2014 at 01:53:08PM +0800, Li Zefan wrote: > 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 xx

[PATCH] cgroup: fix the retry path of cgroup_mount()

2014-04-16 Thread Li Zefan
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 /m