syzbot


KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached (4)

Status: auto-closed as invalid on 2022/06/28 09:48
Subsystems: ext4
[Documentation on labels]
First crash: 694d, last: 694d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached (3) exfat 1 875d 875d 0/26 auto-closed as invalid on 2021/12/29 19:13
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached (2) ext4 1 925d 925d 0/26 auto-closed as invalid on 2021/11/09 15:48
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached (5) ext4 1 381d 381d 0/26 auto-obsoleted due to no activity on 2023/05/07 10:14
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached ext4 1 960d 960d 0/26 auto-closed as invalid on 2021/10/05 03:36

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached

read-write to 0xffff88814cd6e650 of 8 bytes by task 15862 on cpu 0:
 inode_cgwb_move_to_attached+0x70/0x2c0 fs/fs-writeback.c:283
 requeue_inode fs/fs-writeback.c:1554 [inline]
 writeback_sb_inodes+0xc1a/0xdd0 fs/fs-writeback.c:1888
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2033
 wb_do_writeback+0x101/0x600 fs/fs-writeback.c:2176
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2216
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff88814cd6e650 of 8 bytes by task 6828 on cpu 1:
 __mark_inode_dirty+0xd5/0x5f0 fs/fs-writeback.c:2395
 ext4_mb_new_blocks+0x86c/0xae0
 ext4_ext_map_blocks+0x9e2/0x1560 fs/ext4/extents.c:4281
 ext4_map_blocks+0x57e/0xbb0 fs/ext4/inode.c:636
 ext4_alloc_file_blocks+0x1b3/0x580 fs/ext4/extents.c:4466
 ext4_fallocate+0x2eb/0x3a0 fs/ext4/extents.c:4751
 vfs_fallocate+0x355/0x3d0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020080 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6828 Comm: syz-executor.5 Not tainted 5.18.0-syzkaller-00511-g140e40e39a29-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/24 09:44 upstream 140e40e39a29 e7f9308d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached
* Struck through repros no longer work on HEAD.