syzbot


WARNING in fuse_write_file_get

Status: upstream: reported C repro on 2022/04/15 18:30
Reported-by: syzbot+6e1efbd8efaaa6860e91@syzkaller.appspotmail.com
Fix commit: fuse: write inode in fuse_release()
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 75d, last: 16m

Cause bisection: introduced by (bisect log) :
commit 36ea23374d1f7b6a9d96a2b61d38830fdf23e45d
Author: Miklos Szeredi <mszeredi@redhat.com>
Date: Fri Oct 22 15:03:01 2021 +0000

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

Crash: WARNING in fuse_writepages_fill (log)
Repro: C syz .config
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in fuse_writepage_locked 10 21d 218d 0/22 closed as dup on 2022/04/20 15:14

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11 at fs/fuse/file.c:1842 spin_unlock include/linux/spinlock.h:389 [inline]
WARNING: CPU: 0 PID: 11 at fs/fuse/file.c:1842 __fuse_write_file_get fs/fuse/file.c:1834 [inline]
WARNING: CPU: 0 PID: 11 at fs/fuse/file.c:1842 fuse_write_file_get+0xb7/0xf0 fs/fuse/file.c:1841
Modules linked in:
CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-0:44)
RIP: 0010:fuse_write_file_get+0xb7/0xf0 fs/fuse/file.c:1842
Code: bf ff ff ff ff e8 69 96 99 fe 09 dd 78 36 e8 40 92 99 fe 4c 89 f7 e8 e8 ea 34 07 eb 0f e8 31 92 99 fe 4c 89 f7 e8 d9 ea 34 07 <0f> 0b 4c 89 e0 5b 41 5c 41 5e 41 5f 5d c3 e8 16 92 99 fe be 02 00
RSP: 0018:ffffc90000106eb0 EFLAGS: 00010286
RAX: 0000000080000000 RBX: ffff888073f89fc8 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc900001071f0 R08: dffffc0000000000 R09: ffffed100e7f141d
R10: ffffed100e7f141d R11: 1ffff1100e7f141c R12: 0000000000000000
R13: ffffea0001c46a80 R14: ffff888073f8a0e0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9efaf3d718 CR3: 000000001d30d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fuse_writepages_fill+0x11b/0x1bb0 fs/fuse/file.c:2152
 write_cache_pages+0x7dd/0x1350 mm/page-writeback.c:2243
 fuse_writepages+0x295/0x470 fs/fuse/file.c:2258
 do_writepages+0x3c3/0x690 mm/page-writeback.c:2352
 __writeback_single_inode+0xd1/0x670 fs/fs-writeback.c:1581
 writeback_sb_inodes+0xb4c/0x1870 fs/fs-writeback.c:1854
 __writeback_inodes_wb+0x125/0x420 fs/fs-writeback.c:1923
 wb_writeback+0x450/0x7a0 fs/fs-writeback.c:2028
 wb_check_background_flush fs/fs-writeback.c:2094 [inline]
 wb_do_writeback fs/fs-writeback.c:2182 [inline]
 wb_workfn+0xb5f/0xf10 fs/fs-writeback.c:2209
 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30
 </TASK>

Crashes (60):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/04/25 14:59 upstream af2d861d4cd2 c889aef9 .config log report syz C WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/14 05:36 upstream a19944809fe9 b17b2923 .config log report syz C WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/28 09:53 upstream 941e3e791269 ef82eb2c .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/26 20:35 upstream 0840a7914caa a371c43c .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/26 13:40 upstream 0840a7914caa a371c43c .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/21 19:34 upstream 78ca55889a54 0fc5c330 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/20 21:18 upstream 78ca55889a54 8d15e28d .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/19 22:12 upstream 05c6ca8512f2 8f633d84 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/19 19:21 upstream 05c6ca8512f2 8f633d84 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/19 08:50 upstream 354c6e071be9 8f633d84 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/17 12:24 upstream 0639b599f6f3 1719ee24 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/16 06:20 upstream 979086f5e006 1719ee24 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/15 04:54 upstream 018ab4fabddd 127d1faf .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/12 08:51 upstream 7a68065eb9cd 0d5abf15 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/11 13:17 upstream 0885eacdc81f 0d5abf15 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/07 23:10 upstream e71e60cd74df c8857892 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/03 07:31 upstream 50fd82b3a9a9 02dddea8 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/02 16:27 upstream d1dc87763f40 5783034f .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/06/02 08:35 upstream 8171acb8bc9b b4bc6a3d .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/29 08:24 upstream 664a393a2663 a46af346 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/29 01:39 upstream 9d004b2f4fea a46af346 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/28 00:14 upstream 8291eaafed36 a46af346 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/26 22:22 upstream babf0bb978e3 3037caa9 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/26 04:50 upstream 7e062cda7d90 3037caa9 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/25 06:56 upstream aa051d36ce4a 647c0e27 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/25 04:05 upstream aa051d36ce4a 647c0e27 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/23 04:38 upstream 4b0986a3613c 7268fa62 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/22 20:52 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/22 18:44 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/22 13:59 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/22 07:18 upstream 6c3f5bec9b40 7268fa62 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/20 05:07 upstream b015dcd62b86 cb1ac2e7 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/19 06:55 upstream f993aed406ea 50c53f39 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/18 15:50 upstream 210e04ff7681 50c53f39 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/16 00:29 upstream bc403203d65a 744a39e2 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/14 07:20 upstream ec7f49619d8e 107f6434 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/13 03:41 upstream 0ac824f379fb 9ad6612a .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/10 23:05 upstream feb9c5e19e91 8b277b8e .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/09 16:37 upstream c5eb0a61238d 8b277b8e .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/09 14:28 upstream c5eb0a61238d 8b277b8e .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/05/01 05:38 upstream 57ae8a492116 2df221f6 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/29 21:37 upstream 2d0de93ca251 44a5ca63 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/27 12:14 upstream 46cf2c613f4b 1fa34c1b .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/25 18:45 upstream af2d861d4cd2 c889aef9 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/24 19:09 upstream 22da5264abf4 131df97d .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/24 09:45 upstream 22da5264abf4 131df97d .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/20 05:28 upstream b7f73403a3e9 7d7bc738 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/18 09:36 upstream b2d229d4ddb1 8bcc32a6 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/17 01:06 upstream 90ea17a9e27b 8bcc32a6 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/17 01:03 upstream 90ea17a9e27b 8bcc32a6 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/16 17:17 upstream 59250f8a7f3a 8bcc32a6 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/15 04:36 upstream b9b4c79e5830 b17b2923 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/14 18:39 upstream a19944809fe9 b17b2923 .config log report info WARNING in fuse_write_file_get
ci-upstream-kasan-gce-smack-root 2022/04/14 04:48 upstream a19944809fe9 b17b2923 .config log report info WARNING in fuse_write_file_get