syzbot


KCSAN: data-race in d_set_mounted / ovl_dentry_update_reval

Status: closed as invalid on 2020/06/18 14:13
Subsystems: overlayfs
[Documentation on labels]
First crash: 1423d, last: 1423d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_set_mounted / ovl_dentry_update_reval

write to 0xffff888129dec300 of 4 bytes by task 12699 on cpu 0:
 d_set_mounted+0x18e/0x1b0 fs/dcache.c:1440
 get_mountpoint+0x135/0x2f0 fs/namespace.c:724
 attach_recursive_mnt+0xae/0x8a0 fs/namespace.c:2056
 graft_tree+0x107/0x160 fs/namespace.c:2179
 do_add_mount.isra.0+0x102/0x190 fs/namespace.c:2725
 do_new_mount_fc fs/namespace.c:2764 [inline]
 do_new_mount fs/namespace.c:2818 [inline]
 do_mount+0x12d5/0x1590 fs/namespace.c:3141
 __do_sys_mount fs/namespace.c:3350 [inline]
 __se_sys_mount fs/namespace.c:3327 [inline]
 __x64_sys_mount+0x12b/0x1a0 fs/namespace.c:3327
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888129dec300 of 4 bytes by task 12698 on cpu 1:
 ovl_dentry_update_reval+0x94/0x100 fs/overlayfs/util.c:108
 ovl_get_root fs/overlayfs/super.c:1694 [inline]
 ovl_fill_super+0x1462/0x2491 fs/overlayfs/super.c:1823
 mount_nodev+0x66/0xf0 fs/super.c:1463
 ovl_mount+0x30/0x50 fs/overlayfs/super.c:1846
 legacy_get_tree+0x78/0xf0 fs/fs_context.c:622
 vfs_get_tree+0x52/0x190 fs/super.c:1547
 do_new_mount fs/namespace.c:2816 [inline]
 do_mount+0xff0/0x1590 fs/namespace.c:3141
 __do_sys_mount fs/namespace.c:3350 [inline]
 __se_sys_mount fs/namespace.c:3327 [inline]
 __x64_sys_mount+0x12b/0x1a0 fs/namespace.c:3327
 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: 12698 Comm: syz-executor.2 Not tainted 5.7.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/06/03 10:18 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 f3ba1b5b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.