+6
−21
Loading
stable inclusion from stable-v6.6.76 commit 86ec56b25476758f708328b2eeed68918567efd0 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBW08Q Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=86ec56b25476758f708328b2eeed68918567efd0 -------------------------------- [ Upstream commit 60a6002432448bb3f291d80768ae98d62efc9c77 ] strcpy() should not be used with destination potentially overlapping the source; what's more, strscpy() in there is pointless - we already know the amount we want to copy; might as well use memcpy(). Fixes: c278e81b "hostfs: Remove open coded strcpy()" Signed-off-by:Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit 86ec56b25476758f708328b2eeed68918567efd0) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>