projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ea233
)
fuse: annotate lock in fuse_reverse_inval_entry()
author
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:01 +0000
(17:03 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:01 +0000
(17:03 +0200)
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>
fs/fuse/dir.c
patch
|
blob
|
history
diff --git
a/fs/fuse/dir.c
b/fs/fuse/dir.c
index
2798fbe
..
80a2181
100644
(file)
--- a/
fs/fuse/dir.c
+++ b/
fs/fuse/dir.c
@@
-1079,7
+1079,7
@@
int fuse_reverse_inval_entry(struct fuse_conn *fc, u64 parent_nodeid,
if (!parent)
return -ENOENT;
- inode_lock
(parent
);
+ inode_lock
_nested(parent, I_MUTEX_PARENT
);
if (!S_ISDIR(parent->i_mode))
goto unlock;