syzbot


KCSAN: data-race in mb_cache_entry_create / mb_cache_entry_create

Status: auto-obsoleted due to no activity on 2023/06/21 22:17
Subsystems: ext4
[Documentation on labels]
First crash: 819d, last: 819d

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

read-write to 0xffff888103aa8cf0 of 8 bytes by task 8204 on cpu 0:
 mb_cache_entry_create+0x465/0x5a0 fs/mbcache.c:119
 ext4_xattr_block_cache_insert+0x7a/0x90 fs/ext4/xattr.c:3053
 ext4_xattr_block_set+0x1161/0x1c20 fs/ext4/xattr.c:2133
 ext4_xattr_set_handle+0xbca/0xc30 fs/ext4/xattr.c:2448
 ext4_xattr_set+0x15d/0x230 fs/ext4/xattr.c:2559
 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38
 __vfs_setxattr+0x2de/0x300 fs/xattr.c:201
 __vfs_setxattr_noperm+0xed/0x3e0 fs/xattr.c:235
 __vfs_setxattr_locked+0x1af/0x1d0 fs/xattr.c:296
 vfs_setxattr+0x140/0x280 fs/xattr.c:322
 do_setxattr fs/xattr.c:630 [inline]
 setxattr+0x1bc/0x230 fs/xattr.c:653
 path_setxattr+0xf5/0x1a0 fs/xattr.c:672
 __do_sys_setxattr fs/xattr.c:688 [inline]
 __se_sys_setxattr fs/xattr.c:684 [inline]
 __x64_sys_setxattr+0x6d/0x80 fs/xattr.c:684
 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 0xffff888103aa8cf0 of 8 bytes by task 8201 on cpu 1:
 mb_cache_entry_create+0x36/0x5a0 fs/mbcache.c:82
 ext4_xattr_block_cache_insert+0x7a/0x90 fs/ext4/xattr.c:3053
 ext4_xattr_block_set+0x1161/0x1c20 fs/ext4/xattr.c:2133
 ext4_xattr_set_handle+0xbca/0xc30 fs/ext4/xattr.c:2448
 ext4_xattr_set+0x15d/0x230 fs/ext4/xattr.c:2559
 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38
 __vfs_setxattr+0x2de/0x300 fs/xattr.c:201
 __vfs_setxattr_noperm+0xed/0x3e0 fs/xattr.c:235
 __vfs_setxattr_locked+0x1af/0x1d0 fs/xattr.c:296
 vfs_setxattr+0x140/0x280 fs/xattr.c:322
 do_setxattr fs/xattr.c:630 [inline]
 setxattr+0x1bc/0x230 fs/xattr.c:653
 path_setxattr+0xf5/0x1a0 fs/xattr.c:672
 __do_sys_setxattr fs/xattr.c:688 [inline]
 __se_sys_setxattr fs/xattr.c:684 [inline]
 __x64_sys_setxattr+0x6d/0x80 fs/xattr.c:684
 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8201 Comm: syz-executor.1 Tainted: G        W          6.4.0-rc2-syzkaller-00015-g1b66c114d161 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/17 22:10 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mb_cache_entry_create / mb_cache_entry_create
* Struck through repros no longer work on HEAD.