syzbot


KCSAN: data-race in __writeback_single_inode / inode_io_list_del (9)

Status: auto-obsoleted due to no activity on 2023/04/29 11:24
Subsystems: fs
[Documentation on labels]
First crash: 392d, last: 392d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del fs 3 1246d 1230d 0/26 auto-closed as invalid on 2020/12/26 08:23
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (6) fs 4 776d 857d 0/26 auto-closed as invalid on 2022/04/10 08:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (4) fs 3 955d 981d 0/26 auto-closed as invalid on 2021/10/13 08:56
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (8) fs 1 490d 490d 0/26 auto-obsoleted due to no activity on 2023/02/11 03:08
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (11) fs 1 117d 117d 0/26 auto-obsoleted due to no activity on 2024/01/29 08:54
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (10) fs 1 209d 209d 0/26 auto-obsoleted due to no activity on 2023/10/28 20:31
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (2) fs 1 1208d 1208d 0/26 auto-closed as invalid on 2021/02/02 10:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (3) fs 7 1032d 1104d 0/26 auto-closed as invalid on 2021/07/28 16:39
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (5) fs 1 912d 912d 0/26 auto-closed as invalid on 2021/11/25 13:43
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (7) fs 2 555d 563d 0/26 auto-obsoleted due to no activity on 2022/11/17 07:22

Sample crash report:
EXT4-fs (sda1): Delayed block allocation failed for inode 1160 at logical offset 2055 with max blocks 32 with error 28
EXT4-fs (sda1): This should not happen!! Data will be lost
==================================================================
BUG: KCSAN: data-race in __writeback_single_inode / inode_io_list_del

read-write to 0xffff88810ab803c0 of 8 bytes by task 3150 on cpu 0:
 inode_io_list_del+0x52/0x1d0 fs/fs-writeback.c:1244
 evict+0xad/0x410 fs/inode.c:652
 iput_final fs/inode.c:1748 [inline]
 iput+0x42c/0x5b0 fs/inode.c:1774
 do_unlinkat+0x2b3/0x4f0 fs/namei.c:4323
 __do_sys_unlink fs/namei.c:4364 [inline]
 __se_sys_unlink fs/namei.c:4362 [inline]
 __x64_sys_unlink+0x30/0x40 fs/namei.c:4362
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810ab803c0 of 8 bytes by task 2006 on cpu 1:
 __writeback_single_inode+0x48/0x860 fs/fs-writeback.c:1596
 writeback_sb_inodes+0x515/0xaa0 fs/fs-writeback.c:1891
 wb_writeback+0x23b/0x6c0 fs/fs-writeback.c:2065
 wb_do_writeback fs/fs-writeback.c:2208 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2248
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537
 kthread+0x1ac/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x0000000000020087 -> 0x00000000000000a7

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2006 Comm: kworker/u4:4 Not tainted 6.3.0-rc3-syzkaller-00317-g65aca32efdcb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/25 11:15 upstream 65aca32efdcb fbf0499a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / inode_io_list_del
* Struck through repros no longer work on HEAD.