Skip to content

Commit 5fd7d62

Browse files
Miklos Szeredigregkh
authored andcommitted
fuse: annotate lock in fuse_reverse_inval_entry()
commit bda9a71 upstream. Add missing inode lock annotatation; found by syzbot. Reported-and-tested-by: syzbot+9f747458f5990eaa8d43@syzkaller.appspotmail.com Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b99bdf1 commit 5fd7d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ int fuse_reverse_inval_entry(struct fuse_conn *fc, u64 parent_nodeid,
11321132
if (!parent)
11331133
return -ENOENT;
11341134

1135-
inode_lock(parent);
1135+
inode_lock_nested(parent, I_MUTEX_PARENT);
11361136
if (!S_ISDIR(parent->i_mode))
11371137
goto unlock;
11381138

0 commit comments

Comments
 (0)