syzbot


KCSAN: data-race in __d_instantiate / __fsnotify_update_child_dentry_flags

Status: auto-obsoleted due to no activity on 2023/07/30 01:54
Subsystems: ext4
[Documentation on labels]
First crash: 899d, last: 899d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_instantiate / __fsnotify_update_child_dentry_flags

write to 0xffff88816a83b330 of 8 bytes by task 14888 on cpu 1:
 __d_set_inode_and_type fs/dcache.c:345 [inline]
 __d_instantiate+0x1f9/0x3b0 fs/dcache.c:2009
 d_instantiate_new+0x5c/0xf0 fs/dcache.c:2055
 ext4_add_nondir+0x161/0x190 fs/ext4/namei.c:2797
 ext4_create+0x20e/0x2f0 fs/ext4/namei.c:2837
 lookup_open fs/namei.c:3492 [inline]
 open_last_lookups fs/namei.c:3560 [inline]
 path_openat+0xd96/0x1d00 fs/namei.c:3788
 do_filp_open+0xf6/0x200 fs/namei.c:3818
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_creat fs/open.c:1448 [inline]
 __se_sys_creat fs/open.c:1442 [inline]
 __x64_sys_creat+0x66/0x90 fs/open.c:1442
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88816a83b330 of 8 bytes by task 14891 on cpu 0:
 __fsnotify_update_child_dentry_flags+0xfc/0x1e0 fs/notify/fsnotify.c:128
 fsnotify_recalc_mask fs/notify/mark.c:194 [inline]
 fsnotify_add_mark_locked+0xadd/0xbd0 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+0x665/0x810 fs/notify/inotify/inotify_user.c:730
 __x64_sys_inotify_add_watch+0x43/0x50 fs/notify/inotify/inotify_user.c:730
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000000 -> 0xffff88816a950bf8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14891 Comm: syz-executor.2 Tainted: G        W          6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/25 01:45 upstream a92b7d26c743 79782afc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / __fsnotify_update_child_dentry_flags
* Struck through repros no longer work on HEAD.