syzbot


KCSAN: data-race in __d_lookup_done / __dentry_kill

Status: auto-closed as invalid on 2020/06/18 14:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1068d, last: 895d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_lookup_done / __dentry_kill (5) 5 484d 520d 0/24 auto-closed as invalid on 2021/07/08 04:16
upstream KCSAN: data-race in __d_lookup_done / __dentry_kill (3) 1 726d 726d 0/24 auto-closed as invalid on 2020/11/08 00:33
upstream KCSAN: data-race in __d_lookup_done / __dentry_kill (4) 3 605d 629d 0/24 auto-closed as invalid on 2021/03/09 07:41
upstream KCSAN: data-race in __d_lookup_done / __dentry_kill (6) 1 159d 159d 0/24 auto-closed as invalid on 2022/05/29 05:25
upstream KCSAN: data-race in __d_lookup_done / __dentry_kill (2) 4 808d 828d 0/24 auto-closed as invalid on 2020/08/18 04:12

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

write to 0xffff888121333a80 of 4 bytes by task 21894 on cpu 0:
 __d_lookup_done+0xa4/0x2f0 fs/dcache.c:2629
 d_lookup_done include/linux/dcache.h:367 [inline]
 d_lookup_done include/linux/dcache.h:363 [inline]
 __lookup_slow+0x22b/0x270 fs/namei.c:1531
 lookup_slow fs/namei.c:1547 [inline]
 walk_component+0x296/0x390 fs/namei.c:1846
 link_path_walk.part.0+0x469/0x700 fs/namei.c:2169
 link_path_walk fs/namei.c:2098 [inline]
 path_openat+0x191/0x23d0 fs/namei.c:3342
 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

read to 0xffff888121333a80 of 4 bytes by task 19468 on cpu 1:
 dentry_unlist fs/dcache.c:544 [inline]
 __dentry_kill+0x1b4/0x3b0 fs/dcache.c:575
 dentry_kill fs/dcache.c:698 [inline]
 dput+0x399/0x700 fs/dcache.c:859
 handle_mounts fs/namei.c:1375 [inline]
 step_into+0x8a3/0x1090 fs/namei.c:1676
 walk_component+0xde/0x390 fs/namei.c:1852
 link_path_walk.part.0+0x469/0x700 fs/namei.c:2169
 link_path_walk fs/namei.c:2098 [inline]
 path_openat+0x191/0x23d0 fs/namei.c:3342
 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: 19468 Comm: systemd-udevd Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (29):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/04/18 16:01 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 365fba24 .config log report
ci2-upstream-kcsan-gce 2020/04/08 06:23 https://github.com/google/ktsan.git kcsan 40959e34d670 db9bcd4b .config log report
ci2-upstream-kcsan-gce 2020/02/03 00:58 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config log report
ci2-upstream-kcsan-gce 2020/02/01 16:04 https://github.com/google/ktsan.git kcsan 245a43005292 326d4c78 .config log report
ci2-upstream-kcsan-gce 2020/01/29 12:49 https://github.com/google/ktsan.git kcsan 245a43005292 c8e81ce4 .config log report
ci2-upstream-kcsan-gce 2020/01/23 14:36 https://github.com/google/ktsan.git kcsan 245a43005292 11ebf937 .config log report
ci2-upstream-kcsan-gce 2020/01/22 23:03 https://github.com/google/ktsan.git kcsan 245a43005292 3334d684 .config log report
ci2-upstream-kcsan-gce 2020/01/21 06:26 https://github.com/google/ktsan.git kcsan 245a43005292 8eda0b95 .config log report
ci2-upstream-kcsan-gce 2020/01/16 15:39 https://github.com/google/ktsan.git kcsan 245a43005292 3de7aabb .config log report
ci2-upstream-kcsan-gce 2020/01/15 06:24 https://github.com/google/ktsan.git kcsan 245a43005292 fa12bd3c .config log report
ci2-upstream-kcsan-gce 2020/01/14 08:41 https://github.com/google/ktsan.git kcsan 245a43005292 32881205 .config log report
ci2-upstream-kcsan-gce 2020/01/13 11:28 https://github.com/google/ktsan.git kcsan 245a43005292 99565c1a .config log report
ci2-upstream-kcsan-gce 2020/01/13 07:12 https://github.com/google/ktsan.git kcsan 245a43005292 53faa9fe .config log report
ci2-upstream-kcsan-gce 2020/01/09 15:43 https://github.com/google/ktsan.git kcsan 245a43005292 4de4e9f0 .config log report
ci2-upstream-kcsan-gce 2019/12/29 13:34 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config log report
ci2-upstream-kcsan-gce 2019/12/22 14:01 https://github.com/google/ktsan.git kcsan 245a43005292 8b967267 .config log report
ci2-upstream-kcsan-gce 2019/12/18 22:02 https://github.com/google/ktsan.git kcsan 245a43005292 79b211f7 .config log report
ci2-upstream-kcsan-gce 2019/12/17 18:58 https://github.com/google/ktsan.git kcsan 245a43005292 1af3875f .config log report
ci2-upstream-kcsan-gce 2019/12/12 15:30 https://github.com/google/ktsan.git kcsan ef798c30ba4e d973f528 .config log report
ci2-upstream-kcsan-gce 2019/12/09 15:22 https://github.com/google/ktsan.git kcsan ef798c30ba4e b31eda3d .config log report
ci2-upstream-kcsan-gce 2019/12/07 18:26 https://github.com/google/ktsan.git kcsan ef798c30ba4e 85f26751 .config log report
ci2-upstream-kcsan-gce 2019/11/30 16:54 https://github.com/google/ktsan.git kcsan ef798c30ba4e 3a75be00 .config log report
ci2-upstream-kcsan-gce 2019/11/27 17:12 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d63f89c .config log report
ci2-upstream-kcsan-gce 2019/11/24 12:32 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config log report
ci2-upstream-kcsan-gce 2019/11/12 09:06 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config log report
ci2-upstream-kcsan-gce 2019/11/08 11:25 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config log report
ci2-upstream-kcsan-gce 2019/11/07 02:00 https://github.com/google/ktsan.git kcsan 94c006602e13 da505f84 .config log report
ci2-upstream-kcsan-gce 2019/10/30 20:59 https://github.com/google/ktsan.git kcsan 05f2236801fe a41ca8fa .config log report
ci2-upstream-kcsan-gce 2019/10/28 04:14 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config log report
* Struck through repros no longer work on HEAD.