syzbot


KCSAN: data-race in fsnotify_detach_connector_from_object / fsnotify_parent

Status: auto-closed as invalid on 2020/06/18 13:43
Subsystems: fs
[Documentation on labels]
First crash: 1459d, last: 1446d

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

write to 0xffff8880bae4f464 of 4 bytes by task 21035 on cpu 1:
 fsnotify_detach_connector_from_object+0xa8/0x1f0 fs/notify/mark.c:184
 fsnotify_put_mark+0x340/0x420 fs/notify/mark.c:250
 fsnotify_clear_marks_by_group+0x2ab/0x320 fs/notify/mark.c:760
 fsnotify_destroy_group+0x5a/0x190 fs/notify/group.c:60
 fanotify_release+0x20e/0x240 fs/notify/fanotify/fanotify_user.c:555
 __fput+0x1e9/0x500 fs/file_table.c:280
 ____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

read to 0xffff8880bae4f464 of 4 bytes by task 21036 on cpu 0:
 fsnotify_parent fs/notify/fsnotify.c:159 [inline]
 fsnotify_parent+0xbd/0x1b0 fs/notify/fsnotify.c:146
 fsnotify_file include/linux/fsnotify.h:74 [inline]
 fsnotify_modify include/linux/fsnotify.h:257 [inline]
 do_iter_write fs/read_write.c:1003 [inline]
 do_iter_write+0x1e2/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1576 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0xb8/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21036 Comm: syz-executor.5 Not tainted 5.7.0-rc1-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/05/03 13:33 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 58ae5e18 .config console log report ci2-upstream-kcsan-gce
2020/04/23 12:12 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 2e44d63e .config console log report ci2-upstream-kcsan-gce
2020/04/21 02:06 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 98a9f9e6 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.