syzbot


KCSAN: data-race in ext4_setattr / ima_calc_file_hash

Status: auto-closed as invalid on 2020/10/05 14:48
Subsystems: ext4
[Documentation on labels]
First crash: 1334d, last: 1334d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_setattr / ima_calc_file_hash

write to 0xffff8880b21f3c08 of 8 bytes by task 21018 on cpu 1:
 i_size_write include/linux/fs.h:876 [inline]
 ext4_setattr+0xd63/0xec0 fs/ext4/inode.c:5386
 notify_change+0x7d7/0xa80 fs/attr.c:336
 do_truncate+0xe0/0x120 fs/open.c:64
 handle_truncate fs/namei.c:2909 [inline]
 do_open fs/namei.c:3255 [inline]
 path_openat+0x1a31/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_creat fs/open.c:1258 [inline]
 __se_sys_creat fs/open.c:1252 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1252
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b21f3c08 of 8 bytes by task 21022 on cpu 0:
 i_size_read include/linux/fs.h:854 [inline]
 ima_calc_file_hash+0x1b9/0x13e0 security/integrity/ima/ima_crypto.c:572
 ima_collect_measurement+0x168/0x310 security/integrity/ima/ima_api.c:250
 process_measurement+0xa65/0x10d0 security/integrity/ima/ima_main.c:324
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21022 Comm: syz-executor.5 Not tainted 5.9.0-rc3-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/31 14:48 upstream f75aef392f86 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.