syzbot


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

Status: auto-closed as invalid on 2020/12/21 11:58
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+742cc8094ed5a2cde98d@syzkaller.appspotmail.com
First crash: 1265d, last: 1265d
Similar bugs (16)
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 809d 809d 0/26 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 1 5d20h 5d20h 0/26 moderation: reported on 2024/04/18 05:15
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) fs 2 1044d 1077d 0/26 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 1416d 1456d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) fs 9 1546d 1615d 0/26 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) fs 5 708d 770d 0/26 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 13 217d 277d 0/26 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 313d 313d 0/26 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 1345d 1364d 0/26 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 1 668d 668d 0/26 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 1 1136d 1136d 0/26 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 114d 136d 0/26 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 573d 618d 0/26 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 847d 1004d 0/26 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 3 1626d 1633d 0/26 closed as invalid on 2019/11/19 14:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (13) fs 4 424d 483d 0/26 auto-obsoleted due to no activity on 2023/04/04 19:35

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

read-write to 0xffff888057973cc0 of 4 bytes by task 3980 on cpu 1:
 d_set_d_op+0x14c/0x1e0 fs/dcache.c:1875
 simple_lookup+0x78/0x90 fs/libfs.c:73
 __lookup_slow+0x181/0x250 fs/namei.c:1544
 lookup_slow fs/namei.c:1561 [inline]
 walk_component+0x2a5/0x350 fs/namei.c:1861
 lookup_last fs/namei.c:2310 [inline]
 path_lookupat+0x11d/0x550 fs/namei.c:2334
 filename_lookup+0xf2/0x380 fs/namei.c:2367
 user_path_at_empty+0x3b/0x50 fs/namei.c:2647
 user_path_at include/linux/namei.h:59 [inline]
 vfs_statx+0x90/0x270 fs/stat.c:185
 vfs_fstatat fs/stat.c:207 [inline]
 vfs_lstat include/linux/fs.h:3109 [inline]
 __do_sys_newlstat fs/stat.c:362 [inline]
 __se_sys_newlstat+0x46/0x250 fs/stat.c:356
 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:356
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888057973cc0 of 4 bytes by task 3953 on cpu 0:
 dentry_unlist fs/dcache.c:544 [inline]
 __dentry_kill+0x1e7/0x450 fs/dcache.c:575
 dentry_kill fs/dcache.c:692 [inline]
 dput+0x203/0x420 fs/dcache.c:878
 handle_mounts fs/namei.c:1389 [inline]
 step_into+0x43b/0xe80 fs/namei.c:1691
 walk_component+0x190/0x350 fs/namei.c:1867
 lookup_last fs/namei.c:2310 [inline]
 path_lookupat+0x11d/0x550 fs/namei.c:2334
 filename_lookup+0xf2/0x380 fs/namei.c:2367
 user_path_at_empty+0x3b/0x50 fs/namei.c:2647
 user_path_at include/linux/namei.h:59 [inline]
 vfs_statx+0x90/0x270 fs/stat.c:185
 vfs_fstatat fs/stat.c:207 [inline]
 vfs_lstat include/linux/fs.h:3109 [inline]
 __do_sys_newlstat fs/stat.c:362 [inline]
 __se_sys_newlstat+0x46/0x250 fs/stat.c:356
 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:356
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3953 Comm: systemd-udevd Not tainted 5.10.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/05 23:08 upstream 521b619acdc8 cba33199 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.