syzbot


KCSAN: data-race in other_inode_match / unlock_new_inode

Status: auto-closed as invalid on 2020/04/10 00:38
Subsystems: ext4
[Documentation on labels]
First crash: 1539d, last: 1539d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in other_inode_match / unlock_new_inode

read to 0xffff8880aadc1180 of 8 bytes by task 8079 on cpu 0:
 other_inode_match+0x6b/0x5c0 fs/ext4/inode.c:4820
 find_inode_nowait+0x135/0x160 fs/inode.c:1437
 ext4_update_other_inodes_time fs/ext4/inode.c:4868 [inline]
 ext4_do_update_inode fs/ext4/inode.c:4994 [inline]
 ext4_mark_iloc_dirty+0x12a8/0x1580 fs/ext4/inode.c:5547
 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:5740
 ext4_unlink fs/ext4/namei.c:3204 [inline]
 ext4_unlink+0x655/0x7d0 fs/ext4/namei.c:3154
 vfs_unlink+0x225/0x3e0 fs/namei.c:4003
 do_unlinkat+0x32b/0x530 fs/namei.c:4067
 __do_sys_unlink fs/namei.c:4114 [inline]
 __se_sys_unlink fs/namei.c:4112 [inline]
 __x64_sys_unlink+0x3b/0x50 fs/namei.c:4112
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880aadc1180 of 8 bytes by task 12948 on cpu 1:
 unlock_new_inode+0x6d/0xb0 fs/inode.c:988
 ext4_tmpfile+0x216/0x310 fs/ext4/namei.c:2676
 vfs_tmpfile+0xd3/0x1f0 fs/namei.c:3455
 ovl_do_tmpfile fs/overlayfs/overlayfs.h:188 [inline]
 ovl_make_workdir fs/overlayfs/super.c:1114 [inline]
 ovl_get_workdir fs/overlayfs/super.c:1191 [inline]
 ovl_fill_super+0xcce/0x2736 fs/overlayfs/super.c:1611
 mount_nodev+0x6b/0xf0 fs/super.c:1461
 ovl_mount+0x36/0x50 fs/overlayfs/super.c:1712
 legacy_get_tree+0x7e/0xf0 fs/fs_context.c:647
 vfs_get_tree+0x56/0x1a0 fs/super.c:1545
 do_new_mount fs/namespace.c:2822 [inline]
 do_mount+0x1004/0x14f0 fs/namespace.c:3142
 ksys_mount+0xe8/0x160 fs/namespace.c:3351
 __do_sys_mount fs/namespace.c:3365 [inline]
 __se_sys_mount fs/namespace.c:3362 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3362
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/31 00:29 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.