syzbot


KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete

Status: auto-closed as invalid on 2020/06/18 14:14
Subsystems: ext4
[Documentation on labels]
First crash: 1491d, last: 1443d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete (4) fs mm 7 1072d 1127d 0/26 auto-closed as invalid on 2021/06/16 07:05
upstream KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete (3) ext4 6 1184d 1228d 0/26 auto-closed as invalid on 2021/02/24 09:14
upstream KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete (2) fs mm 2 1273d 1306d 0/26 auto-closed as invalid on 2020/11/27 11:56
upstream KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete (6) fs mm 1 916d 916d 0/26 auto-closed as invalid on 2021/11/19 12:34
upstream KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete (5) fs mm 1 996d 996d 0/26 auto-closed as invalid on 2021/09/03 02:27

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __add_to_page_cache_locked / iomap_dio_complete

write to 0xffff888121873300 of 8 bytes by task 14230 on cpu 1:
 __add_to_page_cache_locked+0x28a/0x770 mm/filemap.c:868
 add_to_page_cache_lru+0xc7/0x260 mm/filemap.c:921
 ext4_mpage_readpages+0x319/0x1450 fs/ext4/readpage.c:259
 ext4_readpages+0x8e/0xb0 fs/ext4/inode.c:3243
 read_pages+0xa2/0x2d0 mm/readahead.c:126
 __do_page_cache_readahead+0x358/0x380 mm/readahead.c:212
 ra_submit mm/internal.h:62 [inline]
 ondemand_readahead+0x369/0x730 mm/readahead.c:492
 page_cache_sync_readahead+0x1b0/0x1e0 mm/readahead.c:527
 generic_file_buffered_read mm/filemap.c:2036 [inline]
 generic_file_read_iter+0xef7/0x14e0 mm/filemap.c:2309
 ext4_file_read_iter fs/ext4/file.c:131 [inline]
 ext4_file_read_iter+0x103/0x360 fs/ext4/file.c:114
 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:1576 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0xb8/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 0xffff888121873300 of 8 bytes by task 14223 on cpu 0:
 iomap_dio_complete+0x287/0x3c0 fs/iomap/direct-io.c:106
 iomap_dio_rw+0x8e3/0x9a0 fs/iomap/direct-io.c:569
 ext4_dio_write_iter fs/ext4/file.c:532 [inline]
 ext4_file_write_iter+0xb84/0xd30 fs/ext4/file.c:640
 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

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/06 22:44 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 4618eb2d .config console log report ci2-upstream-kcsan-gce
2020/04/29 13:27 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 ba2806db .config console log report ci2-upstream-kcsan-gce
2020/03/19 08:52 https://github.com/google/ktsan.git kcsan 40959e34d670 2c31c529 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.