syzbot


KCSAN: data-race in integrity_iint_find / integrity_inode_get (3)

Status: auto-closed as invalid on 2020/10/04 06:48
Subsystems: integrity lsm
[Documentation on labels]
First crash: 1612d, last: 1612d
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 1791d 1868d 0/28 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 1386d 1386d 0/28 auto-closed as invalid on 2021/05/18 23:33
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get integrity lsm 1 1914d 1914d 0/28 closed as invalid on 2019/11/19 13:24

Sample crash report:
overlayfs: './file0' not a directory
==================================================================
BUG: KCSAN: data-race in integrity_iint_find / integrity_inode_get

write to 0xffff8880713f164c of 4 bytes by task 24499 on cpu 1:
 integrity_inode_get+0x19c/0x210 security/integrity/iint.c:124
 process_measurement+0x215/0x10d0 security/integrity/ima/ima_main.c:231
 ima_file_check+0x75/0xa0 security/integrity/ima/ima_main.c:492
 do_open fs/namei.c:3253 [inline]
 path_openat+0x1887/0x20a0 fs/namei.c:3368
 do_filp_open+0xbd/0x1d0 fs/namei.c:3395
 do_sys_openat2+0x33b/0x500 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880713f164c of 4 bytes by task 24493 on cpu 0:
 integrity_iint_find+0x15/0xd0 security/integrity/iint.c:61
 ima_file_free+0x6e/0x230 security/integrity/ima/ima_main.c:183
 __fput+0x1e4/0x4d0 fs/file_table.c:275
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:141
 get_signal+0x11cf/0x1650 kernel/signal.c:2561
 arch_do_signal+0x25/0x270 arch/x86/kernel/signal.c:811
 exit_to_user_mode_loop kernel/entry/common.c:136 [inline]
 exit_to_user_mode_prepare+0x124/0x210 kernel/entry/common.c:167
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:242
 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: 0 PID: 24493 Comm: syz-executor.5 Not tainted 5.9.0-rc2-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/08/30 06:45 upstream 1127b219ce94 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.