syzbot


KCSAN: data-race in generic_write_end / mpage_process_page_bufs (3)
Status: moderation: reported on 2022/05/10 00:50
Reported-by: syzbot+bb12857e30a5b9dc849a@syzkaller.appspotmail.com
First crash: 19d, last: 5h40m
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_write_end / mpage_process_page_bufs (2) 5 113d 115d 0/22 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in generic_write_end / mpage_process_page_bufs 1952 157d 962d 0/22 auto-closed as invalid on 2022/01/25 08:32

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_write_end / mpage_process_page_bufs

write to 0xffff888124505178 of 8 bytes by task 3870 on cpu 1:
 i_size_write include/linux/fs.h:871 [inline]
 generic_write_end+0x98/0x230 fs/buffer.c:2183
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3078
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3780
 ext4_buffered_write_iter+0x222/0x330 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 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/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff888124505178 of 8 bytes by task 3859 on cpu 0:
 i_size_read include/linux/fs.h:849 [inline]
 mpage_process_page_bufs+0x34/0x530 fs/ext4/inode.c:2194
 mpage_prepare_extent_to_map+0x5b7/0xa50 fs/ext4/inode.c:2642
 ext4_writepages+0x9b8/0x1d00 fs/ext4/inode.c:2814
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 __filemap_fdatawrite mm/filemap.c:427 [inline]
 filemap_flush+0x93/0xc0 mm/filemap.c:454
 ext4_alloc_da_blocks+0x47/0x100 fs/ext4/inode.c:3122
 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:143
 __fput+0x292/0x510 fs/file_table.c:317
 ____fput+0x11/0x20 fs/file_table.c:350
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x0000000002043000 -> 0x0000000002044000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3859 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-10139-g8291eaafed36-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (79):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 21:36 upstream 8291eaafed36 a46af346 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/26 20:24 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/26 06:21 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/25 13:30 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/25 11:45 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/12 13:19 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/11 16:56 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/10 23:22 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 16:22 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 09:16 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 09:16 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 08:08 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 06:48 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 05:44 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 05:24 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 05:20 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 04:59 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 04:39 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 04:38 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 04:14 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 03:51 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 03:50 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 03:29 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 03:07 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 02:46 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 02:24 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 01:56 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 01:44 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 01:42 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 01:14 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 00:55 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 00:53 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 00:41 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 23:52 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 23:31 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 22:30 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 22:08 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 21:47 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 21:29 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 21:05 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:57 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:47 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:45 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:45 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:22 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:20 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:04 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 20:01 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 19:39 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 19:21 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 18:51 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 18:09 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 17:58 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/08 17:55 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs