syzbot


KCSAN: data-race in retain_dentry / step_into (4)

Status: auto-closed as invalid on 2021/05/24 08:11
Subsystems: fs
[Documentation on labels]
First crash: 1142d, last: 1102d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in retain_dentry / step_into (3) fs 2 1178d 1197d 0/26 auto-closed as invalid on 2021/03/09 12:32
upstream KCSAN: data-race in retain_dentry / step_into (2) fs 3 1239d 1235d 0/26 auto-closed as invalid on 2021/01/07 06:50
upstream KCSAN: data-race in retain_dentry / step_into fs 4 1347d 1384d 0/26 auto-closed as invalid on 2020/09/20 21:41

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

write to 0xffff888105e22600 of 4 bytes by task 11140 on cpu 1:
 retain_dentry+0x1de/0x260 fs/dcache.c:660
 dput+0x3d/0x360 fs/dcache.c:881
 __fput+0x3ab/0x4e0 fs/file_table.c:293
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 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+0x151/0x170 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x40/0x50 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888105e22600 of 4 bytes by task 11159 on cpu 0:
 __d_entry_type include/linux/dcache.h:394 [inline]
 d_is_symlink include/linux/dcache.h:424 [inline]
 step_into+0x158/0xec0 fs/namei.c:1777
 walk_component+0x190/0x350 fs/namei.c:1949
 lookup_last fs/namei.c:2398 [inline]
 path_lookupat+0x12d/0x570 fs/namei.c:2422
 filename_lookup+0xff/0x390 fs/namei.c:2455
 user_path_at_empty+0x3b/0x50 fs/namei.c:2735
 user_path_at include/linux/namei.h:60 [inline]
 do_sys_truncate fs/open.c:133 [inline]
 __do_sys_truncate fs/open.c:147 [inline]
 __se_sys_truncate fs/open.c:145 [inline]
 __x64_sys_truncate+0x75/0x120 fs/open.c:145
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11159 Comm: syz-executor.2 Not tainted 5.12.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/19 08:04 upstream bf05bf16c76b 50f523d7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
2021/04/13 00:34 upstream 89698becf06d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
2021/04/10 10:14 upstream 4e04e7513b0f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
2021/03/16 11:04 upstream 1a4431a5db2b fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
2021/03/10 08:20 upstream 05a59d79793d 26967e35 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
* Struck through repros no longer work on HEAD.