syzbot


KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty

Status: auto-closed as invalid on 2022/01/20 14:13
Reported-by: syzbot+b21fe66a80c277eb3330@syzkaller.appspotmail.com
First crash: 778d, last: 234d

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

write to 0xffff8881318d2230 of 8 bytes by task 1826 on cpu 0:
 __mark_inode_dirty+0x1bc/0x6c0 fs/fs-writeback.c:2434
 mark_inode_dirty include/linux/fs.h:2451 [inline]
 dquot_alloc_space include/linux/quotaops.h:317 [inline]
 dquot_alloc_block include/linux/quotaops.h:334 [inline]
 ext4_mb_new_blocks+0x1135/0x1ee0 fs/ext4/mballoc.c:5548
 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 ext4_getblk+0xc6/0x3e0 fs/ext4/inode.c:847
 ext4_bread+0x28/0x100 fs/ext4/inode.c:900
 ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67
 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2893
 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2939
 vfs_mkdir+0x2c8/0x3d0 fs/namei.c:3883
 do_mkdirat+0x12e/0x2c0 fs/namei.c:3909
 __do_sys_mkdir fs/namei.c:3929 [inline]
 __se_sys_mkdir fs/namei.c:3927 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:3927
 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 0xffff8881318d2230 of 8 bytes by task 9116 on cpu 1:
 inode_is_dirtytime_only include/linux/fs.h:2470 [inline]
 __ext4_update_other_inode_time+0x45/0x550 fs/ext4/inode.c:5010
 ext4_update_other_inodes_time fs/ext4/inode.c:5053 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5102 [inline]
 ext4_mark_iloc_dirty+0x4c6/0x890 fs/ext4/inode.c:5694
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5890
 ext4_ext_tree_init+0x94/0xa0 fs/ext4/extents.c:870
 __ext4_new_inode+0x29e6/0x2fc0 fs/ext4/ialloc.c:1334
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x241/0x330 fs/namei.c:4248
 do_symlinkat+0x104/0x380 fs/namei.c:4277
 __do_sys_symlink fs/namei.c:4299 [inline]
 __se_sys_symlink fs/namei.c:4297 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4297
 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: 0x0000000000008008 -> 0x000000000000800f

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

Crashes (134):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/16 14:12 upstream 2b14864acbaa 8dd6a5e3 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/15 00:22 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/11 02:00 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/12/02 01:28 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/28 08:38 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/15 12:04 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/13 20:36 upstream a9b9669d9822 75b04091 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/10 18:38 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/08 11:41 upstream 6b75d88fa81b d29682f1 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/04 03:48 upstream ce840177930f 4c1be0be .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/11/03 11:02 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/29 08:34 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/25 17:46 upstream 87066fdd2e30 4f0000ee .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/13 08:08 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/10/07 16:21 upstream 5af4055fa813 efe0f24d .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/29 23:52 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/24 13:22 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/21 11:54 upstream d9fb678414c0 af796c18 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/20 01:16 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/17 22:14 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/15 13:44 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/14 18:16 upstream 1619b69edce1 07e953c1 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/08/27 10:36 upstream 77dd11439b86 b318694d .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/08/09 09:24 upstream 36a21d51725a 6972b106 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/08/04 17:00 upstream d5ad8ec3cfb5 b97d64c9 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/07/30 21:15 upstream 4669e13cd67f 6c236867 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/07/22 11:37 upstream 3d5895cd3517 241790bb .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/07/19 23:08 upstream 2734d6c1b1a0 bc48c9ab .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/07/16 04:06 upstream dd9c7df94c1b f115ae98 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/26 05:09 upstream b7050b242430 ae6bf8dd .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/15 18:41 upstream 94f0b2d4a1d0 8022d7e3 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/13 21:47 upstream e4e453434a19 1ba81399 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/12 15:57 upstream ad347abe4a98 1ba81399 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/11 01:41 upstream f09eacca59d2 1ba81399 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/09 08:00 upstream 368094df48e6 5c2fe346 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/06/07 07:32 upstream 614124bea77e e59537be .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/30 07:36 upstream b90e90f40b4f 325a8dab .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/28 19:39 upstream 5ff2756afde0 858ea628 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/28 02:24 upstream 97e5bf604b7a 858ea628 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/27 12:47 upstream d7c5303fbc8a 858ea628 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/26 23:01 upstream 7ac3a1c1ae51 858ea628 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/26 10:38 upstream ad9f25d33860 750ce164 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/25 17:35 upstream a050a6d2b7e8 93d3a9f6 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/21 14:34 upstream 79a106fc6585 3c7fef33 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/05/17 23:13 upstream 8ac91e6c6033 a343ba6b .config log report info KCSAN: data-race in __ext4_update_other_inode_time / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/01/14 16:09 upstream 65f0d2414b70 468dbb55 .config log report info
ci2-upstream-kcsan-gce 2020/11/02 12:01 upstream 3cea11cd5e3b 8bc4594f .config log report info
ci2-upstream-kcsan-gce 2020/06/20 11:59 upstream 672f9255a727 c655ec77 .config log report