syzbot


KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode (2)

Status: auto-closed as invalid on 2021/10/31 18:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 621d, last: 435d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode 38 676d 728d 0/24 auto-closed as invalid on 2021/03/04 14:53

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode

write to 0xffff888133d74660 of 8 bytes by task 14968 on cpu 1:
 writeback_single_inode+0x148/0x3e0 fs/fs-writeback.c:1726
 sync_inode_metadata+0x57/0x80 fs/fs-writeback.c:2748
 ext4_fsync_nojournal fs/ext4/fsync.c:92 [inline]
 ext4_sync_file+0x359/0x670 fs/ext4/fsync.c:170
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2955 [inline]
 iomap_dio_complete+0x2d5/0x3c0 fs/iomap/direct-io.c:125
 iomap_dio_rw+0x4e/0x70 fs/iomap/direct-io.c:652
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xaa9/0x11f0 fs/ext4/file.c:678
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 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+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 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 0xffff888133d74660 of 8 bytes by task 14969 on cpu 0:
 inode_is_dirtytime_only include/linux/fs.h:2471 [inline]
 __ext4_update_other_inode_time+0x48/0x5c0 fs/ext4/inode.c:4972
 ext4_update_other_inodes_time fs/ext4/inode.c:5015 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5149 [inline]
 ext4_mark_iloc_dirty+0x1286/0x1700 fs/ext4/inode.c:5741
 __ext4_mark_inode_dirty+0x4ec/0x5c0 fs/ext4/inode.c:5937
 ext4_ext_tree_init+0x94/0xa0 fs/ext4/extents.c:830
 __ext4_new_inode+0x2a4d/0x2fd0 fs/ext4/ialloc.c:1334
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x23f/0x350 fs/namei.c:4250
 do_symlinkat+0x104/0x380 fs/namei.c:4279
 __do_sys_symlink fs/namei.c:4301 [inline]
 __se_sys_symlink fs/namei.c:4299 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4299
 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: 0x0000000000000007 -> 0x0000000000000080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14969 Comm: syz-executor.4 Not tainted 5.15.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (23):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/26 18:00 upstream a3b397b4fffb 8cac236e .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/09/01 01:17 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/23 06:51 upstream 1bdc3d5be7e1 b599f2fc .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/18 20:26 upstream d6d09a694205 a2fe1cb5 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/07 22:05 upstream 85a90500f9a1 6972b106 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/06 05:14 upstream 902e7f373fff 2f537099 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/08/02 09:53 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/27 16:02 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/07/22 10:24 upstream 3d5895cd3517 29c3f20f .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/06/18 00:57 upstream fd0aa1a4567d aba2b2fb .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/06/13 11:12 upstream 8ecfa36cd4db 1ba81399 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/06/03 00:59 upstream 324c92e5e0ee 0740de69 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/31 17:09 upstream c2131f7e73c9 032639db .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/31 02:38 upstream 8124c8a6b353 325a8dab .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/25 17:37 upstream a050a6d2b7e8 93d3a9f6 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/15 10:29 upstream 25a1298726e9 93f844de .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/13 09:04 upstream c06a2ba62fc4 ed7d41c5 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/05/08 23:38 upstream b741596468b0 bc5434be .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/27 23:46 upstream e359bce39d90 805b5003 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/22 05:19 upstream 16fc44d6387e 2bc8999a .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/19 07:31 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/04/15 02:58 upstream 7f75285ca572 fcdb12ba .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
ci2-upstream-kcsan-gce 2021/03/24 04:51 upstream 7acac4b3196c e613994b .config log report info KCSAN: data-race in __ext4_update_other_inode_time / writeback_single_inode
* Struck through repros no longer work on HEAD.