syzbot


KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (3)

Status: auto-closed as invalid on 2021/09/09 20:32
Subsystems: iomap
[Documentation on labels]
First crash: 933d, last: 933d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (4) mm 7 773d 868d 0/26 auto-closed as invalid on 2022/02/16 13:29
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (2) iomap 221 1010d 1251d 0/26 auto-closed as invalid on 2021/06/25 01:53
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range iomap 8 1369d 1463d 0/26 closed as invalid on 2020/06/18 14:24

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

write to 0xffff88812ce649b0 of 8 bytes by task 8596 on cpu 0:
 page_cache_delete mm/filemap.c:145 [inline]
 __delete_from_page_cache+0x1c1/0x260 mm/filemap.c:230
 invalidate_complete_page2 mm/truncate.c:576 [inline]
 invalidate_inode_pages2_range+0x537/0x7a0 mm/truncate.c:663
 __iomap_dio_rw+0x557/0xa60 fs/iomap/direct-io.c:543
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa4f/0x11d0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812ce649b0 of 8 bytes by task 8597 on cpu 1:
 mapping_needs_writeback mm/filemap.c:621 [inline]
 file_write_and_wait_range+0x48/0x210 mm/filemap.c:791
 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2987 [inline]
 iomap_dio_complete+0x2d5/0x3c0 fs/iomap/direct-io.c:127
 iomap_dio_rw+0x4e/0x70 fs/iomap/direct-io.c:652
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa4f/0x11d0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000000d1 -> 0x00000000000000cf

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8597 Comm: syz-executor.3 Tainted: G        W         5.14.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/08/05 20:29 upstream e04480920d1e d2d6e680 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
* Struck through repros no longer work on HEAD.