syzbot


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

Status: auto-closed as invalid on 2021/03/24 09:14
Subsystems: iomap
[Documentation on labels]
First crash: 1441d, last: 1441d
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) fs 1 1724d 1724d 0/28 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) mm 3 1595d 1644d 0/28 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) iomap 1 1326d 1326d 0/28 auto-closed as invalid on 2021/07/17 19:01
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range ext4 1 1921d 1921d 0/28 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (7) mm 1 1201d 1201d 0/28 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) mm 1 1361d 1361d 0/28 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 0xffff88800a643358 of 8 bytes by task 11065 on cpu 1:
 page_cache_delete mm/filemap.c:154 [inline]
 __delete_from_page_cache+0x28b/0x360 mm/filemap.c:239
 invalidate_complete_page2+0x126/0x2c0 mm/truncate.c:679
 invalidate_inode_pages2_range+0x49f/0x790 mm/truncate.c:772
 __iomap_dio_rw+0x52e/0x9b0 fs/iomap/direct-io.c:499
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
 ext4_dio_write_iter fs/ext4/file.c:552 [inline]
 ext4_file_write_iter+0xe6a/0x1060 fs/ext4/file.c:662
 call_write_iter include/linux/fs.h:1901 [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+0x41a/0x770 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:933
 splice_direct_to_actor+0x345/0x650 fs/splice.c:888
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5e0/0xcf0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88800a643358 of 8 bytes by task 11056 on cpu 0:
 mapping_needs_writeback mm/filemap.c:630 [inline]
 filemap_write_and_wait_range+0x65/0x2a0 mm/filemap.c:654
 __iomap_dio_rw+0x38c/0x9b0 fs/iomap/direct-io.c:489
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
 ext4_dio_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0x3cd/0x430 fs/ext4/file.c:129
 call_read_iter include/linux/fs.h:1895 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5e0/0xcf0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11056 Comm: syz-executor.1 Not tainted 5.11.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/02/17 09:13 upstream f40ddce88593 052f8d9f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range
* Struck through repros no longer work on HEAD.