syzbot


KCSAN: data-race in integrity_inode_get / vfs_write

Status: auto-closed as invalid on 2021/02/11 05:24
Subsystems: integrity lsm
[Documentation on labels]
First crash: 1541d, last: 1541d

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

read-write to 0xffff88810d5386cc of 4 bytes by task 10815 on cpu 1:
 integrity_inode_get+0x194/0x200 security/integrity/iint.c:124
 process_measurement+0x206/0x1050 security/integrity/ima/ima_main.c:237
 ima_file_check+0x72/0xa0 security/integrity/ima/ima_main.c:498
 do_open fs/namei.c:3256 [inline]
 path_openat+0x1887/0x20a0 fs/namei.c:3371
 do_filp_open+0xbd/0x1d0 fs/namei.c:3398
 do_sys_openat2+0xa3/0x240 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_open fs/open.c:1196 [inline]
 __se_sys_open fs/open.c:1192 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1192
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810d5386cc of 4 bytes by task 10818 on cpu 0:
 iocb_flags include/linux/fs.h:3246 [inline]
 init_sync_kiocb include/linux/fs.h:2066 [inline]
 new_sync_write fs/read_write.c:514 [inline]
 vfs_write+0x3a3/0x7c0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10818 Comm: syz-executor.4 Not tainted 5.11.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
2021/01/07 05:23 upstream 71c061d24438 c104d4a3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.