syzbot


KCSAN: data-race in ext4_writepages / generic_write_end
Status: auto-closed as invalid on 2022/01/25 08:29
Reported-by: syzbot+4e49af5cf25824bfde8d@syzkaller.appspotmail.com
First crash: 696d, last: 155d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_writepages / generic_write_end (2) 1 111d 111d 0/22 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in ext4_writepages / generic_write_end (3) 26 13d 17d 0/22 closed as invalid on 2022/05/13 11:20

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

write to 0xffff88811b460658 of 8 bytes by task 2292 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]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0x7f5/0x950 fs/read_write.c:590
 ksys_write+0xd9/0x190 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:652
 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 0xffff88811b460658 of 8 bytes by task 2298 on cpu 1:
 i_size_read include/linux/fs.h:891 [inline]
 mpage_submit_page fs/ext4/inode.c:2089 [inline]
 mpage_map_and_submit_buffers fs/ext4/inode.c:2343 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2482 [inline]
 ext4_writepages+0x10b6/0x1e80 fs/ext4/inode.c:2795
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range+0xdf/0x110 mm/filemap.c:440
 generic_fadvise+0x1dc/0x430 mm/fadvise.c:113
 vfs_fadvise mm/fadvise.c:186 [inline]
 ksys_fadvise64_64 mm/fadvise.c:200 [inline]
 __do_sys_fadvise64 mm/fadvise.c:215 [inline]
 __se_sys_fadvise64 mm/fadvise.c:213 [inline]
 __x64_sys_fadvise64+0xc5/0x100 mm/fadvise.c:213
 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

value changed: 0x0000000000413000 -> 0x0000000000415000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2298 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 (691):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/21 08:29 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/19 05:10 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/17 14:43 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/17 01:42 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/16 19:29 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/16 13:21 upstream 2b14864acbaa 8dd6a5e3 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/15 19:58 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/14 23:56 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/14 12:07 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/14 12:02 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/14 00:12 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/13 12:01 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/13 10:39 upstream 2585cf9dfaad 49ca1f59 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/12 04:25 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/11 01:58 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/10 01:31 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/09 20:22 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/09 13:22 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/08 09:13 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/07 11:49 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/06 22:27 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/06 09:54 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/04 17:35 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/04 00:11 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/03 11:43 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/03 09:16 upstream 5f58da2befa5 61f86278 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/02 19:59 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/12/01 19:33 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/30 10:58 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/29 11:03 upstream d58071a8a76d 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/28 21:53 upstream d06c942efea4 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/27 19:15 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/26 22:23 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/26 08:47 upstream a4849f6000e2 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/25 19:07 upstream b501b85957de 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/25 17:34 upstream 5f53fa508db0 63eeac02 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/24 19:15 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/23 22:34 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/22 13:00 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/20 19:55 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/19 14:11 upstream 4c388a8e740d 3a9d0024 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/11/18 21:53 upstream 6fdf886424cf 31a30fc0 .config log report info KCSAN: data-race in ext4_writepages / generic_write_end
ci2-upstream-kcsan-gce 2021/01/17 10:09 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/07/16 11:25 upstream f8456690ba8e b090c643 .config log report
ci2-upstream-kcsan-gce 2020/07/12 18:34 upstream 9901a6bd1577 115e1930 .config log report
ci2-upstream-kcsan-gce 2020/06/28 20:07 upstream 91a9a90d040e a2cdad9d .config log report