syzbot


KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (6)

Status: auto-closed as invalid on 2021/07/17 19:01
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 432d, last: 432d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (2) 1 831d 831d 0/23 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (3) 3 702d 751d 0/23 auto-closed as invalid on 2020/10/21 02:12
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (4) 1 548d 548d 0/23 auto-closed as invalid on 2021/03/24 09:14
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range 1 1028d 1028d 0/23 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (7) 1 308d 308d 0/23 auto-closed as invalid on 2021/11/19 18:15
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (5) 1 468d 468d 0/23 auto-closed as invalid on 2021/06/12 11:45

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

write to 0xffff8881314a69b0 of 8 bytes by task 1950 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:579 [inline]
 invalidate_inode_pages2_range+0x51a/0x780 mm/truncate.c:668
 __iomap_dio_rw+0x69a/0xad0 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_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881314a69b0 of 8 bytes by task 1934 on cpu 1:
 mapping_needs_writeback mm/filemap.c:621 [inline]
 filemap_write_and_wait_range+0x33/0x390 mm/filemap.c:685
 __iomap_dio_rw+0x500/0xad0 fs/iomap/direct-io.c:533
 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_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000005e6 -> 0x00000000000005e1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1934 Comm: syz-executor.0 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/06/12 18:57 upstream ad347abe4a98 1ba81399 .config log report info KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range