syzbot


KCSAN: data-race in path_openat / vfs_rename (2)

Status: auto-closed as invalid on 2021/03/25 02:59
Subsystems: fs
[Documentation on labels]
First crash: 1440d, last: 1440d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in path_openat / vfs_rename (3) fs 4 1338d 1372d 0/28 auto-closed as invalid on 2021/07/04 13:26
upstream KCSAN: data-race in path_openat / vfs_rename fs 1 1745d 1745d 0/28 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in path_openat / vfs_rename

write to 0xffff8880122e7e40 of 4 bytes by task 21338 on cpu 0:
 dont_mount include/linux/dcache.h:355 [inline]
 vfs_rename+0xd0f/0xe60 fs/namei.c:4322
 do_renameat2+0x5c3/0x900 fs/namei.c:4457
 __do_sys_rename fs/namei.c:4508 [inline]
 __se_sys_rename fs/namei.c:4506 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4506
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880122e7e40 of 4 bytes by task 21337 on cpu 1:
 __d_entry_type include/linux/dcache.h:392 [inline]
 d_is_reg include/linux/dcache.h:427 [inline]
 do_open fs/namei.c:3246 [inline]
 path_openat+0x16ef/0x20a0 fs/namei.c:3371
 do_filp_open+0xbd/0x1d0 fs/namei.c:3398
 do_sys_openat2+0xa3/0x250 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_open fs/open.c:1196 [inline]
 __se_sys_open fs/open.c:1192 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1192
 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: 21337 Comm: systemd-udevd Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 21337 Comm: systemd-udevd Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x116/0x15d lib/dump_stack.c:120
 panic+0x1e7/0x5fa kernel/panic.c:231
 kcsan_report+0x67b/0x680 kernel/kcsan/report.c:634
 kcsan_setup_watchpoint+0x472/0x4d0 kernel/kcsan/core.c:568
 __d_entry_type include/linux/dcache.h:392 [inline]
 d_is_reg include/linux/dcache.h:427 [inline]
 do_open fs/namei.c:3246 [inline]
 path_openat+0x16ef/0x20a0 fs/namei.c:3371
 do_filp_open+0xbd/0x1d0 fs/namei.c:3398
 do_sys_openat2+0xa3/0x250 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_open fs/open.c:1196 [inline]
 __se_sys_open fs/open.c:1192 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1192
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f759ce076f0
Code: 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 19 30 2c 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 fe 9d 01 00 48 89 04 24
RSP: 002b:00007ffcea9ab0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000055ae97c7a0d0 RCX: 00007f759ce076f0
RDX: 00000000000001b6 RSI: 0000000000080000 RDI: 00007ffcea9ab270
RBP: 0000000000000008 R08: 0000000000000008 R09: 0000000000000001
R10: 0000000000080000 R11: 0000000000000246 R12: 000055ae9691468a
R13: 0000000000000001 R14: 00007ffcea9ab270 R15: 00007ffcea9ab2d0
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/18 02:50 upstream f40ddce88593 14052202 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in path_openat / vfs_rename
* Struck through repros no longer work on HEAD.