syzbot


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

Status: auto-obsoleted due to no activity on 2023/02/08 07:52
Subsystems: ext4
[Documentation on labels]
First crash: 491d, last: 491d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_permission / setattr_copy (5) fs 1 194d 194d 0/26 auto-obsoleted due to no activity on 2023/11/25 12:17
upstream KCSAN: data-race in generic_permission / setattr_copy fs 1 1090d 1090d 0/26 auto-closed as invalid on 2021/06/11 22:43
upstream KCSAN: data-race in generic_permission / setattr_copy (6) ext4 1 95d 95d 0/26 auto-obsoleted due to no activity on 2024/03/02 13:46
upstream KCSAN: data-race in generic_permission / setattr_copy (2) fs 1 990d 990d 0/26 auto-closed as invalid on 2021/09/20 03:05
upstream KCSAN: data-race in generic_permission / setattr_copy (7) ext4 1 5d11h 5d11h 0/26 moderation: reported on 2024/04/27 01:41
upstream KCSAN: data-race in generic_permission / setattr_copy (3) fs 1 764d 764d 0/26 auto-closed as invalid on 2022/05/03 21:30

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

write to 0xffff88810ae43b08 of 2 bytes by task 16090 on cpu 1:
 setattr_copy+0x355/0x370 fs/attr.c:320
 ext4_setattr+0x52a/0xf10 fs/ext4/inode.c:5633
 notify_change+0xa5c/0xad0 fs/attr.c:482
 chmod_common+0x12c/0x260 fs/open.c:606
 do_fchmodat fs/open.c:645 [inline]
 __do_sys_chmod fs/open.c:663 [inline]
 __se_sys_chmod fs/open.c:661 [inline]
 __x64_sys_chmod+0x8f/0x100 fs/open.c:661
 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 0xffff88810ae43b08 of 2 bytes by task 16087 on cpu 0:
 acl_permission_check fs/namei.c:338 [inline]
 generic_permission+0x21/0x3a0 fs/namei.c:404
 do_inode_permission fs/namei.c:465 [inline]
 inode_permission+0x73/0x300 fs/namei.c:525
 may_open+0x222/0x310 fs/namei.c:3185
 do_open fs/namei.c:3555 [inline]
 path_openat+0x1629/0x1b60 fs/namei.c:3714
 do_filp_open+0x105/0x220 fs/namei.c:3741
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_open fs/open.c:1334 [inline]
 __se_sys_open fs/open.c:1330 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1330
 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: 0x4000 -> 0x4007

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16087 Comm: syz-executor.5 Not tainted 6.2.0-rc1-syzkaller-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/28 07:26 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_permission / setattr_copy
* Struck through repros no longer work on HEAD.