syzbot


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

Status: auto-closed as invalid on 2021/01/07 06:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+53b6d0af97cf2ad39096@syzkaller.appspotmail.com
First crash: 1260d, last: 1244d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in retain_dentry / step_into (4) fs 5 1107d 1147d 0/26 auto-closed as invalid on 2021/05/24 08:11
upstream KCSAN: data-race in retain_dentry / step_into (3) fs 2 1183d 1203d 0/26 auto-closed as invalid on 2021/03/09 12:32
upstream KCSAN: data-race in retain_dentry / step_into fs 4 1353d 1389d 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 0xffff88810d9da300 of 4 bytes by task 16244 on cpu 1:
 retain_dentry+0x1c3/0x240 fs/dcache.c:659
 dput+0x10e/0x420 fs/dcache.c:873
 __fput+0x395/0x4d0 fs/file_table.c:294
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:151
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
 exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810d9da300 of 4 bytes by task 16250 on cpu 0:
 __follow_mount_rcu fs/namei.c:1316 [inline]
 handle_mounts fs/namei.c:1373 [inline]
 step_into+0xec/0xe80 fs/namei.c:1691
 open_last_lookups fs/namei.c:3201 [inline]
 path_openat+0xfdb/0x20a0 fs/namei.c:3366
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 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: 16250 Comm: syz-executor.1 Not tainted 5.10.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/03 06:49 upstream 3bb61aa61828 8c9190ef .config console log report info ci2-upstream-kcsan-gce
2020/11/26 22:57 upstream 4df910620beb 2f1cec62 .config console log report info ci2-upstream-kcsan-gce
2020/11/17 18:08 upstream 9c87c9f41245 bd2a760b .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.