syzbot


KCSAN: data-race in fsnotify / fsnotify_recalc_mask

Status: auto-closed as invalid on 2020/08/23 22:37
Subsystems: fs
[Documentation on labels]
First crash: 1347d, last: 1347d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (3) fs 1 917d 917d 0/26 auto-closed as invalid on 2021/10/27 22:47
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (4) fs 1 872d 872d 0/26 auto-closed as invalid on 2021/12/12 11:17
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (5) fs 1 690d 690d 0/26 auto-closed as invalid on 2022/06/12 08:27
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (2) fs 2 1070d 1088d 0/26 auto-closed as invalid on 2021/05/27 13:51

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

write to 0xffff8881294d6ba8 of 4 bytes by task 13555 on cpu 1:
 __fsnotify_recalc_mask fs/notify/mark.c:132 [inline]
 fsnotify_recalc_mask+0x154/0x1b0 fs/notify/mark.c:147
 fanotify_add_mark+0x209/0x280 fs/notify/fanotify/fanotify_user.c:791
 do_fanotify_mark+0x92f/0x990 fs/notify/fanotify/fanotify_user.c:830
 __do_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1180 [inline]
 __se_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1176 [inline]
 __x64_sys_fanotify_mark+0x60/0x70 fs/notify/fanotify/fanotify_user.c:1176
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881294d6ba8 of 4 bytes by task 13558 on cpu 0:
 fsnotify+0x75/0x9e0 fs/notify/fsnotify.c:318
 fsnotify_name include/linux/fsnotify.h:38 [inline]
 fsnotify_dirent include/linux/fsnotify.h:44 [inline]
 fsnotify_create include/linux/fsnotify.h:191 [inline]
 vfs_symlink+0x2ad/0x2f0 fs/namei.c:3955
 do_symlinkat+0xee/0x280 fs/namei.c:3980
 __do_sys_symlink fs/namei.c:3999 [inline]
 __se_sys_symlink fs/namei.c:3997 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:3997
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13558 Comm: syz-executor.1 Not tainted 5.8.0-rc5-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
2020/07/19 22:30 upstream 92188b41f139 9c812472 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.