syzbot


KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object (2)

Status: auto-closed as invalid on 2020/06/16 20:23
Subsystems: fs
[Documentation on labels]
First crash: 1618d, last: 1478d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object fs 1 1626d 1626d 0/26 closed as invalid on 2019/11/19 15:04
upstream KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object (3) fs syz 978 2h26m 139d 0/26 moderation: reported syz repro on 2023/12/08 00:00

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

write to 0xffff88812985e9d4 of 4 bytes by task 11458 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:488
 __fput+0x1c3/0x4f0 fs/file_table.c:280
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xf5/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x36e/0x390 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812985e9d4 of 4 bytes by task 11459 on cpu 0:
 __fsnotify_parent+0xc7/0x230 fs/notify/fsnotify.c:161
 fsnotify_parent include/linux/fsnotify.h:40 [inline]
 fsnotify_path include/linux/fsnotify.h:50 [inline]
 fsnotify_perm include/linux/fsnotify.h:85 [inline]
 security_file_permission+0x187/0x270 security/security.c:1411
 rw_verify_area+0xd8/0x230 fs/read_write.c:399
 do_splice_to+0x5f/0x100 fs/splice.c:880
 splice_direct_to_actor+0x1b9/0x540 fs/splice.c:971
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x396/0x810 fs/read_write.c:1520
 __do_sys_sendfile64 fs/read_write.c:1575 [inline]
 __se_sys_sendfile64 fs/read_write.c:1567 [inline]
 __x64_sys_sendfile64+0xb8/0x140 fs/read_write.c:1567
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11459 Comm: syz-executor.1 Not tainted 5.6.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/04/07 20:20 https://github.com/google/ktsan.git kcsan 40959e34d670 db9bcd4b .config console log report ci2-upstream-kcsan-gce
2020/03/09 09:56 https://github.com/google/ktsan.git kcsan 941e0d917bbf 2e9971bb .config console log report ci2-upstream-kcsan-gce
2020/01/13 05:05 https://github.com/google/ktsan.git kcsan 245a43005292 53faa9fe .config console log report ci2-upstream-kcsan-gce
2020/01/11 12:43 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
2019/12/04 19:39 https://github.com/google/ktsan.git kcsan ef798c30ba4e b2088328 .config console log report ci2-upstream-kcsan-gce
2019/11/19 16:59 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.