[....] Starting enhanced syslogd: rsyslogd[ 12.635844] audit: type=1400 audit(1516564714.014:5): avc: denied { syslog } for pid=3503 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: [ 17.050925] audit: type=1400 audit(1516564718.429:6): avc: denied { map } for pid=3640 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.15.235' (ECDSA) to the list of known hosts. executing program [ 23.358978] audit: type=1400 audit(1516564724.737:7): avc: denied { map } for pid=3654 comm="syzkaller047804" path="/root/syzkaller047804448" 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 [ 23.362177] [ 23.384891] audit: type=1400 audit(1516564724.737:8): avc: denied { map } for pid=3654 comm="syzkaller047804" path="/dev/ashmem" dev="devtmpfs" ino=1099 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 [ 23.386464] ====================================================== [ 23.386466] WARNING: possible circular locking dependency detected [ 23.386471] 4.15.0-rc8-next-20180119+ #102 Not tainted [ 23.386473] ------------------------------------------------------ [ 23.386476] syzkaller047804/3654 is trying to acquire lock: [ 23.386480] (&sb->s_type->i_mutex_key#11){++++}, at: [<00000000e16e13de>] shmem_file_llseek+0xef/0x240 [ 23.450867] [ 23.450867] but task is already holding lock: [ 23.456808] (ashmem_mutex){+.+.}, at: [<00000000bd1ee9c4>] ashmem_llseek+0x56/0x1f0 [ 23.464666] [ 23.464666] which lock already depends on the new lock. [ 23.464666] [ 23.472957] [ 23.472957] the existing dependency chain (in reverse order) is: [ 23.480551] [ 23.480551] -> #2 (ashmem_mutex){+.+.}: [ 23.485982] __mutex_lock+0x16f/0x1a80 [ 23.490361] mutex_lock_nested+0x16/0x20 [ 23.494913] ashmem_mmap+0x53/0x410 [ 23.499033] mmap_region+0xa99/0x15a0 [ 23.503327] do_mmap+0x73c/0xf70 [ 23.507182] vm_mmap_pgoff+0x1de/0x280 [ 23.511558] SyS_mmap_pgoff+0x462/0x5f0 [ 23.516020] SyS_mmap+0x16/0x20 [ 23.519792] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.525034] [ 23.525034] -> #1 (&mm->mmap_sem){++++}: [ 23.530547] __might_fault+0x13a/0x1d0 [ 23.534929] _copy_to_user+0x2c/0xc0 [ 23.539136] filldir+0x1a7/0x320 [ 23.542993] dcache_readdir+0x12d/0x5e0 [ 23.547460] iterate_dir+0x1ca/0x530 [ 23.551661] SyS_getdents+0x225/0x450 [ 23.555953] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.561194] [ 23.561194] -> #0 (&sb->s_type->i_mutex_key#11){++++}: [ 23.568272] lock_acquire+0x1d5/0x580 [ 23.572562] down_write+0x87/0x120 [ 23.576593] shmem_file_llseek+0xef/0x240 [ 23.581230] vfs_llseek+0xa2/0xd0 [ 23.585175] ashmem_llseek+0xe7/0x1f0 [ 23.589463] SyS_lseek+0xeb/0x170 [ 23.593406] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.598645] [ 23.598645] other info that might help us debug this: [ 23.598645] [ 23.606764] Chain exists of: [ 23.606764] &sb->s_type->i_mutex_key#11 --> &mm->mmap_sem --> ashmem_mutex [ 23.606764] [ 23.618266] Possible unsafe locking scenario: [ 23.618266] [ 23.624291] CPU0 CPU1 [ 23.628924] ---- ---- [ 23.633558] lock(ashmem_mutex); [ 23.636981] lock(&mm->mmap_sem); [ 23.643006] lock(ashmem_mutex); [ 23.648951] lock(&sb->s_type->i_mutex_key#11); [ 23.653674] [ 23.653674] *** DEADLOCK *** [ 23.653674] [ 23.659699] 1 lock held by syzkaller047804/3654: [ 23.664419] #0: (ashmem_mutex){+.+.}, at: [<00000000bd1ee9c4>] ashmem_llseek+0x56/0x1f0 [ 23.672709] [ 23.672709] stack backtrace: [ 23.677176] CPU: 0 PID: 3654 Comm: syzkaller047804 Not tainted 4.15.0-rc8-next-20180119+ #102 [ 23.685804] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.695127] Call Trace: [ 23.697688] dump_stack+0x194/0x257 [ 23.701284] ? arch_local_irq_restore+0x53/0x53 [ 23.705928] print_circular_bug.isra.38+0x2cd/0x2dc [ 23.710913] ? save_trace+0xe0/0x2b0 [ 23.714598] __lock_acquire+0x30a8/0x3e00 [ 23.718712] ? lock_downgrade+0x980/0x980 [ 23.722830] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 23.727643] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.732804] ? ashmem_llseek+0x56/0x1f0 [ 23.736748] ? lock_release+0xa40/0xa40 [ 23.740689] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.746539] ? vma_set_page_prot+0x16b/0x230 [ 23.750915] ? rcu_note_context_switch+0x710/0x710 [ 23.755810] ? vma_wants_writenotify+0x3b0/0x3b0 [ 23.760533] ? __might_sleep+0x95/0x190 [ 23.764475] ? ashmem_llseek+0x56/0x1f0 [ 23.768415] ? __mutex_lock+0x16f/0x1a80 [ 23.772444] ? ashmem_llseek+0x56/0x1f0 [ 23.776387] ? ashmem_llseek+0x56/0x1f0 [ 23.780333] ? mutex_lock_io_nested+0x1900/0x1900 [ 23.785146] ? selinux_mmap_addr+0x1f/0xf0 [ 23.789350] ? userfaultfd_unmap_complete+0x327/0x510 [ 23.794512] ? get_unmapped_area+0x265/0x300 [ 23.798895] lock_acquire+0x1d5/0x580 [ 23.802663] ? lock_acquire+0x1d5/0x580 [ 23.806609] ? shmem_file_llseek+0xef/0x240 [ 23.810898] ? lock_release+0xa40/0xa40 [ 23.814839] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.820692] ? rcu_note_context_switch+0x710/0x710 [ 23.825590] ? __fget_light+0x297/0x380 [ 23.829534] ? __might_sleep+0x95/0x190 [ 23.833479] down_write+0x87/0x120 [ 23.836986] ? shmem_file_llseek+0xef/0x240 [ 23.841286] ? down_read+0x150/0x150 [ 23.844989] ? selinux_capable+0x40/0x40 [ 23.849035] shmem_file_llseek+0xef/0x240 [ 23.853152] ? shmem_free_swap+0x80/0x80 [ 23.857181] vfs_llseek+0xa2/0xd0 [ 23.860608] ashmem_llseek+0xe7/0x1f0 [ 23.864375] ? ashmem_read_iter+0x230/0x230 [ 23.868662] SyS_lseek+0xeb/0x170 [ 23.872086] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.876807] RIP: 0033:0x43fd19 [ 23.879965] RSP: 002b:00007ffffc939e88 EFLAGS: 00000217 ORIG_RAX: 0000000000000008 [ 23.887641] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd19 [ 23.894882] RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000003 [ 23.902121] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 23.909358] R10: 00000