Commit 614bc6e0 authored by Xiubo Li's avatar Xiubo Li Committed by Yifan Qiao
Browse files

ceph: fix deadlock or deadcode of misusing dget()

mainline inclusion
from mainline-v6.8-rc1
commit b493ad718b1f0357394d2cdecbf00a44a36fa085
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I96G92
CVE: CVE-2023-52583

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b493ad718b1f0357394d2cdecbf00a44a36fa085

--------------------------------

The lock order is incorrect between denty and its parent, we should
always make sure that the parent get the lock first.

But since this deadcode is never used and the parent dir will always
be set from the callers, let's just remove it.

Link: https://lore.kernel.org/r/20231116081919.GZ1957730@ZenIV


Reported-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarXiubo Li <xiubli@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYifan Qiao <qiaoyifan4@huawei.com>
parent 5c41e485
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment