syzbot


KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask

Status: auto-obsoleted due to no activity on 2023/02/11 07:53
Subsystems: fs
[Documentation on labels]
First crash: 728d, last: 728d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask (4) fs 2 233d 262d 0/28 auto-obsoleted due to no activity on 2024/05/22 16:38
upstream KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask (3) fs 1 397d 362d 0/28 auto-obsoleted due to no activity on 2023/12/25 00:07
upstream KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask (2) fs 1 463d 463d 0/28 auto-obsoleted due to no activity on 2023/10/05 20:31
upstream KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask (5) fs 15 68d 155d 28/28 fixed on 2024/11/12 23:31

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

write to 0xffff888101bb1324 of 4 bytes by task 2269 on cpu 0:
 __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 0xffff888101bb1324 of 4 bytes by task 1818 on cpu 1:
 fsnotify_event_needs_parent fs/notify/fsnotify.c:161 [inline]
 __fsnotify_parent+0x126/0x470 fs/notify/fsnotify.c:202
 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:1315
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 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: 1 PID: 1818 Comm: syz-executor.3 Tainted: G        W          6.1.0-rc8-syzkaller-00152-g3ecc37918c80-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/10 11:01 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / __fsnotify_recalc_mask
* Struck through repros no longer work on HEAD.