syzbot


KCSAN: data-race in __fsnotify_recalc_mask / fsnotify (3)

Status: auto-obsoleted due to no activity on 2022/10/21 23:59
Subsystems: fs
[Documentation on labels]
First crash: 588d, last: 588d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fsnotify_recalc_mask / fsnotify fs 1 1632d 1632d 0/26 closed as invalid on 2019/11/19 14:04
upstream KCSAN: data-race in __fsnotify_recalc_mask / fsnotify (2) fs 5 1521d 1601d 0/26 auto-closed as invalid on 2020/05/06 06:05

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

write to 0xffff888100fc6364 of 4 bytes by task 6576 on cpu 1:
 __fsnotify_recalc_mask+0x20d/0x310 fs/notify/mark.c:174
 fsnotify_recalc_mask fs/notify/mark.c:191 [inline]
 fsnotify_add_mark_locked+0xa2b/0xc60 fs/notify/mark.c:730
 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:787 [inline]
 inotify_new_watch fs/notify/inotify/inotify_user.c:621 [inline]
 inotify_update_watch fs/notify/inotify/inotify_user.c:648 [inline]
 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:787 [inline]
 __se_sys_inotify_add_watch+0x661/0x820 fs/notify/inotify/inotify_user.c:730
 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:730
 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+0x63/0xcd

read to 0xffff888100fc6364 of 4 bytes by task 1850 on cpu 0:
 fsnotify+0x233/0x1550 fs/notify/fsnotify.c:532
 __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:1316
 do_sys_open fs/open.c:1327 [inline]
 __do_sys_openat fs/open.c:1343 [inline]
 __se_sys_openat fs/open.c:1338 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1338
 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+0x63/0xcd

value changed: 0x00000000 -> 0x00002008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1850 Comm: syz-executor.2 Not tainted 6.0.0-rc5-syzkaller-00089-g6879c2d3b960-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/16 23:54 upstream 6879c2d3b960 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_recalc_mask / fsnotify
* Struck through repros no longer work on HEAD.