syzbot


KCSAN: data-race in generic_write_end / mpage_process_page_bufs
Status: auto-closed as invalid on 2022/01/25 08:32
Reported-by: syzbot+7d49c34deef9c3ddc57f@syzkaller.appspotmail.com
First crash: 966d, last: 157d
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 112d 114d 0/22 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in generic_write_end / mpage_process_page_bufs (3) 77 18h50m 17d 0/22 moderation: reported on 2022/05/10 00:50

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

write to 0xffff88811b44c368 of 8 bytes by task 3390 on cpu 0:
 i_size_write include/linux/fs.h:913 [inline]
 generic_write_end+0x96/0x180 fs/buffer.c:2186
 ext4_da_write_end+0x4de/0x630 fs/ext4/inode.c:3059
 generic_perform_write+0x261/0x400 mm/filemap.c:3765
 ext4_buffered_write_iter+0x25b/0x380 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 aio_write+0x2dc/0x3c0 fs/aio.c:1578
 io_submit_one+0x8c6/0x1410 fs/aio.c:1997
 __do_sys_io_submit fs/aio.c:2056 [inline]
 __se_sys_io_submit+0x105/0x280 fs/aio.c:2026
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:2026
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88811b44c368 of 8 bytes by task 3391 on cpu 1:
 i_size_read include/linux/fs.h:891 [inline]
 mpage_process_page_bufs+0x34/0x560 fs/ext4/inode.c:2187
 mpage_prepare_extent_to_map+0x4f6/0x650 fs/ext4/inode.c:2621
 ext4_writepages+0xa78/0x1e80 fs/ext4/inode.c:2793
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 __filemap_fdatawrite mm/filemap.c:446 [inline]
 filemap_flush+0xd7/0x100 mm/filemap.c:473
 ext4_alloc_da_blocks+0x47/0x100 fs/ext4/inode.c:3103
 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000733000 -> 0x0000000000734000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3391 Comm: syz-executor.0 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1952):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/21 08:31 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/20 20:19 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/20 08:25 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/19 21:08 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/19 05:18 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/18 04:01 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/17 14:48 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/17 01:55 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/16 19:37 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/16 13:37 upstream 2b14864acbaa 8dd6a5e3 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/15 20:08 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/15 17:50 upstream 5472f14a3742 572bcb40 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/15 00:04 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/14 12:13 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/14 00:18 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/13 12:01 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/13 11:00 upstream 2585cf9dfaad 49ca1f59 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/12 20:00 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/12 04:26 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/11 15:08 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/11 02:00 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/10 13:48 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/10 01:39 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/09 13:29 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/09 13:28 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/08 09:12 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/08 00:57 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/07 11:48 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/06 22:31 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/06 09:59 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/05 19:50 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/05 06:41 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/04 17:41 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/04 00:14 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/03 12:00 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/03 09:25 upstream 5f58da2befa5 61f86278 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/02 20:00 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/01 19:37 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/12/01 07:32 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/30 18:06 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/30 10:57 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/29 14:45 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/11/29 14:44 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in generic_write_end / mpage_process_page_bufs
ci2-upstream-kcsan-gce 2021/01/17 10:13 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2019/10/04 14:07 https://github.com/google/ktsan.git kcsan b4bd934316dc c86336cf .config log report