syzbot


KCSAN: data-race in fsnotify / fsnotify_clear_marks_by_group (2)

Status: auto-closed as invalid on 2021/04/23 13:37
Subsystems: fs
[Documentation on labels]
First crash: 1133d, last: 1133d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify / fsnotify_clear_marks_by_group fs 1 1239d 1235d 0/26 auto-closed as invalid on 2021/01/07 12:58

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fsnotify / fsnotify_clear_marks_by_group

write to 0xffff88802023135c of 4 bytes by task 32745 on cpu 1:
 fsnotify_free_mark fs/notify/mark.c:418 [inline]
 fsnotify_clear_marks_by_group+0x2fb/0x3e0 fs/notify/mark.c:763
 fsnotify_destroy_group+0x51/0x170 fs/notify/group.c:61
 fanotify_release+0x2c5/0x2e0 fs/notify/fanotify/fanotify_user.c:623
 __fput+0x263/0x4f0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88802023135c of 4 bytes by task 32748 on cpu 0:
 send_to_group fs/notify/fsnotify.c:335 [inline]
 fsnotify+0x7c3/0x1190 fs/notify/fsnotify.c:541
 __fsnotify_parent+0x2f3/0x430 fs/notify/fsnotify.c:232
 fsnotify_parent include/linux/fsnotify.h:68 [inline]
 fsnotify_file include/linux/fsnotify.h:90 [inline]
 fsnotify_modify include/linux/fsnotify.h:255 [inline]
 do_iter_write+0x432/0x4c0 fs/read_write.c:870
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x7a6/0xe20 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1319 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1311
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32748 Comm: syz-executor.3 Tainted: G        W         5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/19 13:29 upstream 8b12a62a4e3e 2af9d324 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in fsnotify / fsnotify_clear_marks_by_group
* Struck through repros no longer work on HEAD.