syzbot


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

Status: auto-closed as invalid on 2021/11/09 15:48
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 417d, last: 417d
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 (4) 1 186d 186d 0/24 auto-closed as invalid on 2022/06/28 09: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

write to 0xffff888105f8a230 of 8 bytes by task 15655 on cpu 1:
 inode_cgwb_move_to_attached+0x79/0x1f0 fs/fs-writeback.c:1167
 requeue_inode fs/fs-writeback.c:1589 [inline]
 writeback_sb_inodes+0xb4d/0xd30 fs/fs-writeback.c:1908
 wb_writeback+0x27d/0x6d0 fs/fs-writeback.c:2053
 wb_do_writeback+0x101/0x530 fs/fs-writeback.c:2196
 wb_workfn+0xc8/0x540 fs/fs-writeback.c:2237
 process_one_work+0x402/0x910 kernel/workqueue.c:2297
 worker_thread+0x636/0xae0 kernel/workqueue.c:2444
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

read to 0xffff888105f8a230 of 8 bytes by task 2424 on cpu 0:
 __mark_inode_dirty+0xda/0x6a0 fs/fs-writeback.c:2419
 mark_inode_dirty_sync include/linux/fs.h:2457 [inline]
 dquot_free_space include/linux/quotaops.h:382 [inline]
 dquot_free_block include/linux/quotaops.h:392 [inline]
 ext4_mb_new_blocks+0x16fc/0x1fc0 fs/ext4/mballoc.c:5634
 ext4_ext_map_blocks+0x15ed/0x1ff0 fs/ext4/extents.c:4250
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4437
 ext4_fallocate+0x2a7/0x4d0 fs/ext4/extents.c:4718
 vfs_fallocate+0x459/0x6a0 fs/open.c:307
 do_vfs_ioctl+0x13c6/0x14c0 fs/ioctl.c:853
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl+0x83/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020080 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2424 Comm: syz-executor.2 Not tainted 5.15.0-rc4-syzkaller #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 2021/10/05 15:43 upstream f6274b06e326 8a6b1a8d .config log report info KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached
* Struck through repros no longer work on HEAD.