Am 23.10.2014 um 18:50 schrieb OGAWA Hirofumi: > OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> writes: > >> Al Viro <viro@xxxxxxxxxxxxxxxxxx> writes: >> >>> On Thu, Oct 23, 2014 at 05:01:06PM +0100, Al Viro wrote: >>> >>>> Hmm... Why hadn't d_splice_alias() caught that, though? >>> >>> Aha. It's not namei_msdos.c part, it's namei_vfat.c one. And there >>> we don't call d_splice_alias() on the affected path... >>> >>> OK, so your check isn't enough. What we need there is this: >>> if (alias && alias->d_parent == dentry->d_parent && ...) >>> Otherwise that d_move() isn't safe at all. >> >> Hm, sounds like I'm missing something. what case has different >> ->d_parent on alias if prevented by my check? > > You meant the case of more complex double linked loop? Yes. This is why I came up with the alias->d_parent == dentry->d_parent check. Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html