syzbot


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

Status: auto-closed as invalid on 2020/04/08 20:57
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1001d, last: 932d
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 (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
upstream KCSAN: data-race in __dentry_kill / d_set_d_op 3 1013d 1020d 0/23 closed as invalid on 2019/11/19 14:14

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

read to 0xffff888125203900 of 4 bytes by task 19422 on cpu 0:
 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_conditional fs/namei.c:821 [inline]
 follow_managed+0x1eb/0x6f0 fs/namei.c:1279
 walk_component+0x4ec/0xd90 fs/namei.c:1808
 lookup_last fs/namei.c:2260 [inline]
 path_lookupat.isra.0+0x13a/0x5a0 fs/namei.c:2305
 filename_lookup+0x145/0x2b0 fs/namei.c:2335
 user_path_at_empty+0x4c/0x70 fs/namei.c:2615
 user_path_at include/linux/namei.h:49 [inline]
 vfs_statx+0xd9/0x190 fs/stat.c:187
 vfs_stat include/linux/fs.h:3249 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888125203900 of 4 bytes by task 12670 on cpu 1:
 d_set_d_op+0x17b/0x230 fs/dcache.c:1856
 simple_lookup fs/libfs.c:70 [inline]
 simple_lookup+0xaa/0xb0 fs/libfs.c:65
 __lookup_slow+0x129/0x2a0 fs/namei.c:1665
 lookup_slow+0x4f/0x70 fs/namei.c:1682
 walk_component+0x490/0xd90 fs/namei.c:1802
 lookup_last fs/namei.c:2260 [inline]
 path_lookupat.isra.0+0x13a/0x5a0 fs/namei.c:2305
 filename_lookup+0x145/0x2b0 fs/namei.c:2335
 user_path_at_empty+0x4c/0x70 fs/namei.c:2615
 user_path_at include/linux/namei.h:49 [inline]
 vfs_statx+0xd9/0x190 fs/stat.c:187
 vfs_stat include/linux/fs.h:3249 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12670 Comm: udevd Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/01/29 20:48 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config log report
ci2-upstream-kcsan-gce 2020/01/19 18:21 https://github.com/google/ktsan.git kcsan 245a43005292 0342f8c7 .config log report
ci2-upstream-kcsan-gce 2020/01/13 12:11 https://github.com/google/ktsan.git kcsan 245a43005292 99565c1a .config log report
ci2-upstream-kcsan-gce 2020/01/06 08:53 https://github.com/google/ktsan.git kcsan 245a43005292 438e1227 .config log report
ci2-upstream-kcsan-gce 2020/01/03 18:32 https://github.com/google/ktsan.git kcsan 245a43005292 9dcc1191 .config log report
ci2-upstream-kcsan-gce 2019/12/11 08:33 https://github.com/google/ktsan.git kcsan ef798c30ba4e 101194eb .config log report
ci2-upstream-kcsan-gce 2019/12/04 18:16 https://github.com/google/ktsan.git kcsan ef798c30ba4e b2088328 .config log report
ci2-upstream-kcsan-gce 2019/12/01 20:30 https://github.com/google/ktsan.git kcsan ef798c30ba4e f879db37 .config log report
ci2-upstream-kcsan-gce 2019/11/21 17:08 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config log report