android_kernel_motorola_sm6375/fs/fuse
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miklos Szeredi e3df45eef8 fuse: fix bad inode
Jan Kara's analysis of the syzbot report (edited):

The reproducer opens a directory on FUSE filesystem, it then attaches
dnotify mark to the open directory.  After that a fuse_do_getattr() call
finds that attributes returned by the server are inconsistent, and calls
make_bad_inode() which, among other things does:

          inode->i_mode = S_IFREG;

This then confuses dnotify which doesn't tear down its structures
properly and eventually crashes.

Avoid calling make_bad_inode() on a live inode: switch to a private flag on
the fuse inode.  Also add the test to ops which the bad_inode_ops would
have caught.

This change goes back to the initial merge of fuse in 2.6.14...

Change-Id: Iec8f3c66e1ee214e641d71cf01e6f0c2755c3cef
Reported-by: [email protected]
Signed-off-by: Miklos Szeredi <[email protected]>
Tested-by: Jan Kara <[email protected]>
Cc: <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Git-commit: 732251cabe
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Pradeep P V K <[email protected]>
2021-08-23 22:25:08 -07:00
..
acl.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00
control.c
cuse.c
dev.c fuse: give wakeup hints to the scheduler 2021-06-28 22:59:55 -07:00
dir.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00
file.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00
fuse_i.h fuse: fix bad inode 2021-08-23 22:25:08 -07:00
inode.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00
Kconfig
Makefile
OWNERS ANDROID: FUSE OWNERS pointing to android-mainline OWNERS 2021-05-14 11:43:14 +00:00
readdir.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00
virtio_fs.c virtiofs: schedule blocking async replies in separate worker 2020-06-24 17:50:21 +02:00
xattr.c fuse: fix bad inode 2021-08-23 22:25:08 -07:00