syzbot


BUG: KCSAN: data-race in tomoyo_supervisor and tomoyo_supervisor

Status: closed as invalid on 2019/10/04 18:08
Subsystems: tomoyo
[Documentation on labels]
First crash: 1637d, last: 1637d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in tomoyo_update_stat security/tomoyo/common.c:2340 [inline] and tomoyo_supervisor+0xcd3/0xd20
BUG: KCSAN: data-race in tomoyo_add_entry security/tomoyo/common.c:2042 [inline] and tomoyo_supervisor+0xcd3/0xd20
BUG: KCSAN: data-race in tomoyo_supervisor+0xcbe/0xd20 security/tomoyo/common.c:2101 and tomoyo_supervisor+0xcd3/0xd20

write to 0xffffffff860bff40 of 4 bytes by task 7312 on cpu 1:
 tomoyo_update_stat security/tomoyo/common.c:2340 [inline]
 tomoyo_add_entry security/tomoyo/common.c:2042 [inline]
 tomoyo_supervisor+0xcd3/0xd20 security/tomoyo/common.c:2101
 tomoyo_audit_path_number_log security/tomoyo/file.c:235 [inline]
 tomoyo_path_number_perm+0x323/0x3c0 security/tomoyo/file.c:734
 tomoyo_path_mkdir+0x6e/0xa0 security/tomoyo/tomoyo.c:173
 security_path_mkdir+0xb8/0xf0 security/security.c:989
 do_mkdirat+0xef/0x1f0 fs/namei.c:3836
 __do_sys_mkdir fs/namei.c:3854 [inline]
 __se_sys_mkdir fs/namei.c:3852 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:3852
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff860bff40 of 4 bytes by task 7906 on cpu 0:
 tomoyo_update_stat security/tomoyo/common.c:2340 [inline]
 tomoyo_add_entry security/tomoyo/common.c:2042 [inline]
 tomoyo_supervisor+0xcbe/0xd20 security/tomoyo/common.c:2101
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission security/tomoyo/file.c:587 [inline]
 tomoyo_path_permission+0x121/0x160 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2c6/0x390 security/tomoyo/file.c:838
 tomoyo_path_symlink+0x69/0xa0 security/tomoyo/tomoyo.c:206
 security_path_symlink+0xab/0xe0 security/security.c:1013
 do_symlinkat+0xcd/0x1e0 fs/namei.c:4152
 __do_sys_symlink fs/namei.c:4173 [inline]
 __se_sys_symlink fs/namei.c:4171 [inline]
 __x64_sys_symlink+0x3f/0x50 fs/namei.c:4171
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7906 Comm: syz-executor.5 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/04 12:08 https://github.com/google/ktsan.git kcsan 6769d3ca0f23 b2f369e5 .config console log report ci2-upstream-kcsan-gce
2019/10/04 12:08 https://github.com/google/ktsan.git kcsan 6769d3ca0f23 b2f369e5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.