[git pull] hostfs fix

From: Al Viro
Date: Fri Jan 31 2025 - 03:24:53 EST


The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:

Linux 6.13-rc1 (2024-12-01 14:28:56 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-fixes

for you to fetch changes up to 60a6002432448bb3f291d80768ae98d62efc9c77:

hostfs: fix string handling in __dentry_name() (2025-01-11 01:37:44 -0500)

----------------------------------------------------------------
hostfs __dentry_name() fix

use of strcpy() with overlapping source and destination is a UB;
original loop hadn't been. More to the point, the whole thing
is much easier done with memcpy() + memmove().

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

----------------------------------------------------------------
Al Viro (1):
hostfs: fix string handling in __dentry_name()

fs/hostfs/hostfs_kern.c | 27 ++++++---------------------
1 file changed, 6 insertions(+), 21 deletions(-)