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
Subsystems: ext4
[Documentation on labels]
First crash: 930d, last: 930d
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 880d 880d 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 (5) ext4 1 386d 386d 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 (4) ext4 1 699d 699d 0/26 auto-closed as invalid on 2022/06/28 09:48
upstream KCSAN: data-race in __mark_inode_dirty / inode_cgwb_move_to_attached ext4 1 966d 966d 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

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/05 15:43 upstream f6274b06e326 8a6b1a8d .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.