syzbot


KCSAN: data-race in __vfs_setxattr_noperm / integrity_iint_find

Status: closed as invalid on 2020/06/18 14:13
Subsystems: fs
[Documentation on labels]
First crash: 1411d, last: 1411d
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 (2) fs 1 1189d 1189d 0/26 auto-closed as invalid on 2021/02/19 07:34

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

write to 0xffff888048c205b4 of 4 bytes by task 18775 on cpu 0:
 __vfs_setxattr_noperm+0x90/0x2b0 fs/xattr.c:179
 vfs_setxattr+0xcb/0xe0 fs/xattr.c:224
 setxattr+0x22a/0x310 fs/xattr.c:451
 path_setxattr+0x132/0x160 fs/xattr.c:470
 __do_sys_setxattr fs/xattr.c:485 [inline]
 __se_sys_setxattr fs/xattr.c:481 [inline]
 __x64_sys_setxattr+0x72/0x90 fs/xattr.c:481
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888048c205b4 of 4 bytes by task 18769 on cpu 1:
 integrity_iint_find+0x22/0xf0 security/integrity/iint.c:61
 ima_file_free+0xc0/0x280 security/integrity/ima/ima_main.c:183
 __fput+0x182/0x500 fs/file_table.c:274
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xba/0x120 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:165
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 18769 Comm: syz-executor.1 Not tainted 5.7.0-rc1-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
2020/06/07 01:44 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 e6b89e4e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.