syzbot


KCSAN: data-race in __d_lookup_rcu / dont_mount

Status: auto-obsoleted due to no activity on 2023/11/13 13:29
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+b015897b5913b3aa2ecd@syzkaller.appspotmail.com
First crash: 533d, last: 533d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] KCSAN: data-race in __d_lookup_rcu / dont_mount 0 (1) 2023/10/13 15:30

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_lookup_rcu / dont_mount

read to 0xffff8881382e76c0 of 4 bytes by task 3386 on cpu 0:
 __d_lookup_rcu+0x42/0x290 fs/dcache.c:2360
 lookup_fast+0x8e/0x290 fs/namei.c:1628
 walk_component+0x3f/0x230 fs/namei.c:1997
 lookup_last fs/namei.c:2458 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2482
 filename_lookup+0x126/0x300 fs/namei.c:2511
 vfs_statx+0xa2/0x430 fs/stat.c:240
 vfs_fstatat+0xcd/0x100 fs/stat.c:295
 __do_sys_newfstatat fs/stat.c:459 [inline]
 __se_sys_newfstatat+0x58/0x260 fs/stat.c:453
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:453
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read-write to 0xffff8881382e76c0 of 4 bytes by task 3374 on cpu 1:
 dont_mount+0x27/0x40 include/linux/dcache.h:351
 vfs_rmdir+0x2a9/0x2f0 fs/namei.c:4209
 do_rmdir+0x194/0x310 fs/namei.c:4262
 __do_sys_rmdir fs/namei.c:4281 [inline]
 __se_sys_rmdir fs/namei.c:4279 [inline]
 __x64_sys_rmdir+0x30/0x40 fs/namei.c:4279
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3374 Comm: udevd Not tainted 6.6.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/09 13:28 upstream 94f6f0550c62 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup_rcu / dont_mount
* Struck through repros no longer work on HEAD.