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
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 186d, last: 186d
similar bugs (3):
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) 1 366d 366d 0/24 auto-closed as invalid on 2021/12/29 19:13
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached (2) 1 417d 417d 0/24 auto-closed as invalid on 2021/11/09 15:48
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached 1 452d 452d 0/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/24 09:44 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached
* Struck through repros no longer work on HEAD.