syzbot


KCSAN: data-race in fsnotify_perm / setattr_copy (4)

Status: auto-obsoleted due to no activity on 2023/10/04 00:14
Subsystems: ext4
[Documentation on labels]
First crash: 176d, last: 176d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify_perm / setattr_copy (5) fs 1 44d 44d 0/26 auto-obsoleted due to no activity on 2024/02/12 19:37
upstream KCSAN: data-race in fsnotify_perm / setattr_copy fs 1 954d 954d 0/26 auto-closed as invalid on 2021/08/17 01:02
upstream KCSAN: data-race in fsnotify_perm / setattr_copy (3) fs 1 764d 764d 0/26 auto-closed as invalid on 2022/02/23 05:39
upstream KCSAN: data-race in fsnotify_perm / setattr_copy (2) ext4 1 891d 891d 0/26 auto-closed as invalid on 2021/10/19 09:08

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

write to 0xffff88810a858128 of 2 bytes by task 24716 on cpu 1:
 setattr_copy+0x25c/0x270 fs/attr.c:321
 ext4_setattr+0x3d4/0xeb0 fs/ext4/inode.c:5443
 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:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810a858128 of 2 bytes by task 24715 on cpu 0:
 fsnotify_parent include/linux/fsnotify.h:65 [inline]
 fsnotify_file include/linux/fsnotify.h:101 [inline]
 fsnotify_perm+0x2b8/0x3b0 include/linux/fsnotify.h:126
 security_file_permission+0x5a/0x70 security/security.c:2564
 rw_verify_area+0x89/0x140 fs/read_write.c:374
 vfs_splice_read fs/splice.c:979 [inline]
 splice_direct_to_actor+0x1e9/0x690 fs/splice.c:1070
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 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: 0x8000 -> 0x8094

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 24715 Comm: syz-executor.5 Not tainted 6.5.0-syzkaller-01810-gf97e18a3f2fb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/30 00:05 upstream f97e18a3f2fb ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fsnotify_perm / setattr_copy
* Struck through repros no longer work on HEAD.