syzbot


KCSAN: data-race in fsverity_file_open / integrity_inode_get

Status: auto-closed as invalid on 2020/01/22 15:06
Subsystems: integrity lsm
[Documentation on labels]
First crash: 1626d, last: 1626d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsverity_file_open / integrity_inode_get (2) integrity lsm 1 1229d 1229d 0/26 auto-closed as invalid on 2021/01/18 09:17

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

write to 0xffff8880b5f8f634 of 4 bytes by task 13060 on cpu 0:
 integrity_inode_get+0x121/0x1a0 security/integrity/iint.c:124
 process_measurement+0x24d/0x1130 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+0xfaf/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 0xffff8880b5f8f634 of 4 bytes by task 13065 on cpu 1:
 fsverity_file_open+0x3c/0x230 fs/verity/open.c:296
 ext4_file_open+0x142/0x440 fs/ext4/file.c:458
 do_dentry_open+0x301/0x970 fs/open.c:797
 vfs_open+0x62/0x80 fs/open.c:914
 do_last fs/namei.c:3408 [inline]
 path_openat+0xf73/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 ksys_open include/linux/syscalls.h:1385 [inline]
 __do_sys_creat fs/open.c:1155 [inline]
 __se_sys_creat fs/open.c:1153 [inline]
 __x64_sys_creat+0x45/0x60 fs/open.c:1153
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13065 Comm: syz-executor.2 Not tainted 5.4.0-rc7+ #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/13 14:59 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.