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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

Can we use strscpy() instead?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux