syzbot


KCSAN: data-race in d_set_mounted / link_path_walk (3)

Status: auto-closed as invalid on 2021/04/10 08:08
Subsystems: fs
[Documentation on labels]
First crash: 1145d, last: 1145d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_set_mounted / link_path_walk (4) fs 2 1082d 1105d 0/26 auto-closed as invalid on 2021/06/12 19:25
upstream KCSAN: data-race in d_set_mounted / link_path_walk (2) fs 1 1208d 1208d 0/26 auto-closed as invalid on 2021/02/07 03:59
upstream KCSAN: data-race in d_set_mounted / link_path_walk fs 1 1328d 1328d 0/26 auto-closed as invalid on 2020/10/09 14:20

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

write to 0xffff88810d918240 of 4 bytes by task 10404 on cpu 1:
 d_set_mounted+0xfc/0x190 fs/dcache.c:1492
 get_mountpoint+0x1be/0x300 fs/namespace.c:755
 lock_mount+0x86/0x1d0 fs/namespace.c:2224
 do_new_mount_fc fs/namespace.c:2846 [inline]
 do_new_mount fs/namespace.c:2905 [inline]
 path_mount+0x18a4/0x1c00 fs/namespace.c:3233
 do_mount fs/namespace.c:3246 [inline]
 __do_sys_mount fs/namespace.c:3454 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3431
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3431
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810d918240 of 4 bytes by task 10416 on cpu 0:
 link_path_walk+0x37d/0x780 fs/namei.c:2228
 path_openat+0x1a6/0x21b0 fs/namei.c:3494
 do_filp_open+0xbd/0x1d0 fs/namei.c:3525
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_creat fs/open.c:1277 [inline]
 __se_sys_creat fs/open.c:1271 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1271
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10416 Comm: syz-executor.3 Not tainted 5.12.0-rc2-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
2021/03/06 08:08 upstream a38fd8748464 e4b4d570 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / link_path_walk
* Struck through repros no longer work on HEAD.