syzbot


KCSAN: data-race in fsnotify / fsnotify_recalc_mask (5)

Status: auto-closed as invalid on 2022/06/12 08:27
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 204d, last: 204d
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) 1 431d 431d 0/24 auto-closed as invalid on 2021/10/27 22:47
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (4) 1 386d 386d 0/24 auto-closed as invalid on 2021/12/12 11:17
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask 1 861d 861d 0/24 auto-closed as invalid on 2020/08/23 22:37
upstream KCSAN: data-race in fsnotify / fsnotify_recalc_mask (2) 2 585d 602d 0/24 auto-closed as invalid on 2021/05/27 13:51

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

write to 0xffff88810279c35c of 4 bytes by task 5479 on cpu 0:
 __fsnotify_recalc_mask fs/notify/mark.c:132 [inline]
 fsnotify_recalc_mask+0x1a5/0x210 fs/notify/mark.c:147
 fsnotify_add_mark_locked+0xb12/0xc30 fs/notify/mark.c:696
 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:656 [inline]
 inotify_new_watch fs/notify/inotify/inotify_user.c:609 [inline]
 inotify_update_watch fs/notify/inotify/inotify_user.c:636 [inline]
 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:774 [inline]
 __se_sys_inotify_add_watch+0x538/0x680 fs/notify/inotify/inotify_user.c:717
 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:717
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810279c35c of 4 bytes by task 6116 on cpu 1:
 fsnotify+0x2b9/0x1680 fs/notify/fsnotify.c:526
 __fsnotify_parent+0x30b/0x470 fs/notify/fsnotify.c:230
 fsnotify_parent include/linux/fsnotify.h:77 [inline]
 fsnotify_file include/linux/fsnotify.h:99 [inline]
 fsnotify_open include/linux/fsnotify.h:330 [inline]
 do_sys_openat2+0x23a/0x2a0 fs/open.c:1218
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x00002008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6116 Comm: syz-executor.5 Not tainted 5.18.0-rc5-syzkaller-00178-g30c8e80f7932-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/08 08:19 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in fsnotify / fsnotify_recalc_mask
* Struck through repros no longer work on HEAD.