syzbot


KCSAN: data-race in d_set_mounted / step_into

Status: auto-closed as invalid on 2020/11/15 16:59
Subsystems: fs
[Documentation on labels]
First crash: 1264d, last: 1264d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_set_mounted / step_into (2) fs 1 1114d 1114d 0/26 auto-closed as invalid on 2021/05/17 11:16

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

write to 0xffff88811f0983c0 of 4 bytes by task 10539 on cpu 1:
 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_new_mount_fc fs/namespace.c:2818 [inline]
 do_new_mount fs/namespace.c:2877 [inline]
 path_mount+0x18ef/0x1c70 fs/namespace.c:3192
 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 0xffff88811f0983c0 of 4 bytes by task 10548 on cpu 0:
 __d_entry_type include/linux/dcache.h:391 [inline]
 d_is_symlink include/linux/dcache.h:421 [inline]
 step_into+0x158/0xe70 fs/namei.c:1694
 walk_component+0x190/0x350 fs/namei.c:1866
 link_path_walk+0x462/0x730 fs/namei.c:2179
 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]
 path_setxattr+0x4b/0x170 fs/xattr.c:562
 __do_sys_lsetxattr fs/xattr.c:589 [inline]
 __se_sys_lsetxattr fs/xattr.c:585 [inline]
 __x64_sys_lsetxattr+0x66/0x80 fs/xattr.c:585
 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: 0 PID: 10548 Comm: syz-executor.2 Not tainted 5.9.0-rc8-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/10/11 16:53 upstream da690031a5d6 4a77ae0b .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.