syzbot


KCSAN: data-race in tomoyo_update_stat / tomoyo_update_stat

Status: closed as invalid on 2020/01/09 14:13
Subsystems: tomoyo
[Documentation on labels]
First crash: 1613d, last: 1613d

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

write to 0xffffffff86142100 of 8 bytes by task 16191 on cpu 1:
 tomoyo_update_stat+0x5c/0x70 security/tomoyo/common.c:2341
 tomoyo_assign_domain+0x566/0x5b0 security/tomoyo/domain.c:598
 tomoyo_find_next_domain+0x3f8/0x11f6 security/tomoyo/domain.c:844
 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:107 [inline]
 tomoyo_bprm_check_security+0xbc/0x100 security/tomoyo/tomoyo.c:97
 security_bprm_check+0x5d/0xa0 security/security.c:784
 search_binary_handler+0x56/0x420 fs/exec.c:1646
 exec_binprm fs/exec.c:1702 [inline]
 __do_execve_file.isra.0+0xb76/0x11d0 fs/exec.c:1822
 do_execveat_common fs/exec.c:1868 [inline]
 do_execve fs/exec.c:1885 [inline]
 __do_sys_execve fs/exec.c:1961 [inline]
 __se_sys_execve fs/exec.c:1956 [inline]
 __x64_sys_execve+0x62/0x80 fs/exec.c:1956
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffffffff86142100 of 8 bytes by task 16115 on cpu 0:
 tomoyo_update_stat+0x5c/0x70 security/tomoyo/common.c:2341
 tomoyo_assign_domain+0x566/0x5b0 security/tomoyo/domain.c:598
 tomoyo_find_next_domain+0x3f8/0x11f6 security/tomoyo/domain.c:844
 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:107 [inline]
 tomoyo_bprm_check_security+0xbc/0x100 security/tomoyo/tomoyo.c:97
 security_bprm_check+0x5d/0xa0 security/security.c:784
 search_binary_handler+0x56/0x420 fs/exec.c:1646
 exec_binprm fs/exec.c:1702 [inline]
 __do_execve_file.isra.0+0xb76/0x11d0 fs/exec.c:1822
 do_execveat_common fs/exec.c:1868 [inline]
 do_execve fs/exec.c:1885 [inline]
 __do_sys_execve fs/exec.c:1961 [inline]
 __se_sys_execve fs/exec.c:1956 [inline]
 __x64_sys_execve+0x62/0x80 fs/exec.c:1956
 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: 0 PID: 16115 Comm: syz-executor.4 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/24 03:21 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.