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: 148d, last: 4h38m
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 242d 243d 0/24 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in generic_write_end / mpage_process_page_bufs 1952 286d 1090d 0/24 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 0xffff88812190e648 of 8 bytes by task 7354 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2183
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3089
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 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+0x63/0xcd

read to 0xffff88812190e648 of 8 bytes by task 7359 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 mpage_process_page_bufs+0x34/0x530 fs/ext4/inode.c:2206
 mpage_prepare_extent_to_map+0x5b7/0xa50 fs/ext4/inode.c:2653
 ext4_writepages+0x9b8/0x1cf0 fs/ext4/inode.c:2825
 do_writepages+0x1db/0x350 mm/page-writeback.c:2468
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:773
 ext4_sync_file+0x105/0x6d0 fs/ext4/fsync.c:151
 vfs_fsync_range fs/sync.c:188 [inline]
 vfs_fsync fs/sync.c:202 [inline]
 do_fsync fs/sync.c:212 [inline]
 __do_sys_fdatasync fs/sync.c:225 [inline]
 __se_sys_fdatasync fs/sync.c:223 [inline]
 __x64_sys_fdatasync+0x7a/0xd0 fs/sync.c:223
 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+0x63/0xcd

value changed: 0x0000000000416000 -> 0x0000000000418000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7359 Comm: syz-executor.2 Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (414):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 15:30 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/10/02 20:55 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/10/02 07:50 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/10/01 12:53 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/30 17:44 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/30 08:05 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/29 13:08 upstream c3e0e1e23c70 a41a2080 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/28 18:51 upstream 49c13ed0316d 75c78242 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/28 00:08 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/27 05:01 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/27 03:28 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/26 08:34 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/25 23:02 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/25 04:21 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/24 09:25 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/23 14:09 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/22 15:28 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/22 11:57 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/21 22:13 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/21 17:23 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/21 10:14 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/20 19:13 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/20 18:59 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/20 16:28 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/20 07:31 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/19 12:08 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/19 07:00 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/18 17:39 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/17 05:41 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/16 16:19 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/15 07:04 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/14 09:53 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/13 19:57 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/13 13:48 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/13 07:25 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/12 23:16 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/12 16:23 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/12 09:19 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/11 20:06 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/10 18:02 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/09 23:36 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/09 12:32 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/09 10:43 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/09 02:37 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/08 13:13 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/08 11:03 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/07 23:31 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/07 11:32 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/06 22:35 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/09/06 20:02 upstream d2ec799d1c1b 65aea2b9 .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 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/08 17:55 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
* Struck through repros no longer work on HEAD.