syzbot


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

Status: auto-closed as invalid on 2021/01/26 06:19
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+bc914de700c06240153a@syzkaller.appspotmail.com
First crash: 1293d, last: 1229d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / retain_dentry (3) fs 3 1179d 1183d 0/26 auto-closed as invalid on 2021/03/18 01:39
upstream KCSAN: data-race in __dentry_kill / retain_dentry (4) fs 3 1120d 1139d 0/26 auto-closed as invalid on 2021/05/17 09:01
upstream KCSAN: data-race in __dentry_kill / retain_dentry fs 1 1390d 1390d 0/26 auto-closed as invalid on 2020/08/18 17:44

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

write to 0xffff888134c7b300 of 4 bytes by task 4897 on cpu 0:
 retain_dentry+0x1c3/0x240 fs/dcache.c:659
 dput+0x10e/0x420 fs/dcache.c:873
 __fput+0x3ab/0x4e0 fs/file_table.c:293
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x16b/0x1a0 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888134c7b300 of 4 bytes by task 17427 on cpu 1:
 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:3123 [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: 1 PID: 17427 Comm: systemd-udevd Not tainted 5.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/22 06:19 upstream 8653b778e454 04201c06 .config console log report info ci2-upstream-kcsan-gce
2020/12/07 17:09 upstream 0477e9288185 f80ce148 .config console log report info ci2-upstream-kcsan-gce
2020/12/03 00:53 upstream 3bb61aa61828 8c9190ef .config console log report info ci2-upstream-kcsan-gce
2020/12/01 20:11 upstream b65054597872 07bfe8a5 .config console log report info ci2-upstream-kcsan-gce
2020/11/21 02:09 upstream 4d02da974ea8 68068804 .config console log report info ci2-upstream-kcsan-gce
2020/11/19 11:08 upstream c2e7554e1b85 0767f13f .config console log report info ci2-upstream-kcsan-gce
2020/11/10 20:26 upstream 407ab579637c cca87986 .config console log report info ci2-upstream-kcsan-gce
2020/11/03 23:36 upstream 4ef8451b3326 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/10/27 07:14 upstream 41ba50b0572e 8b3eaf58 .config console log report info ci2-upstream-kcsan-gce
2020/10/26 03:17 upstream 986b9eacb259 a1839e81 .config console log report info ci2-upstream-kcsan-gce
2020/10/20 20:43 upstream 270315b8235e ff4a3345 .config console log report info ci2-upstream-kcsan-gce
2020/10/20 02:23 upstream bbe85027ce80 ff4a3345 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.