syzbot


KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission

Status: auto-obsoleted due to no activity on 2024/01/18 07:18
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+eed9764a046ca883917c@syzkaller.appspotmail.com
First crash: 205d, last: 205d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (2) kernfs 1 147d 147d 0/27 auto-obsoleted due to no activity on 2024/03/16 21:17
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (4) kernfs 1 6d05h 2d14h 0/27 upstream: reported on 2024/07/04 14:47
upstream KCSAN: data-race in kernfs_iop_permission / kernfs_iop_permission (3) kernfs 1 56d 56d 0/27 auto-obsoleted due to no activity on 2024/06/15 22:09

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

write to 0xffff888104f9a7c0 of 8 bytes by task 18309 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1567 [inline]
 set_inode_attr fs/kernfs/inode.c:163 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:177 [inline]
 kernfs_iop_permission+0x14c/0x220 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:462 [inline]
 inode_permission+0x184/0x300 fs/namei.c:529
 may_lookup fs/namei.c:1724 [inline]
 link_path_walk+0x19e/0x7e0 fs/namei.c:2271
 path_openat+0x1a0/0x1d70 fs/namei.c:3775
 do_filp_open+0xf6/0x200 fs/namei.c:3809
 do_sys_openat2+0xab/0x110 fs/open.c:1440
 do_sys_open fs/open.c:1455 [inline]
 __do_sys_open fs/open.c:1463 [inline]
 __se_sys_open fs/open.c:1459 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1459
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

write to 0xffff888104f9a7c0 of 8 bytes by task 18312 on cpu 0:
 inode_set_mtime_to_ts include/linux/fs.h:1567 [inline]
 set_inode_attr fs/kernfs/inode.c:163 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:177 [inline]
 kernfs_iop_permission+0x14c/0x220 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:462 [inline]
 inode_permission+0x184/0x300 fs/namei.c:529
 may_lookup fs/namei.c:1724 [inline]
 link_path_walk+0x19e/0x7e0 fs/namei.c:2271
 path_openat+0x1a0/0x1d70 fs/namei.c:3775
 do_filp_open+0xf6/0x200 fs/namei.c:3809
 do_sys_openat2+0xab/0x110 fs/open.c:1440
 do_sys_open fs/open.c:1455 [inline]
 __do_sys_open fs/open.c:1463 [inline]
 __se_sys_open fs/open.c:1459 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1459
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000002b27f529 -> 0x0000000031b64f77

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18312 Comm: syz-executor.3 Not tainted 6.7.0-rc5-syzkaller-00047-g5bd7ef53ffe5 #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/12/14 07:17 upstream 5bd7ef53ffe5 3222d10c .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.