Thread (3 messages) 3 messages, 2 authors, 2017-12-12

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

From: Tejun Heo <hidden>
Date: 2017-12-11 15:05:58
Also in: lkml

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 <redacted>
Can we use strscpy() instead?

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help