syzbot


WARNING in fuse_evict_inode
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+1a738a54963025fd8ff8@syzkaller.appspotmail.com
Fix commit: 5c791fe1e2a4 fuse: make sure reclaim doesn't write the inode
First crash: 226d, last: 217d

Cause bisection: introduced by (bisect log) :
commit 6e6b45a963c4a962c61ca59982982ddcdc82e651
Author: Miklos Szeredi <mszeredi@redhat.com>
Date: Wed Oct 13 12:33:40 2021 +0000

  fuse: write inode in fuse_vma_close() instead of fuse_release()

Crash: WARNING in fuse_evict_inode (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/11/02 14:24 16m miklos@szeredi.hu git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 5c791fe1e2a4 OK

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6556 at fs/fuse/inode.c:122 fuse_evict_inode+0x365/0x430 fs/fuse/inode.c:122
Modules linked in:
CPU: 0 PID: 6556 Comm: syz-executor054 Not tainted 5.15.0-rc5-next-20211015-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fuse_evict_inode+0x365/0x430 fs/fuse/inode.c:122
Code: 00 00 00 48 c7 83 a0 04 00 00 00 00 00 00 e9 58 fe ff ff e8 dd 7d c8 fe 48 89 df e8 f5 95 01 00 e9 05 fe ff ff e8 cb 7d c8 fe <0f> 0b e9 e8 fc ff ff 48 89 df e8 4c 10 0f ff e9 53 fe ff ff 48 89
RSP: 0018:ffffc9000282f8b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806be58000 RCX: 0000000000000000
RDX: ffff888017e53a00 RSI: ffffffff82aee6c5 RDI: 0000000000000003
RBP: 0000000000000004 R08: 0000000000000000 R09: ffff88806be5808b
R10: ffffffff82aee3ab R11: 0000000000000000 R12: ffff88806be580d8
R13: ffff88806be58028 R14: ffffffff89e3a8e0 R15: ffff88807806a980
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4a17dcf568 CR3: 000000000b88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 evict+0x2ed/0x6b0 fs/inode.c:592
 iput_final fs/inode.c:1672 [inline]
 iput.part.0+0x539/0x850 fs/inode.c:1698
 iput+0x58/0x70 fs/inode.c:1688
 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:376
 __dentry_kill+0x3c0/0x640 fs/dcache.c:582
 dentry_kill fs/dcache.c:708 [inline]
 dput+0x738/0xbc0 fs/dcache.c:888
 do_one_tree fs/dcache.c:1660 [inline]
 shrink_dcache_for_umount+0x11f/0x330 fs/dcache.c:1674
 generic_shutdown_super+0x68/0x370 fs/super.c:447
 kill_anon_super+0x36/0x60 fs/super.c:1057
 deactivate_locked_super+0x94/0x160 fs/super.c:335
 deactivate_super+0xad/0xd0 fs/super.c:366
 cleanup_mnt+0x3a2/0x540 fs/namespace.c:1137
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc16/0x2b40 kernel/exit.c:832
 do_group_exit+0x125/0x310 kernel/exit.c:929
 get_signal+0x47d/0x2160 kernel/signal.c:2833
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:863
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f4a17d79ef9
Code: Unable to access opcode bytes at RIP 0x7f4a17d79ecf.
RSP: 002b:00007f4a17d2b2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 0000000000139000 RBX: 00007f4a17e074e0 RCX: 00007f4a17d79ef9
RDX: 00000000fffffde4 RSI: 00000000200000c0 RDI: 0000000000000006
RBP: 00007f4a17dd40d4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 00007f4a17dd00c8 R14: 00007f4a17dd20d0 R15: 00007f4a17e074e8
 </TASK>

Crashes (43):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2021/10/16 21:42 linux-next 7c832d2f9b95 0c5d9412 .config log report syz C WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 16:52 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 10:44 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 08:02 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 07:55 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 05:36 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 05:34 linux-next 3196a52aff93 55f90bc6 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/22 00:45 linux-next 3196a52aff93 c5cb7da8 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/21 21:30 linux-next 3196a52aff93 c5cb7da8 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/21 21:27 linux-next 3196a52aff93 c5cb7da8 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/20 23:09 linux-next 51dba6e335ff f111d03b .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 22:53 linux-next 60e8840126bd 466b7db1 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 20:46 linux-next 60e8840126bd 466b7db1 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 19:29 linux-next 60e8840126bd 466b7db1 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 19:05 linux-next 60e8840126bd 466b7db1 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:41 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:38 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:32 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:29 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:15 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:10 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 08:06 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/19 00:30 linux-next 60e8840126bd 24dc29db .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/18 11:08 linux-next 60e8840126bd 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/18 01:43 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/18 01:30 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/17 14:23 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/17 06:02 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/17 05:55 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/17 04:02 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/16 21:04 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/15 15:05 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/15 11:51 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/15 09:40 linux-next 8006b911c90a 0c5d9412 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/14 19:37 linux-next 8006b911c90a 7aa5fe41 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/14 19:01 linux-next 8006b911c90a 7aa5fe41 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/14 04:55 linux-next 8006b911c90a 5462d470 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/14 01:34 linux-next 8006b911c90a 5462d470 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/13 23:40 linux-next 8006b911c90a 5462d470 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/13 22:19 linux-next 8006b911c90a 5462d470 .config log report info WARNING in fuse_evict_inode
ci-upstream-linux-next-kasan-gce-root 2021/10/13 21:25 linux-next 8006b911c90a 5462d470 .config log report info WARNING in fuse_evict_inode