syzbot


KCSAN: data-race in __dentry_kill / d_set_d_op (11)

Status: auto-closed as invalid on 2022/07/30 10:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 164d, last: 164d
similar bugs (11):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (9) 1 304d 304d 0/24 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) 2 540d 573d 0/24 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) 6 912d 952d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) 9 1041d 1110d 0/24 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) 1 760d 729d 0/24 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) 5 203d 265d 0/24 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (4) 3 841d 860d 0/24 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) 1 631d 631d 0/24 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (12) 3 68d 114d 0/24 auto-obsoleted due to no activity on 2022/11/02 16:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) 13 343d 500d 0/24 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op 3 1122d 1129d 0/24 closed as invalid on 2019/11/19 14:14

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dentry_kill / d_set_d_op

read-write to 0xffff8881359a4c00 of 4 bytes by task 2111 on cpu 0:
 d_set_d_op+0x14c/0x1e0 fs/dcache.c:1936
 simple_lookup+0x78/0x90 fs/libfs.c:74
 lookup_open fs/namei.c:3352 [inline]
 open_last_lookups fs/namei.c:3444 [inline]
 path_openat+0xb0f/0x1b30 fs/namei.c:3650
 do_filp_open+0x105/0x220 fs/namei.c:3680
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1278
 do_sys_open fs/open.c:1294 [inline]
 __do_sys_openat fs/open.c:1310 [inline]
 __se_sys_openat fs/open.c:1305 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1305
 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+0x46/0xb0

read to 0xffff8881359a4c00 of 4 bytes by task 3563 on cpu 1:
 dentry_unlist fs/dcache.c:572 [inline]
 __dentry_kill+0x1e7/0x450 fs/dcache.c:603
 dentry_kill+0x8d/0x1e0
 dput+0x11e/0x1f0 fs/dcache.c:913
 handle_mounts fs/namei.c:1546 [inline]
 step_into+0x1c7/0x760 fs/namei.c:1844
 open_last_lookups fs/namei.c:3467 [inline]
 path_openat+0xf6c/0x1b30 fs/namei.c:3650
 do_filp_open+0x105/0x220 fs/namei.c:3680
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1278
 do_sys_open fs/open.c:1294 [inline]
 __do_sys_openat fs/open.c:1310 [inline]
 __se_sys_openat fs/open.c:1305 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1305
 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+0x46/0xb0

value changed: 0x10000000 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3563 Comm: udevd Not tainted 5.19.0-rc3-syzkaller-00279-g8c23f235a6a8-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop4, logical block 0, async page read

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/25 10:05 upstream 8c23f235a6a8 a371c43c .config log report info KCSAN: data-race in __dentry_kill / d_set_d_op
* Struck through repros no longer work on HEAD.