----- Ursprüngliche Mail ----- > Von: "Al Viro" <viro@xxxxxxxxxxxxxxxxxx> > An: "richard" <richard@xxxxxx> > CC: "linux-um" <linux-um@xxxxxxxxxxxxxxxxxxx>, "linux-fsdevel" <linux-fsdevel@xxxxxxxxxxxxxxx> > Gesendet: Samstag, 18. Januar 2025 00:09:13 > Betreff: [PATCH] hostfs: fix string handling in __dentry_name() > [in viro/vfs.git#fixes, going to Linus unless anyone objects] > > 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: c278e81b8a02 "hostfs: Remove open coded strcpy()" Hmm, AFAICT the open coded strcpy() was also never safe wrt. overlapping strings. Beside of that: Acked-by: Richard Weinberger <richard@xxxxxx> Thanks, //richard