syzbot


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

Status: auto-closed as invalid on 2020/06/18 13:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 831d, last: 831d
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 (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 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 307d 307d 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 0xffff88811d938e80 of 8 bytes by task 11184 on cpu 0:
 page_cache_delete mm/filemap.c:153 [inline]
 __delete_from_page_cache+0x1e4/0x490 mm/filemap.c:238
 invalidate_complete_page2 mm/truncate.c:651 [inline]
 invalidate_inode_pages2_range+0x6ad/0xb40 mm/truncate.c:744
 generic_file_direct_write+0x10b/0x2f0 mm/filemap.c:3189
 __generic_file_write_iter+0x170/0x370 mm/filemap.c:3388
 generic_file_write_iter+0x294/0x38e mm/filemap.c:3463
 call_write_iter include/linux/fs.h:1907 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:694
 do_iter_write fs/read_write.c:999 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1582 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0x121/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811d938e80 of 8 bytes by task 11195 on cpu 1:
 mapping_needs_writeback mm/filemap.c:632 [inline]
 filemap_write_and_wait_range+0x6c/0x140 mm/filemap.c:653
 generic_file_read_iter+0x110c/0x18c0 mm/filemap.c:2279
 call_read_iter include/linux/fs.h:1901 [inline]
 generic_file_splice_read+0x2df/0x470 fs/splice.c:313
 do_splice_to+0xc7/0x100 fs/splice.c:892
 splice_direct_to_actor+0x1b9/0x540 fs/splice.c:971
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1582 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0x121/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11195 Comm: syz-executor.5 Not tainted 5.7.0-rc1-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 2020/05/10 08:22 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 8742a2b9 .config log report