ceph: ensure d_name stability in ceph_dentry_hash()
authorJeff Layton <jlayton@kernel.org>
Wed, 17 Apr 2019 16:58:28 +0000 (12:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:54 +0000 (09:58 +0200)
commit246d2bf32da1df979b2bb0b4ca38b9b2b6ac2bf4
treeccf6e4bfec3c3530fc8ca0a310c101b24dc7226e
parent8d693ef0141c90dd94fe47be1727214bf3adb3dd
ceph: ensure d_name stability in ceph_dentry_hash()

commit 76a495d666e5043ffc315695f8241f5e94a98849 upstream.

Take the d_lock here to ensure that d_name doesn't change.

Cc: stable@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/dir.c