syzbot


KCSAN: data-race in generic_write_end / mpage_process_page_bufs (3)

Status: auto-obsoleted due to no activity on 2023/09/28 17:49
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+bb12857e30a5b9dc849a@syzkaller.appspotmail.com
First crash: 766d, last: 286d
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) ext4 5 860d 861d 0/28 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in generic_write_end / mpage_process_page_bufs ext4 1952 904d 1708d 0/28 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 0xffff88810a8a2f18 of 8 bytes by task 20600 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 generic_write_end+0x94/0x230 fs/buffer.c:2280
 ext4_da_write_end+0x49e/0x6f0 fs/ext4/inode.c:2988
 generic_perform_write+0x267/0x410 mm/filemap.c:3956
 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299
 ext4_file_write_iter+0x283/0x1230
 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1142
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1088
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810a8a2f18 of 8 bytes by task 20599 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 mpage_process_page_bufs+0x34/0x5d0 fs/ext4/inode.c:1956
 mpage_prepare_extent_to_map+0x780/0xb70 fs/ext4/inode.c:2487
 ext4_do_writepages+0xa52/0x21c0 fs/ext4/inode.c:2675
 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2766
 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553
 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:393
 __filemap_fdatawrite_range mm/filemap.c:426 [inline]
 __filemap_fdatawrite mm/filemap.c:432 [inline]
 filemap_flush+0x95/0xc0 mm/filemap.c:459
 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3033
 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169
 __fput+0x2fd/0x5f0 fs/file_table.c:384
 __fput_sync+0x44/0x50 fs/file_table.c:465
 __do_sys_close fs/open.c:1572 [inline]
 __se_sys_close+0xfa/0x1a0 fs/open.c:1557
 __x64_sys_close+0x1f/0x30 fs/open.c:1557
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000001cfb000 -> 0x0000000001cfc000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20599 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-08894-gb97d64c72259 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1346):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/31 17:39 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/31 14:21 upstream b97d64c72259 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/31 01:06 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/30 11:39 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/30 07:51 upstream 6c1b980a7e79 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/29 17:32 upstream 1c59d383390f ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/29 10:20 upstream 1c59d383390f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/28 21:04 upstream 727dbda16b83 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/28 09:32 upstream 2dde18cd1d8f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/28 00:22 upstream 2dde18cd1d8f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/27 10:14 upstream 28f20a19294d 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/26 20:14 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/26 05:07 upstream 382d4cd18475 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/25 23:03 upstream 382d4cd18475 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/25 09:28 upstream 4f9e7fabf864 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/25 05:41 upstream 4f9e7fabf864 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/24 16:24 upstream 93f5de5f648d 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/24 16:22 upstream 93f5de5f648d 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/24 02:47 upstream a5e505a99ca7 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/23 22:07 upstream a5e505a99ca7 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/23 08:45 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/22 19:13 upstream 53663f4103ff b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/22 12:57 upstream f7757129e3de b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/21 17:24 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/21 06:09 upstream f7757129e3de d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/20 16:22 upstream 706a74159504 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/20 02:58 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/19 12:50 upstream aa9ea98cca3a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/18 23:09 upstream d4ddefee5160 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/18 10:12 upstream 0e8860d2125f acb1ba71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/18 05:54 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/17 15:59 upstream 16931859a650 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/16 21:00 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/16 10:08 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/15 20:50 upstream d4f8e13b0614 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/15 07:28 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/14 00:14 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/13 10:49 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/12 20:58 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/12 07:37 upstream f8de32cc060b 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/11 18:10 upstream 9106536c1aa3 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/11 14:57 upstream 25aa0bebba72 39990d51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/11 03:27 upstream 25aa0bebba72 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/10 11:50 upstream 374a7f47bf40 da3c3ef8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2023/08/10 09:12 upstream 374a7f47bf40 13ca4cd6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2022/05/09 16:22 upstream 9be9ed2612b5 8b277b8e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2022/05/09 06:48 upstream c5eb0a61238d e60b1103 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
2022/05/08 17:55 upstream 379c72654524 e60b1103 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / mpage_process_page_bufs
* Struck through repros no longer work on HEAD.