syzbot


KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty

Status: closed as invalid on 2019/11/19 13:24
Subsystems: ext4
[Documentation on labels]
First crash: 1643d, last: 1632d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (3) exfat 197 661d 1232d 0/26 auto-closed as invalid on 2022/08/05 09:53
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (2) ext4 19 1404d 1608d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (4) ext4 exfat 146 1d14h 136d 0/26 moderation: reported on 2023/12/08 00:06

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

read to 0xffff88812a7ae8b0 of 8 bytes by task 19222 on cpu 0:
 __mark_inode_dirty+0xb8/0x940 fs/fs-writeback.c:2269
 generic_update_time+0x184/0x270 fs/inode.c:1667
 update_time fs/inode.c:1683 [inline]
 touch_atime+0x172/0x190 fs/inode.c:1754
 file_accessed include/linux/fs.h:2202 [inline]
 ext4_file_mmap+0x22b/0x240 fs/ext4/file.c:385
 call_mmap include/linux/fs.h:1900 [inline]
 mmap_region+0x83c/0xd50 mm/mmap.c:1806
 do_mmap+0x6d4/0xba0 mm/mmap.c:1577
 do_mmap_pgoff include/linux/mm.h:2353 [inline]
 vm_mmap_pgoff+0x12d/0x190 mm/util.c:496
 ksys_mmap_pgoff+0x2d8/0x420 mm/mmap.c:1629
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline]
 __x64_sys_mmap+0x91/0xc0 arch/x86/kernel/sys_x86_64.c:91
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88812a7ae8b0 of 8 bytes by task 19209 on cpu 1:
 __mark_inode_dirty+0x1ce/0x940 fs/fs-writeback.c:2286
 mark_inode_dirty include/linux/fs.h:2165 [inline]
 generic_write_end+0x1b7/0x1f0 fs/buffer.c:2159
 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3189
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3315
 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3433
 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 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+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19209 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/03 03:33 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
2019/10/24 08:50 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config console log report ci2-upstream-kcsan-gce
2019/10/23 05:09 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.