syzbot


KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (4)

Status: auto-obsoleted due to no activity on 2024/08/29 19:56
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+4d9e77bc73d118c6dc78@syzkaller.appspotmail.com
First crash: 159d, last: 135d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly kernfs report (Jul 2024) 0 (1) 2024/07/09 14:10
[syzbot] [kernfs?] KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (4) 0 (1) 2024/07/04 14:47
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission kernfs 1 359d 359d 0/28 auto-obsoleted due to no activity on 2024/01/18 07:18
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (2) kernfs 1 300d 300d 0/28 auto-obsoleted due to no activity on 2024/03/16 21:17
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (3) kernfs 1 209d 209d 0/28 auto-obsoleted due to no activity on 2024/06/15 22:09
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (6) kernfs 1 19d 19d 0/28 moderation: reported on 2024/11/18 01:11
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (5) kernfs 1 80d 80d 0/28 auto-obsoleted due to no activity on 2024/10/23 06:46

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

write to 0xffff888104ba3d40 of 8 bytes by task 3093 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1602 [inline]
 set_inode_attr fs/kernfs/inode.c:163 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:177 [inline]
 kernfs_iop_permission+0x13f/0x220 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:468 [inline]
 inode_permission+0x18c/0x300 fs/namei.c:535
 may_lookup fs/namei.c:1761 [inline]
 link_path_walk+0x5f3/0x820 fs/namei.c:2352
 path_openat+0x1aa/0x1f10 fs/namei.c:3882
 do_filp_open+0xf7/0x200 fs/namei.c:3913
 do_sys_openat2+0xab/0x120 fs/open.c:1416
 do_sys_open fs/open.c:1431 [inline]
 __do_sys_openat fs/open.c:1447 [inline]
 __se_sys_openat fs/open.c:1442 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1442
 x64_sys_call+0x1ac/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888104ba3d40 of 8 bytes by task 3092 on cpu 0:
 inode_set_mtime_to_ts include/linux/fs.h:1602 [inline]
 set_inode_attr fs/kernfs/inode.c:163 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:177 [inline]
 kernfs_iop_permission+0x13f/0x220 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:468 [inline]
 inode_permission+0x18c/0x300 fs/namei.c:535
 may_create+0x18e/0x1f0 fs/namei.c:3105
 vfs_mkdir+0x54/0x320 fs/namei.c:4195
 do_mkdirat+0x12f/0x2a0 fs/namei.c:4233
 __do_sys_mkdirat fs/namei.c:4248 [inline]
 __se_sys_mkdirat fs/namei.c:4246 [inline]
 __x64_sys_mkdirat+0x4e/0x60 fs/namei.c:4246
 x64_sys_call+0x2cde/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:259
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000066a2adb5 -> 0x0000000066a2adb6

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3092 Comm: syz-executor Not tainted 6.10.0-syzkaller-12381-gc33ffdb70cc6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/25 19:55 upstream c33ffdb70cc6 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission
2024/07/23 16:27 upstream 66ebbdfdeb09 e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission
2024/07/01 00:14 upstream 22a40d14b572 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission
* Struck through repros no longer work on HEAD.