syzbot


KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty (3)

Status: auto-closed as invalid on 2021/12/12 11:00
Reported-by: syzbot+a39bb0490dcaba7ea250@syzkaller.appspotmail.com
First crash: 522d, last: 285d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty (2) 99 560d 665d 0/23 auto-closed as invalid on 2021/03/12 13:10
upstream KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty 18 822d 1029d 0/23 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty

write to 0xffff888104b7516a of 2 bytes by task 21112 on cpu 0:
 ext4_ext_store_pblock fs/ext4/ext4_extents.h:257 [inline]
 ext4_ext_insert_extent+0x1b1d/0x2d90 fs/ext4/extents.c:2124
 ext4_ext_map_blocks+0x171b/0x20a0 fs/ext4/extents.c:4271
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 mpage_map_one_extent+0x10d/0x3a0 fs/ext4/inode.c:2393
 mpage_map_and_submit_extent fs/ext4/inode.c:2446 [inline]
 ext4_writepages+0xcba/0x1e80 fs/ext4/inode.c:2798
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:399 [inline]
 __filemap_fdatawrite_range mm/filemap.c:432 [inline]
 file_write_and_wait_range+0x132/0x1d0 mm/filemap.c:816
 ext4_sync_file+0x105/0x6e0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2956 [inline]
 ext4_buffered_write_iter+0x322/0x380 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104b75168 of 4 bytes by task 20919 on cpu 1:
 ext4_do_update_inode fs/ext4/inode.c:5059 [inline]
 ext4_mark_iloc_dirty+0xd53/0x16e0 fs/ext4/inode.c:5683
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5879
 ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5908
 __mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
 mark_inode_dirty include/linux/fs.h:2451 [inline]
 generic_write_end+0x157/0x180 fs/buffer.c:2202
 ext4_da_write_end+0x4de/0x630 fs/ext4/inode.c:3062
 generic_perform_write+0x261/0x400 mm/filemap.c:3759
 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]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00008003

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 20919 Comm: syz-executor.1 Tainted: G        W         5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (60):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/07 11:00 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/11/03 14:12 upstream dcd68326d29b 4c1be0be .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/11/02 16:47 upstream bfc484fe6abb 17f3edd2 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/10/22 15:39 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/10/07 18:06 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/09/27 12:53 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/09/08 23:20 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/09/02 08:40 upstream 4ac6d90867a4 7eb7e152 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/08/28 17:27 upstream 64b4fc45bea6 be2c130d .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/08/16 10:01 upstream 7c60610d4767 6652437d .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/08/13 04:13 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/08/07 23:17 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/08/05 05:05 upstream 251a1524293d 7f7bb950 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/27 16:52 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/25 00:23 upstream 7ffca2bb9d8b 4d1b57d4 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/22 11:39 upstream 3d5895cd3517 241790bb .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/21 13:42 upstream 8cae8cd89f05 29c3f20f .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/18 19:39 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/07/06 19:26 upstream 3dbdb38e2869 cca78469 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/06/30 21:21 upstream df04fbe8680b 38a885d1 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/06/30 09:54 upstream 007b350a5875 84fd4c77 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/06/29 20:07 upstream c54b245d0118 a4fccb01 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/06/27 21:41 upstream b4b27b9eed8e 9d2ab5df .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/06/16 22:01 upstream 6b00bc639f1f aba2b2fb .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/30 07:15 upstream b90e90f40b4f 325a8dab .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/21 15:04 upstream 79a106fc6585 3c7fef33 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/21 00:08 upstream f01da525b3de 3c7fef33 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/19 17:34 upstream c3d0e3fd41b7 a343ba6b .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/12 20:08 upstream dbb5afad100a ed7d41c5 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/06 17:07 upstream 8404c9fbc84b 06585184 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/04 13:55 upstream 5e321ded302d 06c27ff5 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/03 13:41 upstream 9ccce092fc64 ad61f371 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/02 11:53 upstream 17ae69aba89d 77e2b668 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/05/01 09:33 upstream 9f67672a817e 77e2b668 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/25 08:04 upstream 2a1d7946fa53 36c88236 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/24 19:02 upstream 2a1d7946fa53 17f0b706 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/20 07:39 upstream 7af08140979a c0ced557 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/19 20:21 upstream bf05bf16c76b 4285c989 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/18 23:12 upstream bf05bf16c76b 7e2b734b .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/18 10:01 upstream c98ff1d013d2 7e2b734b .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/17 20:24 upstream 194cf4825638 7e2b734b .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/16 12:56 upstream 7e25f40eab52 7e2b734b .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/15 16:32 upstream 7f75285ca572 c59079a6 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/13 18:42 upstream 89698becf06d a184b83e .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/12 23:31 upstream 89698becf06d 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/09 12:24 upstream 17e7124aad76 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/08 22:11 upstream 3fb4f979b4fa 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/08 22:09 upstream 3fb4f979b4fa 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/07 21:14 upstream 3a22981230f9 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/04 03:23 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/04/04 03:16 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/31 06:24 upstream 5e46d1b78a03 6a81331a .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/27 00:48 upstream 0f4498cef9f5 a8529b82 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/26 01:47 upstream 002322402daf 6a383ecf .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/25 09:24 upstream e138138003eb 6a383ecf .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/25 09:24 upstream e138138003eb 6a383ecf .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/24 18:12 upstream 7acac4b3196c 607e3baf .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/20 12:42 upstream 1c273e10bc0c e45f5621 .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/18 10:29 upstream 6417f03132a6 7216542e .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty
ci2-upstream-kcsan-gce 2021/03/14 21:35 upstream 75013c6c52d8 cc1cff8f .config log report info KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty