syzbot


KCSAN: data-race in d_set_mounted / dput

Status: auto-closed as invalid on 2020/02/02 04:47
Subsystems: fs
[Documentation on labels]
First crash: 1626d, last: 1612d
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 1262d 1233d 0/26 auto-closed as invalid on 2020/12/21 11:47
upstream KCSAN: data-race in d_set_mounted / dput (3) fs 4 1360d 1393d 0/26 auto-closed as invalid on 2020/09/06 07:28
upstream KCSAN: data-race in d_set_mounted / dput (5) fs 8 1104d 1193d 0/26 auto-closed as invalid on 2021/05/20 02:25
upstream KCSAN: data-race in d_set_mounted / dput (2) fs 2 1421d 1425d 0/26 closed as invalid on 2020/06/18 14:13

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

write to 0xffff88812573f900 of 4 bytes by task 32342 on cpu 1:
 d_set_mounted+0x193/0x1c0 fs/dcache.c:1438
 get_mountpoint+0x13d/0x2d0 fs/namespace.c:724
 lock_mount+0xa0/0x1a0 fs/namespace.c:2142
 do_add_mount+0x30/0x1e0 fs/namespace.c:2706
 do_new_mount_fc fs/namespace.c:2767 [inline]
 do_new_mount fs/namespace.c:2825 [inline]
 do_mount+0x12e7/0x1560 fs/namespace.c:3143
 ksys_mount+0xe8/0x160 fs/namespace.c:3352
 __do_sys_mount fs/namespace.c:3366 [inline]
 __se_sys_mount fs/namespace.c:3363 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3363
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812573f900 of 4 bytes by task 32339 on cpu 0:
 fast_dput fs/dcache.c:727 [inline]
 dput+0x4d/0x750 fs/dcache.c:846
 path_put fs/namei.c:482 [inline]
 terminate_walk+0x107/0x250 fs/namei.c:596
 path_openat+0xfff/0x36e0 fs/namei.c:3529
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32339 Comm: syz-executor.3 Not tainted 5.4.0-rc7+ #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
2019/11/24 04:38 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
2019/11/10 21:32 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.