syzbot


KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range

Status: closed as invalid on 2019/11/19 13:44
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1028d, last: 1028d
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 (6) 1 432d 432d 0/23 auto-closed as invalid on 2021/07/17 19:01
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 (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 0xffff8881249bdb50 of 8 bytes by task 28222 on cpu 1:
 page_cache_delete mm/filemap.c:152 [inline]
 __delete_from_page_cache+0x1d8/0x4a0 mm/filemap.c:237
 invalidate_complete_page2 mm/truncate.c:639 [inline]
 invalidate_inode_pages2_range+0x757/0xbb0 mm/truncate.c:732
 generic_file_direct_write+0x110/0x2e0 mm/filemap.c:3195
 __generic_file_write_iter+0x17e/0x380 mm/filemap.c:3390
 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1895 [inline]
 do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693
 do_iter_write fs/read_write.c:970 [inline]
 do_iter_write+0x13b/0x3c0 fs/read_write.c:951
 vfs_iter_write+0x5c/0x80 fs/read_write.c:983
 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746
 do_splice_from fs/splice.c:848 [inline]
 direct_splice_actor+0xa0/0xc0 fs/splice.c:1020
 splice_direct_to_actor+0x215/0x510 fs/splice.c:975
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511

read to 0xffff8881249bdb50 of 8 bytes by task 28224 on cpu 0:
 mapping_needs_writeback mm/filemap.c:631 [inline]
 filemap_write_and_wait_range+0x6f/0x150 mm/filemap.c:679
 generic_file_read_iter+0x1015/0x1440 mm/filemap.c:2293
 ext4_file_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65
 call_read_iter include/linux/fs.h:1889 [inline]
 generic_file_splice_read+0x35c/0x500 fs/splice.c:307
 do_splice_to+0xf2/0x130 fs/splice.c:877
 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511
 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: 0 PID: 28224 Comm: syz-executor.4 Not tainted 5.4.0-rc3+ #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 2019/10/26 02:50 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config log report