syzbot


KCSAN: data-race in __dentry_kill / d_set_d_op

Status: closed as invalid on 2019/11/19 14:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1020d, last: 1013d
similar bugs (10):
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 195d 195d 0/23 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) 2 431d 464d 0/23 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) 6 803d 843d 0/23 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) 9 932d 1001d 0/23 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) 1 651d 620d 0/23 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) 5 95d 156d 0/23 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (4) 3 732d 751d 0/23 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) 1 55d 55d 0/23 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) 1 522d 522d 0/23 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) 13 234d 391d 0/23 auto-closed as invalid on 2022/02/01 06:29

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

read to 0xffff88812445e3c0 of 4 bytes by task 8064 on cpu 1:
 dentry_unlist fs/dcache.c:544 [inline]
 __dentry_kill+0x1be/0x3c0 fs/dcache.c:575
 dentry_kill fs/dcache.c:698 [inline]
 dput+0x3b5/0x750 fs/dcache.c:859
 path_put fs/namei.c:482 [inline]
 terminate_walk+0x107/0x250 fs/namei.c:596
 path_openat+0x2977/0x36e0 fs/namei.c:3529
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88812445e3c0 of 4 bytes by task 8023 on cpu 0:
 d_set_d_op+0x17b/0x230 fs/dcache.c:1854
 simple_lookup fs/libfs.c:70 [inline]
 simple_lookup+0xaa/0xb0 fs/libfs.c:65
 lookup_open fs/namei.c:3203 [inline]
 do_last fs/namei.c:3314 [inline]
 path_openat+0x15b4/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8023 Comm: udevd Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/11/10 12:45 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config log report
ci2-upstream-kcsan-gce 2019/11/07 17:17 https://github.com/google/ktsan.git kcsan 94c006602e13 f39aff9e .config log report
ci2-upstream-kcsan-gce 2019/11/03 09:45 https://github.com/google/ktsan.git kcsan 05f2236801fe c9610487 .config log report