syzbot


KCSAN: data-race in __d_lookup / __d_rehash (7)

Status: auto-obsoleted due to no activity on 2023/11/15 16:47
Subsystems: ext4
[Documentation on labels]
First crash: 358d, last: 358d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_lookup / __d_rehash (8) ext4 8 49d 166d 0/28 auto-obsoleted due to no activity on 2024/09/19 14:50
upstream KCSAN: data-race in __d_lookup / __d_rehash (6) fs 1 404d 404d 0/28 auto-obsoleted due to no activity on 2023/09/29 22:29
upstream KCSAN: data-race in __d_lookup / __d_rehash (4) ext4 1 522d 522d 0/28 auto-obsoleted due to no activity on 2023/06/04 03:50
upstream KCSAN: data-race in __d_lookup / __d_rehash fs 1 1784d 1784d 0/28 auto-closed as invalid on 2020/01/24 17:56
upstream KCSAN: data-race in __d_lookup / __d_rehash (3) fs 1 693d 693d 0/28 auto-obsoleted due to no activity on 2022/12/14 23:50
upstream KCSAN: data-race in __d_lookup / __d_rehash (2) fs 1 887d 887d 0/28 auto-closed as invalid on 2022/06/04 08:25
upstream KCSAN: data-race in __d_lookup / __d_rehash (5) ext4 2 463d 464d 0/28 auto-obsoleted due to no activity on 2023/08/02 16:55

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_lookup / __d_rehash

write to 0xffff888104e8d790 of 8 bytes by task 2215 on cpu 1:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:81 [inline]
 __d_rehash+0xc4/0x220 fs/dcache.c:2578
 __d_add+0x36d/0x4a0 fs/dcache.c:2793
 d_splice_alias+0xd6/0x270 fs/dcache.c:3181
 ext4_lookup+0x199/0x390 fs/ext4/namei.c:1883
 lookup_one_qstr_excl+0xc0/0x180 fs/namei.c:1608
 filename_create+0x14d/0x2b0 fs/namei.c:3890
 do_symlinkat+0x84/0x320 fs/namei.c:4499
 __do_sys_symlinkat fs/namei.c:4522 [inline]
 __se_sys_symlinkat fs/namei.c:4519 [inline]
 __x64_sys_symlinkat+0x62/0x70 fs/namei.c:4519
 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 to 0xffff888104e8d790 of 8 bytes by task 2776 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:335 [inline]
 __d_lookup+0x10e/0x380 fs/dcache.c:2490
 lookup_fast+0x4c/0x290 fs/namei.c:1651
 walk_component fs/namei.c:1997 [inline]
 link_path_walk+0x3f4/0x7e0 fs/namei.c:2328
 path_openat+0x1a1/0x1d10 fs/namei.c:3792
 do_filp_open+0xf6/0x200 fs/namei.c:3823
 do_sys_openat2+0xab/0x110 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1448
 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

value changed: 0xffff88823783cc80 -> 0xffff888156426b48

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2776 Comm: udevd Tainted: G        W          6.6.0-rc5-syzkaller-00055-g1c8b86a3799f #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/11 16:44 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup / __d_rehash
* Struck through repros no longer work on HEAD.