syzbot


KCSAN: data-race in d_set_mounted / dput (2)

Status: closed as invalid on 2020/06/18 14:13
Subsystems: fs
[Documentation on labels]
First crash: 1426d, last: 1422d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_set_mounted / dput (4) fs 3 1263d 1234d 0/26 auto-closed as invalid on 2020/12/21 11:47
upstream KCSAN: data-race in d_set_mounted / dput (3) fs 4 1361d 1394d 0/26 auto-closed as invalid on 2020/09/06 07:28
upstream KCSAN: data-race in d_set_mounted / dput fs 2 1613d 1627d 0/26 auto-closed as invalid on 2020/02/02 04:47
upstream KCSAN: data-race in d_set_mounted / dput (5) fs 8 1105d 1194d 0/26 auto-closed as invalid on 2021/05/20 02:25

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

write to 0xffff88812b84f000 of 4 bytes by task 11557 on cpu 1:
 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 0xffff88812b84f000 of 4 bytes by task 11552 on cpu 0:
 fast_dput fs/dcache.c:727 [inline]
 dput+0x4b/0x700 fs/dcache.c:846
 put_fs_context+0x4d/0x350 fs/fs_context.c:470
 do_new_mount fs/namespace.c:2820 [inline]
 do_mount+0x5a3/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: 0 PID: 11552 Comm: syz-executor.4 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/02 07:26 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a0331e89 .config console log report ci2-upstream-kcsan-gce
2020/05/29 03:56 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 d19ed305 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.