syzbot


KCSAN: data-race in __vfs_setxattr_noperm / integrity_iint_find (2)

Status: auto-closed as invalid on 2021/02/19 07:34
Subsystems: fs
[Documentation on labels]
First crash: 1209d, last: 1209d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __vfs_setxattr_noperm / integrity_iint_find fs 1 1432d 1432d 0/26 closed as invalid on 2020/06/18 14:13

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

read-write to 0xffff88810d9b876c of 4 bytes by task 25905 on cpu 0:
 __vfs_setxattr_noperm+0x80/0x370 fs/xattr.c:206
 __vfs_setxattr_locked+0x194/0x1b0 fs/xattr.c:266
 vfs_setxattr+0x131/0x280 fs/xattr.c:291
 setxattr+0x125/0x240 fs/xattr.c:553
 path_setxattr+0xcf/0x170 fs/xattr.c:572
 __do_sys_setxattr fs/xattr.c:587 [inline]
 __se_sys_setxattr fs/xattr.c:583 [inline]
 __x64_sys_setxattr+0x69/0x80 fs/xattr.c:583
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810d9b876c of 4 bytes by task 25894 on cpu 1:
 integrity_iint_find+0x15/0xd0 security/integrity/iint.c:61
 ima_file_free+0x6e/0x230 security/integrity/ima/ima_main.c:189
 __fput+0x1e9/0x4e0 fs/file_table.c:274
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x16b/0x1a0 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25894 Comm: syz-executor.4 Not tainted 5.11.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/15 07:32 upstream 146620506274 65a7a854 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.