syzbot


KCSAN: data-race in __fsnotify_update_child_dentry_flags / setattr_copy

Status: auto-obsoleted due to no activity on 2023/03/18 00:29
Subsystems: fs
[Documentation on labels]
First crash: 1003d, last: 1003d

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

write to 0xffff888107caec48 of 2 bytes by task 21 on cpu 1:
 setattr_copy+0x355/0x370 fs/attr.c:320
 shmem_setattr+0xc1/0x490 mm/shmem.c:1130
 notify_change+0xa5c/0xad0 fs/attr.c:482
 handle_remove drivers/base/devtmpfs.c:344 [inline]
 handle drivers/base/devtmpfs.c:393 [inline]
 devtmpfs_work_loop+0x849/0x930 drivers/base/devtmpfs.c:406
 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:448
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff888107caec48 of 2 bytes by task 16247 on cpu 0:
 __fsnotify_update_child_dentry_flags+0x1e/0x200 fs/notify/fsnotify.c:111
 fsnotify_recalc_mask fs/notify/mark.c:194 [inline]
 fsnotify_add_mark_locked+0xb45/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+0x65c/0x810 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

value changed: 0x61b0 -> 0x6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16247 Comm: udevd Not tainted 6.2.0-rc4-syzkaller-00350-gedc00350d205-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/21 00:11 upstream edc00350d205 dd15ff29 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_update_child_dentry_flags / setattr_copy
* Struck through repros no longer work on HEAD.