[....] Starting enhanced syslogd: rsyslogd[ 11.939269] audit: type=1400 audit(1515561783.429:5): avc: denied { syslog } for pid=3341 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 16.439279] audit: type=1400 audit(1515561787.930:6): avc: denied { map } for pid=3480 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.32' (ECDSA) to the list of known hosts. [ 22.705727] audit: type=1400 audit(1515561794.196:7): avc: denied { map } for pid=3495 comm="syzkaller357056" path="/root/syzkaller357056623" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program [ 22.890240] audit: type=1400 audit(1515561794.381:8): avc: denied { map } for pid=3496 comm="syzkaller357056" path="/dev/ashmem" dev="devtmpfs" ino=1166 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 [ 22.890635] [ 22.890637] ====================================================== [ 22.890639] WARNING: possible circular locking dependency detected [ 22.890643] 4.15.0-rc7+ #165 Not tainted [ 22.890644] ------------------------------------------------------ [ 22.890647] syzkaller357056/3496 is trying to acquire lock: [ 22.890649] (&sb->s_type->i_mutex_key#11){++++}, at: [<00000000be3ef2f3>] shmem_file_llseek+0xef/0x240 [ 22.890668] [ 22.890668] but task is already holding lock: [ 22.890669] (ashmem_mutex){+.+.}, at: [<0000000052bb7af2>] ashmem_llseek+0x56/0x1f0 [ 22.890687] [ 22.890687] which lock already depends on the new lock. [ 22.890687] [ 22.890689] [ 22.890689] the existing dependency chain (in reverse order) is: [ 22.890690] [ 22.890690] -> #2 (ashmem_mutex){+.+.}: [ 22.890702] __mutex_lock+0x16f/0x1a80 [ 22.890707] mutex_lock_nested+0x16/0x20 [ 22.890711] ashmem_mmap+0x53/0x410 [ 22.890719] mmap_region+0xa99/0x15a0 [ 22.890724] do_mmap+0x6c0/0xe00 [ 22.890729] vm_mmap_pgoff+0x1de/0x280 [ 22.890734] SyS_mmap_pgoff+0x462/0x5f0 [ 22.890741] do_fast_syscall_32+0x3ee/0xf9d [ 22.890746] entry_SYSENTER_compat+0x54/0x63 [ 22.890747] [ 22.890747] -> #1 (&mm->mmap_sem){++++}: [ 22.890756] __might_fault+0x13a/0x1d0 [ 22.890762] _copy_to_user+0x2c/0xc0 [ 22.890769] filldir+0x1a7/0x320 [ 22.890774] dcache_readdir+0x12d/0x5e0 [ 22.890779] iterate_dir+0x1ca/0x530 [ 22.890783] SyS_getdents+0x225/0x450 [ 22.890789] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.890790] [ 22.890790] -> #0 (&sb->s_type->i_mutex_key#11){++++}: [ 22.890803] lock_acquire+0x1d5/0x580 [ 22.890807] down_write+0x87/0x120 [ 22.890812] shmem_file_llseek+0xef/0x240 [ 22.890817] vfs_llseek+0xa2/0xd0 [ 22.890821] ashmem_llseek+0xe7/0x1f0 [ 22.890826] compat_SyS_lseek+0xeb/0x170 [ 22.890831] do_fast_syscall_32+0x3ee/0xf9d [ 22.890836] entry_SYSENTER_compat+0x54/0x63 [ 22.890837] [ 22.890837] other info that might help us debug this: [ 22.890837] [ 22.890838] Chain exists of: [ 22.890838] &sb->s_type->i_mutex_key#11 --> &mm->mmap_sem --> ashmem_mutex [ 22.890838] [ 22.890848] Possible unsafe locking scenario: [ 22.890848] [ 22.890849] CPU0 CPU1 [ 22.890850] ---- ---- [ 22.890851] lock(ashmem_mutex); [ 22.890855] lock(&mm->mmap_sem); [ 22.890858] lock(ashmem_mutex); [ 22.890861] lock(&sb->s_type->i_mutex_key#11); [ 22.890866] [ 22.890866] *** DEADLOCK *** [ 22.890866] [ 22.890869] 1 lock held by syzkaller357056/3496: [ 22.890871] #0: (ashmem_mutex){+.+.}, at: [<0000000052bb7af2>] ashmem_llseek+0x56/0x1f0 [ 22.890881] [ 22.890881] stack backtrace: [ 22.890887] CPU: 0 PID: 3496 Comm: syzkaller357056 N