syzbot


KCSAN: data-race in d_set_mounted / link_path_walk

Status: auto-closed as invalid on 2020/10/09 14:20
Subsystems: fs
[Documentation on labels]
First crash: 1338d, last: 1338d
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 1092d 1115d 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 1217d 1217d 0/26 auto-closed as invalid on 2021/02/07 03:59
upstream KCSAN: data-race in d_set_mounted / link_path_walk (3) fs 1 1155d 1155d 0/26 auto-closed as invalid on 2021/04/10 08:08

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

write to 0xffff88821aaf3cc0 of 4 bytes by task 29359 on cpu 0:
 d_set_mounted+0xfc/0x190 fs/dcache.c:1459
 get_mountpoint+0x1be/0x300 fs/namespace.c:740
 lock_mount+0x86/0x1d0 fs/namespace.c:2200
 do_loopback fs/namespace.c:2349 [inline]
 path_mount+0xc92/0x1c70 fs/namespace.c:3186
 do_mount fs/namespace.c:3205 [inline]
 __do_sys_mount fs/namespace.c:3413 [inline]
 __se_sys_mount+0x126/0x180 fs/namespace.c:3390
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3390
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88821aaf3cc0 of 4 bytes by task 5076 on cpu 1:
 link_path_walk+0x334/0x730 fs/namei.c:2145
 path_lookupat+0x7b/0x560 fs/namei.c:2332
 filename_lookup+0xf2/0x380 fs/namei.c:2366
 user_path_at_empty+0x3b/0x50 fs/namei.c:2646
 user_path_at include/linux/namei.h:59 [inline]
 vfs_statx+0xb8/0x2b0 fs/stat.c:202
 vfs_lstat include/linux/fs.h:3178 [inline]
 __do_sys_newlstat fs/stat.c:374 [inline]
 __se_sys_newlstat+0x46/0x250 fs/stat.c:368
 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:368
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5076 Comm: systemd-udevd Not tainted 5.9.0-rc3-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/09/04 14:14 upstream 59126901f200 abf9ba4f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.