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: 268d, last: 4h31m
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 362d 364d 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 407d 1211d 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 0xffff88810b176bd8 of 8 bytes by task 6422 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2168
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3175
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:285
 ext4_file_write_iter+0x2bb/0x11b0
 __kernel_write_iter+0x157/0x380 fs/read_write.c:517
 dump_emit_page+0x3de/0x830 fs/coredump.c:864
 dump_user_range+0x5e/0x200 fs/coredump.c:915
 elf_core_dump+0x1b4f/0x1c60 fs/binfmt_elf.c:2137
 do_coredump+0xed7/0x1790 fs/coredump.c:762
 get_signal+0xa04/0xc70 kernel/signal.c:2845
 arch_do_signal_or_restart+0x85/0x290 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x69/0x90 kernel/entry/common.c:203
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:309
 irqentry_exit+0xe/0x40 kernel/entry/common.c:412
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570

read to 0xffff88810b176bd8 of 8 bytes by task 3139 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 mpage_process_page_bufs+0x34/0x530 fs/ext4/inode.c:2221
 mpage_prepare_extent_to_map+0x6f5/0xcf0 fs/ext4/inode.c:2697
 ext4_do_writepages+0xa56/0x1e70 fs/ext4/inode.c:2875
 ext4_writepages+0x11b/0x240 fs/ext4/inode.c:2965
 do_writepages+0x1db/0x350 mm/page-writeback.c:2581
 __writeback_single_inode+0x81/0x590 fs/fs-writeback.c:1598
 writeback_sb_inodes+0x4dd/0xa30 fs/fs-writeback.c:1889
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2063
 wb_do_writeback+0x101/0x600 fs/fs-writeback.c:2206
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2246
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x0000000002032000 -> 0x0000000002034000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3139 Comm: kworker/u4:7 Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (685):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/01 10:21 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/02/01 04:45 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/31 14:42 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/31 00:53 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/30 09:48 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/29 20:19 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/29 00:06 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/28 10:33 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/27 21:18 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/25 11:50 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/24 22:18 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/23 21:05 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/23 13:55 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/23 12:48 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/23 11:36 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/23 08:04 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/22 21:21 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/22 05:00 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/21 15:24 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/21 00:48 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/20 22:39 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/20 09:33 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/19 21:33 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/19 06:46 upstream 7287904c8771 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/18 11:11 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/17 16:22 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/16 22:15 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/16 02:24 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/15 06:59 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/14 11:12 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/14 10:02 upstream 97ec4d559d93 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/13 14:35 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/13 04:25 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/12 08:38 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/11 13:46 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/11 01:54 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/10 07:48 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/09 21:34 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/09 03:16 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/08 09:18 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/07 15:11 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/06 18:10 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/05 21:42 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/05 04:58 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2023/01/04 07:09 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2022/05/09 16:22 upstream 9be9ed2612b5 8b277b8e .config console 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 console 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 console log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
* Struck through repros no longer work on HEAD.