syzbot


KCSAN: data-race in __inode_add_bytes / ext4_mark_iloc_dirty (2)

Status: auto-closed as invalid on 2020/05/30 16:54
Subsystems: fs
[Documentation on labels]
First crash: 1976d, last: 1976d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __inode_add_bytes / ext4_mark_iloc_dirty ext4 6 1 2110d 2110d 0/29 closed as invalid on 2019/11/19 14:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __inode_add_bytes / ext4_mark_iloc_dirty

write to 0xffff888129b1fa68 of 8 bytes by task 2524 on cpu 1:
 __inode_add_bytes+0x4f/0xd0 fs/stat.c:689
 dquot_claim_space_nodirty+0x30b/0x360 fs/quota/dquot.c:1772
 dquot_claim_block include/linux/quotaops.h:365 [inline]
 ext4_da_update_reserve_space+0x13f/0x390 fs/ext4/inode.c:360
 ext4_ext_map_blocks+0x1c92/0x20f0 fs/ext4/extents.c:4500
 ext4_map_blocks+0x230/0xcf0 fs/ext4/inode.c:622
 mpage_map_one_extent fs/ext4/inode.c:2365 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2418 [inline]
 ext4_writepages+0x108b/0x1d40 fs/ext4/inode.c:2772
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __writeback_single_inode+0xaa/0x910 fs/fs-writeback.c:1452
 writeback_sb_inodes+0x4c8/0xa10 fs/fs-writeback.c:1716
 __writeback_inodes_wb+0xe9/0x1b0 fs/fs-writeback.c:1785
 wb_writeback+0x557/0x6a0 fs/fs-writeback.c:1894
 wb_check_background_flush fs/fs-writeback.c:1962 [inline]
 wb_do_writeback fs/fs-writeback.c:2050 [inline]
 wb_workfn+0x66b/0x970 fs/fs-writeback.c:2078
 process_one_work+0x424/0x930 kernel/workqueue.c:2264
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2410
 kthread+0x1cb/0x1f0 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff888129b1fa68 of 8 bytes by task 27053 on cpu 0:
 ext4_inode_blocks_set fs/ext4/inode.c:4803 [inline]
 ext4_do_update_inode fs/ext4/inode.c:4962 [inline]
 ext4_mark_iloc_dirty+0x626/0x1500 fs/ext4/inode.c:5578
 ext4_mark_inode_dirty+0xe6/0x420 fs/ext4/inode.c:5771
 ext4_dirty_inode+0xad/0xd0 fs/ext4/inode.c:5802
 __mark_inode_dirty+0x5b7/0x940 fs/fs-writeback.c:2258
 mark_inode_dirty include/linux/fs.h:2183 [inline]
 generic_write_end+0x1ba/0x1f0 fs/buffer.c:2199
 ext4_da_write_end+0x162/0x670 fs/ext4/inode.c:3092
 generic_perform_write+0x1d7/0x320 mm/filemap.c:3298
 ext4_buffered_write_iter+0x14e/0x280 fs/ext4/file.c:270
 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write+0x303/0x400 fs/read_write.c:483
 __vfs_write+0x9e/0xb0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x189/0x380 fs/read_write.c:542
 ksys_write+0xc5/0x1a0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x49/0x60 fs/read_write.c:620
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27053 Comm: syz-executor.2 Not tainted 5.6.0-rc1-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
2020/03/21 16:46 https://github.com/google/ktsan.git kcsan 40959e34d670 aa6c6a55 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.