syzbot


KCSAN: data-race in __d_instantiate / lookup_fast

Status: auto-closed as invalid on 2020/06/18 13:33
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1011d, last: 887d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_instantiate / lookup_fast (4) 16 54d 170d 0/24 auto-closed as invalid on 2022/09/10 18:37
upstream KCSAN: data-race in __d_instantiate / lookup_fast (2) 1 596d 596d 0/24 auto-closed as invalid on 2021/03/18 02:49
upstream KCSAN: data-race in __d_instantiate / lookup_fast (3) 1 443d 443d 0/24 auto-closed as invalid on 2021/08/17 22:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_instantiate / lookup_fast

write to 0xffff8880b332c300 of 4 bytes by task 23507 on cpu 0:
 fsnotify_update_flags include/linux/fsnotify_backend.h:417 [inline]
 __d_instantiate+0x2b0/0x310 fs/dcache.c:1931
 d_instantiate_new+0x76/0x100 fs/dcache.c:1975
 ext4_mkdir+0x5c8/0x850 fs/ext4/namei.c:2821
 vfs_mkdir+0x281/0x3b0 fs/namei.c:3625
 do_mkdirat+0x1b5/0x200 fs/namei.c:3648
 __do_sys_mkdir fs/namei.c:3664 [inline]
 __se_sys_mkdir fs/namei.c:3662 [inline]
 __x64_sys_mkdir+0x3d/0x50 fs/namei.c:3662
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b332c300 of 4 bytes by task 23510 on cpu 1:
 d_revalidate fs/namei.c:753 [inline]
 lookup_fast+0x176/0x3a0 fs/namei.c:1479
 open_last_lookups fs/namei.c:3121 [inline]
 path_openat+0x2ba/0x23d0 fs/namei.c:3343
 do_filp_open+0x11e/0x1b0 fs/namei.c:3373
 do_sys_openat2+0x52e/0x680 fs/open.c:1148
 do_sys_open+0xa2/0x110 fs/open.c:1164
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1170 [inline]
 __se_sys_open fs/open.c:1168 [inline]
 __x64_sys_open+0x50/0x60 fs/open.c:1168
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23510 Comm: syz-executor.4 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/04/26 11:18 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0ce7569e .config log report
ci2-upstream-kcsan-gce 2020/03/06 18:24 https://github.com/google/ktsan.git kcsan 941e0d917bbf 7fb694ef .config log report
ci2-upstream-kcsan-gce 2020/03/02 22:59 https://github.com/google/ktsan.git kcsan 766d004d1b85 4a4e0509 .config log report
ci2-upstream-kcsan-gce 2020/01/11 06:17 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config log report
ci2-upstream-kcsan-gce 2020/01/08 19:20 https://github.com/google/ktsan.git kcsan 245a43005292 ddc3e859 .config log report
ci2-upstream-kcsan-gce 2019/12/23 21:27 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config log report
* Struck through repros no longer work on HEAD.