syzbot


KCSAN: data-race in inotify_one_event / inotify_remove_from_idr

Status: auto-closed as invalid on 2020/10/26 03:38
Subsystems: fs
[Documentation on labels]
First crash: 1338d, last: 1303d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inotify_one_event / inotify_remove_from_idr (2) fs 6 1239d 1226d 0/26 auto-closed as invalid on 2020/12/29 17:12

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inotify_one_event / inotify_remove_from_idr

write to 0xffff88812af4ae58 of 4 bytes by task 27705 on cpu 1:
 inotify_remove_from_idr+0x15b/0x320 fs/notify/inotify/inotify_user.c:475
 inotify_ignored_and_remove_idr+0x75/0xb0 fs/notify/inotify/inotify_user.c:500
 inotify_freeing_mark+0x19/0x20 fs/notify/inotify/inotify_fsnotify.c:166
 fsnotify_free_mark fs/notify/mark.c:427 [inline]
 fsnotify_destroy_mark+0xbc/0xd0 fs/notify/mark.c:436
 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:787 [inline]
 __se_sys_inotify_rm_watch+0xf7/0x170 fs/notify/inotify/inotify_user.c:764
 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:764
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812af4ae58 of 4 bytes by task 8716 on cpu 0:
 inotify_one_event+0x192/0x2e0 fs/notify/inotify/inotify_fsnotify.c:115
 inotify_handle_event+0x103/0x190 fs/notify/inotify/inotify_fsnotify.c:156
 send_to_group fs/notify/fsnotify.c:322 [inline]
 fsnotify+0xa85/0xe50 fs/notify/fsnotify.c:504
 __fsnotify_parent+0x3e3/0x470 fs/notify/fsnotify.c:223
 fsnotify_parent include/linux/fsnotify.h:68 [inline]
 fsnotify_file include/linux/fsnotify.h:90 [inline]
 fsnotify_close include/linux/fsnotify.h:279 [inline]
 __fput+0x184/0x4d0 fs/file_table.c:267
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:141
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:163 [inline]
 exit_to_user_mode_prepare+0x1b2/0x210 kernel/entry/common.c:190
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:265
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8716 Comm: syz-executor.3 Not tainted 5.9.0-rc5-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/09/21 03:34 upstream bdcf11de8f77 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
2020/08/29 21:49 upstream 4d41ead6ead9 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
2020/08/17 00:24 upstream 2cc3c4b3c2e9 5ce13532 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.