syzbot


KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root (2)

Status: auto-closed as invalid on 2022/10/06 11:23
Subsystems: fs
[Documentation on labels]
First crash: 632d, last: 632d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root (3) fs 1 361d 361d 0/26 auto-obsoleted due to no activity on 2023/07/04 03:34
upstream KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root (5) fs 1 76d 76d 0/26 auto-obsoleted due to no activity on 2024/04/14 19:06
upstream KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root (4) fs 1 146d 146d 0/26 auto-obsoleted due to no activity on 2024/02/04 14:49
upstream KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root fs 1 888d 888d 0/26 auto-closed as invalid on 2022/01/23 16:01

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root

write to 0xffff888152b70e98 of 8 bytes by task 4316 on cpu 1:
 unhash_mnt fs/namespace.c:884 [inline]
 umount_mnt fs/namespace.c:898 [inline]
 __do_sys_pivot_root fs/namespace.c:3935 [inline]
 __se_sys_pivot_root+0x64f/0x1060 fs/namespace.c:3868
 __x64_sys_pivot_root+0x2d/0x40 fs/namespace.c:3868
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888152b70e98 of 8 bytes by task 4315 on cpu 0:
 __lookup_mnt+0xa9/0xf0 fs/namespace.c:674
 __follow_mount_rcu fs/namei.c:1501 [inline]
 handle_mounts fs/namei.c:1531 [inline]
 step_into+0x3f6/0x7d0 fs/namei.c:1831
 walk_component+0x164/0x230 fs/namei.c:1999
 lookup_last fs/namei.c:2450 [inline]
 path_lookupat+0x11d/0x2b0 fs/namei.c:2474
 filename_lookup+0x133/0x310 fs/namei.c:2503
 user_path_at_empty+0x3e/0x110 fs/namei.c:2876
 user_path_at include/linux/namei.h:57 [inline]
 do_mount fs/namespace.c:3380 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x24d/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff88814d3b8840 -> 0xffff888100403a80

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4315 Comm: syz-executor.5 Not tainted 6.0.0-rc3-syzkaller-00031-gc5e4d5e99162-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/01 11:21 upstream c5e4d5e99162 b01ec571 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __lookup_mnt / __se_sys_pivot_root
* Struck through repros no longer work on HEAD.