syzbot


KCSAN: data-race in ext4_mpage_readpages / ext4_write_end (2)

Status: auto-closed as invalid on 2021/09/11 06:37
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 476d, last: 476d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_mpage_readpages / ext4_write_end 1 688d 688d 0/24 auto-closed as invalid on 2021/02/11 03:34

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_mpage_readpages / ext4_write_end

write to 0xffff88810179aab0 of 8 bytes by task 26760 on cpu 1:
 i_size_write include/linux/fs.h:871 [inline]
 ext4_update_inode_size fs/ext4/ext4.h:3359 [inline]
 ext4_write_end+0x1d7/0x820 fs/ext4/inode.c:1309
 generic_perform_write+0x22a/0x3c0 mm/filemap.c:3667
 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519
 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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810179aab0 of 8 bytes by task 26827 on cpu 0:
 i_size_read include/linux/fs.h:849 [inline]
 ext4_readpage_limit fs/ext4/readpage.c:221 [inline]
 ext4_mpage_readpages+0x34b/0x1130 fs/ext4/readpage.c:265
 ext4_readahead+0x99/0xa0 fs/ext4/inode.c:3260
 read_pages+0x9f/0x530 mm/readahead.c:130
 page_cache_ra_unbounded+0x3c8/0x410 mm/readahead.c:238
 ondemand_readahead+0x579/0x7b0 mm/readahead.c:267
 page_cache_async_ra+0x165/0x190 mm/readahead.c:607
 page_cache_async_readahead include/linux/pagemap.h:907 [inline]
 filemap_readahead mm/filemap.c:2442 [inline]
 filemap_get_pages mm/filemap.c:2483 [inline]
 filemap_read+0x49d/0x1220 mm/filemap.c:2550
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701
 ext4_file_read_iter+0x1db/0x290 fs/ext4/file.c:73
 call_read_iter include/linux/fs.h:2108 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x000000000023c541 -> 0x000000000023c681

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 26827 Comm: syz-executor.4 Tainted: G        W         5.14.0-rc4-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/08/07 06:28 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in ext4_mpage_readpages / ext4_write_end
* Struck through repros no longer work on HEAD.