syzbot


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

Status: auto-closed as invalid on 2020/04/08 20:57
Subsystems: fs
[Documentation on labels]
First crash: 1845d, last: 1776d
Similar bugs (18)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (9) fs 1 1039d 1039d 0/28 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 1 236d 236d 0/28 auto-obsoleted due to no activity on 2024/05/23 05:15
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) fs 2 1275d 1308d 0/28 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 1647d 1687d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) fs 1 1495d 1464d 0/28 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) fs 5 938d 1000d 0/28 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 13 448d 507d 0/28 auto-obsoleted due to no activity on 2023/10/24 14:04
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (14) fs 1 543d 543d 0/28 auto-obsoleted due to no activity on 2023/07/21 00:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (4) fs 3 1576d 1595d 0/28 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 1 899d 899d 0/28 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 1 1366d 1366d 0/28 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 345d 366d 0/28 auto-obsoleted due to no activity on 2024/02/04 06:56
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (12) fs 3 803d 849d 0/28 auto-obsoleted due to no activity on 2022/11/02 16:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) fs 13 1078d 1235d 0/28 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 3 1857d 1864d 0/28 closed as invalid on 2019/11/19 14:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (18) fs 4 123d 166d 0/28 auto-obsoleted due to no activity on 2024/09/13 03:18
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (13) fs 4 654d 713d 0/28 auto-obsoleted due to no activity on 2023/04/04 19:35
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (19) fs 1 3d09h 3d09h 0/28 moderation: reported on 2024/12/07 04:42

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/29 20:48 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2020/01/19 18:21 https://github.com/google/ktsan.git kcsan 245a43005292 0342f8c7 .config console log report ci2-upstream-kcsan-gce
2020/01/13 12:11 https://github.com/google/ktsan.git kcsan 245a43005292 99565c1a .config console log report ci2-upstream-kcsan-gce
2020/01/06 08:53 https://github.com/google/ktsan.git kcsan 245a43005292 438e1227 .config console log report ci2-upstream-kcsan-gce
2020/01/03 18:32 https://github.com/google/ktsan.git kcsan 245a43005292 9dcc1191 .config console log report ci2-upstream-kcsan-gce
2019/12/11 08:33 https://github.com/google/ktsan.git kcsan ef798c30ba4e 101194eb .config console log report ci2-upstream-kcsan-gce
2019/12/04 18:16 https://github.com/google/ktsan.git kcsan ef798c30ba4e b2088328 .config console log report ci2-upstream-kcsan-gce
2019/12/01 20:30 https://github.com/google/ktsan.git kcsan ef798c30ba4e f879db37 .config console log report ci2-upstream-kcsan-gce
2019/11/21 17:08 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.