syzbot


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

Status: auto-closed as invalid on 2021/05/18 23:33
Subsystems: lsm integrity
[Documentation on labels]
First crash: 1079d, last: 1079d
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 1485d 1562d 0/26 auto-closed as invalid on 2020/05/13 04:12
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get integrity lsm 1 1608d 1608d 0/26 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in integrity_iint_find / integrity_inode_get (3) integrity lsm 1 1306d 1306d 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 0xffff88809ce0eacc of 4 bytes by task 4864 on cpu 1:
 integrity_inode_get+0x1bc/0x240 security/integrity/iint.c:132
 process_measurement+0x242/0x10f0 security/integrity/ima/ima_main.c:237
 ima_file_check+0x75/0xa0 security/integrity/ima/ima_main.c:499
 do_open fs/namei.c:3369 [inline]
 path_openat+0x19c5/0x21b0 fs/namei.c:3500
 do_filp_open+0xd9/0x1f0 fs/namei.c:3527
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88809ce0eacc of 4 bytes by task 4849 on cpu 0:
 integrity_iint_find+0x15/0xd0 security/integrity/iint.c:61
 ima_file_free+0x6e/0x230 security/integrity/ima/ima_main.c:189
 __fput+0x201/0x4f0 fs/file_table.c:274
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 get_signal+0x14d2/0x1510 kernel/signal.c:2554
 arch_do_signal_or_restart+0x2a/0x270 arch/x86/kernel/signal.c:789
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x11a/0x1b0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4849 Comm: syz-executor.2 Tainted: G        W         5.12.0-rc7-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/04/13 23:25 upstream eebe426d32e1 a184b83e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in integrity_iint_find / integrity_inode_get
* Struck through repros no longer work on HEAD.