syzbot


KCSAN: data-race in fsnotify_parent / vfs_rename

Status: closed as invalid on 2020/06/18 14:24
Subsystems: fs
[Documentation on labels]
First crash: 1467d, last: 1405d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify_parent / vfs_rename (2) fs 7 1358d 1396d 0/26 auto-closed as invalid on 2020/09/08 19:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fsnotify_parent / vfs_rename

write to 0xffff8880b6198780 of 4 bytes by task 12064 on cpu 0:
 dont_mount include/linux/dcache.h:352 [inline]
 vfs_rename+0x985/0x1130 fs/namei.c:4297
 do_renameat2+0x9e8/0xa50 fs/namei.c:4437
 __do_sys_rename fs/namei.c:4483 [inline]
 __se_sys_rename fs/namei.c:4481 [inline]
 __x64_sys_rename+0x44/0x60 fs/namei.c:4481
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b6198780 of 4 bytes by task 5286 on cpu 1:
 fsnotify_parent+0x4d/0x1b0 fs/notify/fsnotify.c:153
 fsnotify_file include/linux/fsnotify.h:74 [inline]
 fsnotify_close include/linux/fsnotify.h:281 [inline]
 __fput+0x121/0x500 fs/file_table.c:266
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xba/0x120 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:165
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/18 09:55 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 d45a4d69 .config console log report ci2-upstream-kcsan-gce
2020/06/12 02:29 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 1beaee21 .config console log report ci2-upstream-kcsan-gce
2020/06/04 05:19 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 b0d1c0d5 .config console log report ci2-upstream-kcsan-gce
2020/05/30 10:46 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 954bd312 .config console log report ci2-upstream-kcsan-gce
2020/04/29 01:23 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 e3ecea2e .config console log report ci2-upstream-kcsan-gce
2020/04/18 03:51 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 435c6d53 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.