syzbot


KCSAN: data-race in integrity_iint_find / integrity_inode_get

Status: closed as invalid on 2019/11/19 13:24
Subsystems: integrity lsm
[Documentation on labels]
First crash: 1636d, last: 1636d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get (2) integrity lsm 4 1512d 1589d 0/26 auto-closed as invalid on 2020/05/13 04:12
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get (4) integrity lsm 1 1107d 1107d 0/26 auto-closed as invalid on 2021/05/18 23:33
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get (3) integrity lsm 1 1333d 1333d 0/26 auto-closed as invalid on 2020/10/04 06:48

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

write to 0xffff888125fdba54 of 4 bytes by task 5968 on cpu 0:
 integrity_inode_get+0x121/0x1a0 security/integrity/iint.c:124
 process_measurement+0x236/0xff0 security/integrity/ima/ima_main.c:233
 ima_file_check+0x7e/0xb0 security/integrity/ima/ima_main.c:438
 do_last fs/namei.c:3412 [inline]
 path_openat+0xfb1/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888125fdba54 of 4 bytes by task 5966 on cpu 1:
 integrity_iint_find+0x26/0x100 security/integrity/iint.c:61
 ima_file_free+0xc1/0x290 security/integrity/ima/ima_main.c:185
 __fput+0x163/0x520 fs/file_table.c:274
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5966 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #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
2019/11/02 00:45 https://github.com/google/ktsan.git kcsan 05f2236801fe 997ccc67 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.