The intent is to check if 'dest' is truncated or not. So, >= should be used instead of >, because strlcat() returns the length of 'dest' and 'src' excluding the trailing NULL. 社区有patch已经解决 NFS: Fix an off by one in root_nfs_cat() commit b8c52f7d08f18cc0577be1b774194a94a9e5492a Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=b8c52f7d08f18cc0577be1b774194a94a9e5492a git cherry-pick -s b8c52f7d08(with stable-v5.10.215 repo added)
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3093
(In reply to 小龙 from comment #1) > The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3093 merged