lkml.org 
[lkml]   [2017]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] cgroup: limit max copied char length for cgroup file name
From
Date
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_remove_by_name_ns().
>>
>> Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
>
> Can we use strscpy() instead?

OK, I will update the patch
>
> Thanks.
>


--
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)


\
 
 \ /
  Last update: 2017-12-12 02:19    [W:0.053 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site