syzbot


KCSAN: data-race in fcntl_dirnotify / setattr_copy

Status: auto-obsoleted due to no activity on 2023/12/21 10:06
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+d13968d4234d750e213b@syzkaller.appspotmail.com
First crash: 637d, last: 637d

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

write to 0xffff888105d5f358 of 2 bytes by task 16878 on cpu 1:
 setattr_copy+0x29d/0x2b0 fs/attr.c:321
 ext4_setattr+0x3d4/0xea0 fs/ext4/inode.c:5488
 notify_change+0x866/0x8e0 fs/attr.c:499
 chmod_common+0x13c/0x270 fs/open.c:643
 vfs_fchmod fs/open.c:659 [inline]
 __do_sys_fchmod fs/open.c:668 [inline]
 __se_sys_fchmod fs/open.c:662 [inline]
 __x64_sys_fchmod+0xb2/0x100 fs/open.c:662
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888105d5f358 of 2 bytes by task 16872 on cpu 0:
 fcntl_dirnotify+0xa9/0x540 fs/notify/dnotify/dnotify.c:290
 do_fcntl+0x263/0xeb0 fs/fcntl.c:408
 __do_sys_fcntl fs/fcntl.c:456 [inline]
 __se_sys_fcntl+0xc4/0x180 fs/fcntl.c:441
 __x64_sys_fcntl+0x43/0x50 fs/fcntl.c:441
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x41c0 -> 0x4000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16872 Comm: syz-executor.0 Not tainted 6.7.0-rc1-syzkaller-00012-g9bacdd8996c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/14 21:47 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fcntl_dirnotify / setattr_copy
* Struck through repros no longer work on HEAD.