Re: [PATCH] cgroup: limit max copied char length for cgroup file name

2017-12-11 Thread Ma Shimiao
On 12/11/2017 11:05 PM, Tejun Heo wrote: > On Sat, Dec 09, 2017 at 01:47:58PM +0800, Ma Shimiao wrote: >> the result of cgroup_file_name will be used by kernfs_remove_name, >> and then by kernfs_remove_by_name_ns(). >> If reached the max length, may have problem printed by WARN() in >> kernfs_remov

Re: [PATCH] cgroup: limit max copied char length for cgroup file name

2017-12-11 Thread Tejun Heo
On Sat, Dec 09, 2017 at 01:47:58PM +0800, Ma Shimiao wrote: > the result of cgroup_file_name will be used by kernfs_remove_name, > and then by kernfs_remove_by_name_ns(). > If reached the max length, may have problem printed by WARN() in > kernfs_remove_by_name_ns(). > > Signed-off-by: Ma Shimiao

[PATCH] cgroup: limit max copied char length for cgroup file name

2017-12-08 Thread Ma Shimiao
the result of cgroup_file_name will be used by kernfs_remove_name, and then by kernfs_remove_by_name_ns(). If reached the max length, may have problem printed by WARN() in kernfs_remove_by_name_ns(). Signed-off-by: Ma Shimiao --- kernel/cgroup/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 d