syzbot


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

Status: auto-obsoleted due to no activity on 2023/08/02 16:55
Subsystems: ext4
[Documentation on labels]
First crash: 471d, last: 470d
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 56d 173d 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 411d 411d 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 529d 529d 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 1791d 1791d 0/28 auto-closed as invalid on 2020/01/24 17:56
upstream KCSAN: data-race in __d_lookup / __d_rehash (3) fs 1 700d 700d 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 894d 894d 0/28 auto-closed as invalid on 2022/06/04 08:25
upstream KCSAN: data-race in __d_lookup / __d_rehash (7) ext4 1 365d 365d 0/28 auto-obsoleted due to no activity on 2023/11/15 16:47

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

write to 0xffff8881062a5910 of 8 bytes by task 24749 on cpu 1:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:81 [inline]
 __d_rehash+0xc4/0x220 fs/dcache.c:2579
 __d_add+0x36d/0x4a0 fs/dcache.c:2794
 d_splice_alias+0xd6/0x270 fs/dcache.c:3182
 ext4_lookup+0x199/0x390 fs/ext4/namei.c:1879
 lookup_one_qstr_excl+0xc0/0x180 fs/namei.c:1605
 filename_create+0x14d/0x2b0 fs/namei.c:3887
 do_symlinkat+0x84/0x320 fs/namei.c:4496
 __do_sys_symlinkat fs/namei.c:4519 [inline]
 __se_sys_symlinkat fs/namei.c:4516 [inline]
 __x64_sys_symlinkat+0x62/0x70 fs/namei.c:4516
 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 0xffff8881062a5910 of 8 bytes by task 2747 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:2491
 lookup_fast+0x4c/0x290 fs/namei.c:1648
 walk_component fs/namei.c:1994 [inline]
 link_path_walk+0x3f4/0x7e0 fs/namei.c:2325
 path_openat+0x1a1/0x1d10 fs/namei.c:3789
 do_filp_open+0xf6/0x200 fs/namei.c:3820
 do_sys_openat2+0xb5/0x2e0 fs/open.c:1402
 do_sys_open fs/open.c:1418 [inline]
 __do_sys_openat fs/open.c:1434 [inline]
 __se_sys_openat fs/open.c:1429 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1429
 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: 0xffff88823789c698 -> 0xffff888126161608

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2747 Comm: udevd Not tainted 6.4.0-syzkaller-01761-g6aeadf7896bf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/28 16:44 upstream 6aeadf7896bf 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup / __d_rehash
2023/06/27 05:52 upstream c0a572d9d32f 4cd5bb25 .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.