syzbot


KCSAN: data-race in apparmor_file_open / vfs_get_tree

Status: auto-closed as invalid on 2020/04/17 12:14
Subsystems: apparmor
[Documentation on labels]
First crash: 1525d, last: 1510d

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

read to 0xffff8881211a7850 of 8 bytes by task 4494 on cpu 0:
 path_mediated_fs security/apparmor/include/lib.h:89 [inline]
 apparmor_file_open+0x57/0x780 security/apparmor/lsm.c:408
 security_file_open+0x69/0x210 security/security.c:1497
 do_dentry_open+0x211/0x970 fs/open.c:784
 vfs_open+0x62/0x80 fs/open.c:914
 do_last fs/namei.c:3420 [inline]
 path_openat+0xf9f/0x3580 fs/namei.c:3537
 do_filp_open+0x11e/0x1b0 fs/namei.c:3567
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_openat fs/open.c:1124 [inline]
 __se_sys_openat fs/open.c:1118 [inline]
 __x64_sys_openat+0x62/0x80 fs/open.c:1118
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881211a7850 of 8 bytes by task 4493 on cpu 1:
 vfs_get_tree+0xcf/0x1a0 fs/super.c:1568
 do_new_mount fs/namespace.c:2822 [inline]
 do_mount+0x1004/0x14f0 fs/namespace.c:3142
 ksys_mount+0xe8/0x160 fs/namespace.c:3351
 __do_sys_mount fs/namespace.c:3365 [inline]
 __se_sys_mount fs/namespace.c:3362 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3362
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4493 Comm: syz-executor.1 Not tainted 5.5.0-rc1-syzkaller #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
2020/02/07 12:13 https://github.com/google/ktsan.git kcsan 245a43005292 06150bf1 .config console log report ci2-upstream-kcsan-gce
2020/01/24 07:16 https://github.com/google/ktsan.git kcsan 245a43005292 2e95ab33 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.