syzbot


KCSAN: data-race in ext4_setattr / mpage_process_page_bufs

Status: closed as invalid on 2020/06/18 14:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1008d, last: 786d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_setattr / mpage_process_page_bufs (3) 1 87d 87d 0/23 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in ext4_setattr / mpage_process_page_bufs (2) 265 229d 685d 0/23 auto-closed as invalid on 2022/01/24 23:19

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

write to 0xffff8880751119f8 of 8 bytes by task 19135 on cpu 0:
 i_size_write include/linux/fs.h:894 [inline]
 ext4_setattr+0xd58/0x1320 fs/ext4/inode.c:5365
 notify_change+0x82b/0xad0 fs/attr.c:336
 do_truncate+0xf9/0x180 fs/open.c:64
 handle_truncate fs/namei.c:2887 [inline]
 do_open fs/namei.c:3233 [inline]
 path_openat+0x1e51/0x23d0 fs/namei.c:3346
 do_filp_open+0x11e/0x1b0 fs/namei.c:3373
 do_sys_openat2+0x52e/0x680 fs/open.c:1148
 do_sys_open+0xa2/0x110 fs/open.c:1164
 __do_sys_openat fs/open.c:1178 [inline]
 __se_sys_openat fs/open.c:1173 [inline]
 __x64_sys_openat+0x5d/0x70 fs/open.c:1173
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880751119f8 of 8 bytes by task 19131 on cpu 1:
 mpage_process_page_bufs+0x3f/0x400 fs/ext4/inode.c:2165
 mpage_prepare_extent_to_map+0x43b/0x6e0 fs/ext4/inode.c:2595
 ext4_writepages+0xb41/0x1e10 fs/ext4/inode.c:2767
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x1bb/0x220 mm/filemap.c:421
 file_write_and_wait_range+0xfb/0x160 mm/filemap.c:760
 ext4_sync_file+0x26e/0x8b0 fs/ext4/fsync.c:153
 vfs_fsync_range+0x7c/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2872 [inline]
 ext4_buffered_write_iter+0x211/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write+0x303/0x400 fs/read_write.c:484
 __vfs_write+0x9e/0xb0 fs/read_write.c:497
 vfs_write fs/read_write.c:559 [inline]
 vfs_write+0x189/0x380 fs/read_write.c:543
 ksys_write+0xc5/0x1a0 fs/read_write.c:612
 __do_sys_write fs/read_write.c:624 [inline]
 __se_sys_write fs/read_write.c:621 [inline]
 __x64_sys_write+0x49/0x60 fs/read_write.c:621
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (35):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/06/12 18:45 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3036d6fd .config log report
ci2-upstream-kcsan-gce 2020/06/09 19:42 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 092934c1 .config log report
ci2-upstream-kcsan-gce 2020/06/09 00:40 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0d60b78a .config log report
ci2-upstream-kcsan-gce 2020/06/07 03:35 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 e6b89e4e .config log report
ci2-upstream-kcsan-gce 2020/05/22 15:29 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 4afdfa20 .config log report
ci2-upstream-kcsan-gce 2020/05/20 11:21 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 1255f02a .config log report
ci2-upstream-kcsan-gce 2020/05/17 18:09 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 37bccd4e .config log report
ci2-upstream-kcsan-gce 2020/05/04 21:57 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 9941337c .config log report
ci2-upstream-kcsan-gce 2020/04/28 19:04 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 e3ecea2e .config log report
ci2-upstream-kcsan-gce 2020/04/28 03:41 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0ce7569e .config log report
ci2-upstream-kcsan-gce 2020/04/19 09:29 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 6dfd45e1 .config log report
ci2-upstream-kcsan-gce 2020/04/18 16:38 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 365fba24 .config log report
ci2-upstream-kcsan-gce 2020/04/15 00:57 https://github.com/google/ktsan.git kcsan 40959e34d670 3f3c5574 .config log report
ci2-upstream-kcsan-gce 2020/04/10 01:13 https://github.com/google/ktsan.git kcsan 40959e34d670 a8c6a3f8 .config log report
ci2-upstream-kcsan-gce 2020/04/01 13:50 https://github.com/google/ktsan.git kcsan 40959e34d670 a34e2c33 .config log report
ci2-upstream-kcsan-gce 2020/03/28 00:13 https://github.com/google/ktsan.git kcsan 40959e34d670 831e9a81 .config log report
ci2-upstream-kcsan-gce 2020/02/29 13:05 https://github.com/google/ktsan.git kcsan 766d004d1b85 c88c7b75 .config log report
ci2-upstream-kcsan-gce 2020/02/06 01:22 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config log report
ci2-upstream-kcsan-gce 2020/02/05 01:57 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config log report
ci2-upstream-kcsan-gce 2020/01/31 18:23 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config log report
ci2-upstream-kcsan-gce 2020/01/21 15:09 https://github.com/google/ktsan.git kcsan 245a43005292 8eda0b95 .config log report
ci2-upstream-kcsan-gce 2020/01/11 05:42 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config log report
ci2-upstream-kcsan-gce 2020/01/05 00:15 https://github.com/google/ktsan.git kcsan 245a43005292 68256974 .config log report
ci2-upstream-kcsan-gce 2020/01/01 18:38 https://github.com/google/ktsan.git kcsan 245a43005292 25a0186e .config log report
ci2-upstream-kcsan-gce 2019/12/21 00:12 https://github.com/google/ktsan.git kcsan 245a43005292 34011c05 .config log report
ci2-upstream-kcsan-gce 2019/12/19 00:53 https://github.com/google/ktsan.git kcsan 245a43005292 79b211f7 .config log report
ci2-upstream-kcsan-gce 2019/12/19 00:46 https://github.com/google/ktsan.git kcsan 245a43005292 79b211f7 .config log report
ci2-upstream-kcsan-gce 2019/12/15 23:39 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config log report
ci2-upstream-kcsan-gce 2019/12/09 20:10 https://github.com/google/ktsan.git kcsan ef798c30ba4e b31eda3d .config log report
ci2-upstream-kcsan-gce 2019/11/23 18:49 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config log report
ci2-upstream-kcsan-gce 2019/11/18 14:14 https://github.com/google/ktsan.git kcsan 5863cc791e4c d5696d51 .config log report
ci2-upstream-kcsan-gce 2019/11/14 02:52 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config log report
ci2-upstream-kcsan-gce 2019/11/05 21:58 https://github.com/google/ktsan.git kcsan 94c006602e13 af5c522d .config log report
ci2-upstream-kcsan-gce 2019/11/04 12:14 https://github.com/google/ktsan.git kcsan 05f2236801fe 18e12644 .config log report
ci2-upstream-kcsan-gce 2019/11/02 23:23 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config log report