summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_sf.c
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-05-25 00:13:38 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 11:14:25 +0200
commit247bcad9a0df0855a2d549124eb4505ffb9b5d01 (patch)
tree1608c5b3228def205d24b5653a9a6b5330d93b8f /fs/xfs/xfs_dir2_sf.c
parentbf8355e3d347db88b78fb443f9284df369a4d905 (diff)
downloadlinux-stable-247bcad9a0df0855a2d549124eb4505ffb9b5d01.tar.gz
linux-stable-247bcad9a0df0855a2d549124eb4505ffb9b5d01.tar.bz2
linux-stable-247bcad9a0df0855a2d549124eb4505ffb9b5d01.zip
ksmbd: call putname after using the last component
commit 6fe55c2799bc29624770c26f98ba7b06214f43e0 upstream. last component point filename struct. Currently putname is called after vfs_path_parent_lookup(). And then last component is used for lookup_one_qstr_excl(). name in last component is freed by previous calling putname(). And It cause file lookup failure when testing generic/464 test of xfstest. Fixes: 74d7970febf7 ("ksmbd: fix racy issue from using ->d_parent and ->d_name") Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
0 files changed, 0 insertions, 0 deletions