[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171211150551.GC2421075@devbig577.frc2.facebook.com>
Date: Mon, 11 Dec 2017 07:05:51 -0800
From: Tejun Heo <tj@...nel.org>
To: Ma Shimiao <mashimiao.fnst@...fujitsu.com>
Cc: lizefan@...wei.com, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cgroup: limit max copied char length for cgroup file name
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 <mashimiao.fnst@...fujitsu.com>
Can we use strscpy() instead?
Thanks.
--
tejun
Powered by blists - more mailing lists