syzbot


KCSAN: data-race in fsnotify_parent / fsnotify_put_mark

Status: auto-closed as invalid on 2020/08/07 16:16
Subsystems: fs
[Documentation on labels]
First crash: 1673d, last: 1670d

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

write to 0xffff8880b99a4de4 of 4 bytes by task 3411 on cpu 0:
 fsnotify_detach_connector_from_object fs/notify/mark.c:184 [inline]
 fsnotify_put_mark+0x26c/0x5c0 fs/notify/mark.c:250
 fsnotify_clear_marks_by_group+0x348/0x3e0 fs/notify/mark.c:764
 fsnotify_destroy_group+0x51/0x170 fs/notify/group.c:61
 fanotify_release+0x2c5/0x2e0 fs/notify/fanotify/fanotify_user.c:557
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:135
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:329
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b99a4de4 of 4 bytes by task 3414 on cpu 1:
 fsnotify_inode_watches_children include/linux/fsnotify_backend.h:392 [inline]
 fsnotify_parent+0x8a/0x180 fs/notify/fsnotify.c:159
 fsnotify_file include/linux/fsnotify.h:74 [inline]
 fsnotify_modify include/linux/fsnotify.h:257 [inline]
 do_iter_write+0x1af/0x470 fs/read_write.c:1003
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1040
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 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+0xa9/0x130 fs/read_write.c:1568
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3414 Comm: syz-executor.5 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/03 16:11 upstream cdd3bb54332f 6e569755 .config console log report ci2-upstream-kcsan-gce
2020/06/30 03:46 upstream 7c30b859a947 917afeaa .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.