提交 d96d8733 编写于 作者: M Miklos Szeredi 提交者: Yang Yingliang

fuse: annotate lock in fuse_reverse_inval_entry()

stable inclusion
from linux-4.19.222
commit 55e0c283fa6857e66acfc44984ceea893e1b8451

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

commit bda9a719 upstream.

Add missing inode lock annotatation; found by syzbot.

Reported-and-tested-by: syzbot+9f747458f5990eaa8d43@syzkaller.appspotmail.com
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 f5498ff0
...@@ -1002,7 +1002,7 @@ int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid, ...@@ -1002,7 +1002,7 @@ int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid,
if (!parent) if (!parent)
return -ENOENT; return -ENOENT;
inode_lock(parent); inode_lock_nested(parent, I_MUTEX_PARENT);
if (!S_ISDIR(parent->i_mode)) if (!S_ISDIR(parent->i_mode))
goto unlock; goto unlock;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册