syzbot


WARNING in fuse_write_file_get

Status: fixed on 2023/02/24 13:50
Subsystems: fuse
[Documentation on labels]
Reported-by: syzbot+6e1efbd8efaaa6860e91@syzkaller.appspotmail.com
Fix commit: 035ff33cf4db fuse: write inode in fuse_release()
First crash: 771d, last: 641d
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
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in fuse_writepage_locked fuse 12 672d 914d 0/26 closed as dup on 2022/04/20 15:14
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.18 0000/1095] 5.18.18-rc1 review 1101 (1101) 2022/08/21 13:22
[PATCH 5.19 0000/1157] 5.19.2-rc1 review 1184 (1184) 2022/08/21 08:05
[syzbot] WARNING in fuse_write_file_get 0 (1) 2022/04/15 18:30

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 41 at fs/fuse/file.c:1843 spin_unlock include/linux/spinlock.h:389 [inline]
WARNING: CPU: 0 PID: 41 at fs/fuse/file.c:1843 __fuse_write_file_get fs/fuse/file.c:1835 [inline]
WARNING: CPU: 0 PID: 41 at fs/fuse/file.c:1843 fuse_write_file_get+0xb7/0xf0 fs/fuse/file.c:1842
Modules linked in:
CPU: 0 PID: 41 Comm: kworker/u4:2 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Workqueue: writeback wb_workfn (flush-0:38)
RIP: 0010:fuse_write_file_get+0xb7/0xf0 fs/fuse/file.c:1843
Code: bf ff ff ff ff e8 29 af 9b fe 09 dd 78 36 e8 00 ab 9b fe 4c 89 f7 e8 a8 ae 48 07 eb 0f e8 f1 aa 9b fe 4c 89 f7 e8 99 ae 48 07 <0f> 0b 4c 89 e0 5b 41 5c 41 5e 41 5f 5d c3 e8 d6 aa 9b fe be 02 00
RSP: 0018:ffffc90000b26eb0 EFLAGS: 00010286
RAX: 0000000080000000 RBX: ffff888073e86a08 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc90000b271f0 R08: dffffc0000000000 R09: ffffed100e7d0d65
R10: ffffed100e7d0d65 R11: 1ffff1100e7d0d64 R12: 0000000000000000
R13: ffffea00013a7300 R14: ffff888073e86b20 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556437628 CR3: 000000002766b000 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:2153
 write_cache_pages+0x7dd/0x1350 mm/page-writeback.c:2359
 fuse_writepages+0x295/0x470 fs/fuse/file.c:2259
 do_writepages+0x3c3/0x690 mm/page-writeback.c:2468
 __writeback_single_inode+0xd1/0x670 fs/fs-writeback.c:1587
 writeback_sb_inodes+0xb45/0x18c0 fs/fs-writeback.c:1865
 __writeback_inodes_wb+0x125/0x420 fs/fs-writeback.c:1936
 wb_writeback+0x450/0x7a0 fs/fs-writeback.c:2041
 wb_check_background_flush fs/fs-writeback.c:2107 [inline]
 wb_do_writeback fs/fs-writeback.c:2195 [inline]
 wb_workfn+0xb5f/0xf10 fs/fs-writeback.c:2222
 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 (85):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/07 20:36 upstream 200e340f2196 88e3a122 .config strace log report syz C ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/25 14:59 upstream af2d861d4cd2 c889aef9 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/14 05:36 upstream a19944809fe9 b17b2923 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/07 14:48 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/05 10:36 upstream 200e340f2196 1c9013ac .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/04 18:19 upstream 200e340f2196 1c9013ac .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/04 02:01 upstream 200e340f2196 1c9013ac .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/02 21:51 upstream 7d0d3fa7339e 1c9013ac .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/31 00:24 upstream 620725263f42 fef302b1 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/30 09:59 upstream e65c6a46df94 fef302b1 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/26 08:54 upstream e0dccc3b76fb 34795c51 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/22 14:37 upstream 68e77ffbfd06 22343af4 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/21 06:08 upstream 353f7988dd84 88cb1383 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/18 02:13 upstream ff6992735ade 95cb00d1 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/17 13:44 upstream 972a278fe60c 95cb00d1 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/13 11:59 upstream b047602d579b 5d921b08 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/07 20:03 upstream e8a4e1c1bb69 bff65f44 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/06 18:42 upstream 9f09069cde34 bff65f44 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/05 07:01 upstream c1084b6c5620 bff65f44 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/07/02 09:30 upstream 089866061428 1434eec0 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/29 22:51 upstream d9b2ba67917c 1434eec0 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/28 09:53 upstream 941e3e791269 ef82eb2c .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/26 20:35 upstream 0840a7914caa a371c43c .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/26 13:40 upstream 0840a7914caa a371c43c .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/21 19:34 upstream 78ca55889a54 0fc5c330 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/20 21:18 upstream 78ca55889a54 8d15e28d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/19 22:12 upstream 05c6ca8512f2 8f633d84 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/19 19:21 upstream 05c6ca8512f2 8f633d84 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/19 08:50 upstream 354c6e071be9 8f633d84 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/17 12:24 upstream 0639b599f6f3 1719ee24 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/16 06:20 upstream 979086f5e006 1719ee24 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/15 04:54 upstream 018ab4fabddd 127d1faf .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/12 08:51 upstream 7a68065eb9cd 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/11 13:17 upstream 0885eacdc81f 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/07 23:10 upstream e71e60cd74df c8857892 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/03 07:31 upstream 50fd82b3a9a9 02dddea8 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/02 16:27 upstream d1dc87763f40 5783034f .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/06/02 08:35 upstream 8171acb8bc9b b4bc6a3d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/29 08:24 upstream 664a393a2663 a46af346 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/29 01:39 upstream 9d004b2f4fea a46af346 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/28 00:14 upstream 8291eaafed36 a46af346 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/26 22:22 upstream babf0bb978e3 3037caa9 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/26 04:50 upstream 7e062cda7d90 3037caa9 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/25 06:56 upstream aa051d36ce4a 647c0e27 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/05/25 04:05 upstream aa051d36ce4a 647c0e27 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/20 05:28 upstream b7f73403a3e9 7d7bc738 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/18 09:36 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/17 01:06 upstream 90ea17a9e27b 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/17 01:03 upstream 90ea17a9e27b 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/16 17:17 upstream 59250f8a7f3a 8bcc32a6 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/15 04:36 upstream b9b4c79e5830 b17b2923 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/14 18:39 upstream a19944809fe9 b17b2923 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/04/14 04:48 upstream a19944809fe9 b17b2923 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in fuse_write_file_get
2022/08/22 03:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 WARNING in fuse_write_file_get
2022/08/20 01:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 WARNING in fuse_write_file_get
* Struck through repros no longer work on HEAD.