syzbot


KCSAN: data-race in __xa_set_mark / ext4_punch_hole

Status: auto-closed as invalid on 2021/05/31 11:44
Subsystems: ext4
[Documentation on labels]
First crash: 1086d, last: 1086d

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

write to 0xffff88812d8da4f4 of 4 bytes by task 11542 on cpu 0:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark lib/xarray.c:889 [inline]
 __xa_set_mark+0x279/0x290 lib/xarray.c:1899
 __set_page_dirty+0x155/0x1a0 fs/buffer.c:609
 mark_buffer_dirty+0x126/0x200 fs/buffer.c:1137
 __block_commit_write fs/buffer.c:2084 [inline]
 block_write_end+0x13d/0x260 fs/buffer.c:2163
 generic_write_end+0x5e/0x180 fs/buffer.c:2177
 ext4_da_write_end+0x59b/0x730 fs/ext4/inode.c:3112
 generic_perform_write+0x23e/0x3a0 mm/filemap.c:3593
 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:502
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x69d/0x770 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812d8da4f4 of 4 bytes by task 11545 on cpu 1:
 xa_marked include/linux/xarray.h:418 [inline]
 mapping_tagged include/linux/fs.h:490 [inline]
 ext4_punch_hole+0x105/0x9a0 fs/ext4/inode.c:4021
 ext4_fallocate+0xea/0x4d0 fs/ext4/extents.c:4655
 vfs_fallocate+0x463/0x660 fs/open.c:311
 ksys_fallocate fs/open.c:334 [inline]
 __do_sys_fallocate fs/open.c:342 [inline]
 __se_sys_fallocate fs/open.c:340 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:340
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11545 Comm: syz-executor.2 Not tainted 5.12.0-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/04/26 11:38 upstream 9f4ad9e425a1 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_set_mark / ext4_punch_hole
* Struck through repros no longer work on HEAD.