[ 10.777548] audit: type=1400 audit(1514136901.369:5): avc: denied { syslog } for pid=2984 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [....] Starting enhanced syslogd: rsyslogd[?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.082591] audit: type=1400 audit(1514136907.674:6): avc: denied { map } for pid=3126 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 'ci-upstream-kasan-gce-386-3,10.128.15.196' (ECDSA) to the list of known hosts. [ 23.529800] audit: type=1400 audit(1514136914.121:7): avc: denied { map } for pid=3140 comm="syzkaller122738" path="/root/syzkaller122738590" 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.555777] audit: type=1400 audit(1514136914.121:8): avc: denied { sys_admin } for pid=3140 comm="syzkaller122738" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 executing program [ 23.643418] audit: type=1400 audit(1514136914.235:9): avc: denied { sys_chroot } for pid=3141 comm="syzkaller122738" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 23.667962] audit: type=1400 audit(1514136914.258:10): avc: denied { dac_override } for pid=3141 comm="syzkaller122738" capability=1 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 23.692750] [ 23.694372] ====================================================== [ 23.700654] WARNING: possible circular locking dependency detected [ 23.706939] 4.15.0-rc5+ #147 Not tainted [ 23.710963] ------------------------------------------------------ [ 23.717244] syzkaller122738/3145 is trying to acquire lock: [ 23.722918] (&p->lock){+.+.}, at: [<0000000029741770>] seq_read+0xd5/0x13d0 [ 23.730079] [ 23.730079] but task is already holding lock: [ 23.736013] (&pipe->mutex/1){+.+.}, at: [<000000002917fbbb>] pipe_lock+0x56/0x70 [ 23.743605] [ 23.743605] which lock already depends on the new lock. [ 23.743605] [ 23.751882] [ 23.751882] the existing dependency chain (in reverse order) is: [ 23.759468] [ 23.759468] -> #2 (&pipe->mutex/1){+.+.}: [ 23.765063] __mutex_lock+0x16f/0x1a80 [ 23.769433] mutex_lock_nested+0x16/0x20 [ 23.773977] fifo_open+0x15c/0xa30 [ 23.778002] do_dentry_open+0x667/0xd40 [ 23.782460] vfs_open+0x107/0x220 [ 23.786399] path_openat+0x1151/0x3530 [ 23.790772] do_filp_open+0x25b/0x3b0 [ 23.795057] do_open_execat+0x1b9/0x5c0 [ 23.799515] do_execveat_common.isra.30+0x90c/0x23c0 [ 23.805100] compat_SyS_execve+0x3f/0x50 [ 23.809665] do_fast_syscall_32+0x3ee/0xf9d [ 23.814475] entry_SYSENTER_compat+0x54/0x63 [ 23.819363] [ 23.819363] -> #1 (&sig->cred_guard_mutex){+.+.}: [ 23.825653] __mutex_lock+0x16f/0x1a80 [ 23.830025] mutex_lock_killable_nested+0x16/0x20 [ 23.835355] lock_trace+0x44/0xc0 [ 23.839296] proc_pid_syscall+0xa3/0x550 [ 23.843839] proc_single_show+0xf8/0x170 [ 23.848384] seq_read+0x385/0x13d0 [ 23.852406] do_iter_read+0x3d2/0x5a0 [ 23.856698] compat_readv+0x1bf/0x270 [ 23.860981] do_compat_readv+0x115/0x220 [ 23.865524] compat_SyS_readv+0x26/0x30 [ 23.869985] do_fast_syscall_32+0x3ee/0xf9d [ 23.874791] entry_SYSENTER_compat+0x54/0x63 [ 23.879683] [ 23.879683] -> #0 (&p->lock){+.+.}: [ 23.884756] lock_acquire+0x1d5/0x580 [ 23.889041] __mutex_lock+0x16f/0x1a80 [ 23.893411] mutex_lock_nested+0x16/0x20 [ 23.897959] seq_read+0xd5/0x13d0 [ 23.901895] proc_reg_read+0xef/0x170 [ 23.906180] do_iter_read+0x3d2/0x5a0 [ 23.910465] vfs_readv+0x121/0x1c0 [ 23.914489] default_file_splice_read+0x508/0xae0 [ 23.919814] do_splice_to+0x10a/0x160 [ 23.924098] SyS_splice+0x1187/0x1610 [ 23.928382] do_fast_syscall_32+0x3ee/0xf9d [ 23.933197] entry_SYSENTER_compat+0x54/0x63 [ 23.938086] [ 23.938086] other info that might help us debug this: [ 23.938086] [ 23.946189] Chain exists of: [ 23.946189] &p->lock --> &sig->cred_guard_mutex --> &pipe->mutex/1 [ 23.946189] [ 23.956994] Possible unsafe locking scenario: [ 23.956994] [ 23.963030] CPU0 CPU1 [ 23.967660] ---- ---- [ 23.972289] lock(&pipe->mutex/1); [ 23.975880] lock(&sig->cred_guard_mutex); [ 23.982683] lock(&pipe->mutex/1); [ 23.988790] lock(&p->lock); [ 23.991870] [ 23.991870] *** DEADLOCK *** [ 23.991870] [ 23.997891] 1 lock held by syzkaller122738/3145: [ 24.002606] #0: (&pipe->mutex/1){+.+.}, at: [<000000002917fbbb>] pipe_lock+0x56/0x70 [ 24.010636] [ 24.010636] stack backtrace: [ 24.015111] CPU: 1 PID: 3145 Comm: syzkaller122738 Not tainted 4.15.0-rc5+ #147 [ 24.022523] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.031843] Call Trace: [ 24.034397] dump_stack+0x194/0x257 [ 24.038509] ? arch_local_irq_restore+0x53/0x53 [ 24.043143] print_circular_bug.isra.37+0x2cd/0x2dc [ 24.048121] ? save_trace+0xe0/0x2b0 [ 24.051800] __lock_acquire+0x30a8/0x3e00 [ 24.055915] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.061067] ? lockdep_on+0x50/0x50 [ 24.064659] ? trace_hardirqs_off+0x10/0x10 [ 24.068945] ? print_irqtrace_events+0x270/0x270 [ 24.073664] ? __lock_acquire+0x664/0x3e00 [ 24.077862] ? __lock_acquire+0x664/0x3e00 [ 24.082060] ? print_irqtrace_events+0x270/0x270 [ 24.086789] ? __lock_acquire+0x664/0x3e00 [ 24.090987] ? print_irqtrace_events+0x270/0x270 [ 24.095706] ? check_noncircular+0x20/0x20 [ 24.099903] ? __lock_acquire+0x664/0x3e00 [ 24.104104] ? check_noncircular+0x20/0x20 [ 24.108310] ? __lock_acquire+0x664/0x3e00 [ 24.112508] lock_acquire+0x1d5/0x580 [ 24.116271] ? lock_acquire+0x1d5/0x580 [ 24.120210] ? seq_read+0xd5/0x13d0 [ 24.123801] ? lock_release+0xa40/0xa40 [ 24.127740] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.133588] ? rcu_note_context_switch+0x710/0x710 [ 24.138482] ? __might_sleep+0x95/0x190 [ 24.142420] ? seq_read+0xd5/0x13d0 [ 24.146009] __mutex_lock+0x16f/0x1a80 [ 24.149858] ? seq_read+0xd5/0x13d0 [ 24.153451] ? __is_insn_slot_addr+0x1fc/0x330 [ 24.158007] ? seq_read+0xd5/0x13d0 [ 24.161598] ? mutex_lock_io_nested+0x1900/0x1900 [ 24.166416] ? find_held_lock+0x35/0x1d0 [ 24.170459] ? check_noncircular+0x20/0x20 [ 24.174661] ? is_bpf_text_address+0x7b/0x120 [ 24.179118] ? check_noncircular+0x20/0x20 [ 24.183324] ? print_irqtrace_events+0x270/0x270 [ 24.188047] ? depot_save_stack+0x3b5/0x490 [ 24.192333] ? check_noncircular+0x20/0x20 [ 24.196529] ? find_held_lock+0x35/0x1d0 [ 24.200554] ? __lock_is_held+0xb6/0x140 [ 24.204580] ? check_noncircular+0x20/0x20 [ 24.208785] ? __lock_is_held+0xb6/0x140 [ 24.212815] ? rcu_read_lock_sched_held+0x108/0x120 [ 24.217797] ? __lock_is_held+0xb6/0x140 [ 24.221822] ? seq_lseek+0x3c0/0x3c0 [ 24.225498] mutex_lock_nested+0x16/0x20 [ 24.229521] ? mutex_lock_nested+0x16/0x20 [ 24.233720] seq_read+0xd5/0x13d0 [ 24.237138] ? fsnotify+0x7b3/0x1140 [ 24.240818] ? seq_lseek+0x3c0/0x3c0 [ 24.244494] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.249042] ? avc_policy_seqno+0x9/0x20 [ 24.253065] ? selinux_file_permission+0x82/0x460 [ 24.257874] ? seq_lseek+0x3c0/0x3c0 [ 24.261554] proc_reg_read+0xef/0x170 [ 24.265325] do_iter_read+0x3d2/0x5a0 [ 24.269090] ? dup_iter+0x260/0x260 [ 24.272684] vfs_readv+0x121/0x1c0 [ 24.276189] ? compat_rw_copy_check_uvector+0x2e0/0x2e0 [ 24.281517] ? lock_acquire+0x1d5/0x580 [ 24.285465] ? lock_acquire+0x1d5/0x580 [ 24.289402] ? pipe_lock+0x56/0x70 [ 24.292906] ? lock_release+0xa40/0xa40 [ 24.296845] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.302694] ? rcu_note_context_switch+0x710/0x710 [ 24.307602] ? __might_sleep+0x95/0x190 [ 24.311541] ? pipe_lock+0x56/0x70 [ 24.315047] default_file_splice_read+0x508/0xae0 [ 24.319853] ? default_file_splice_read+0x508/0xae0 [ 24.324832] ? __fget+0x333/0x570 [ 24.328254] ? do_splice_direct+0x3c0/0x3c0 [ 24.332542] ? __lock_is_held+0xb6/0x140 [ 24.336569] ? __lock_is_held+0xb6/0x140 [ 24.340600] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.346448] ? fsnotify+0x7b3/0x1140 [ 24.350129] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.354678] ? avc_policy_seqno+0x9/0x20 [ 24.358716] ? selinux_file_permission+0x82/0x460 [ 24.363523] ? security_file_permission+0x89/0x1e0 [ 24.368416] ? do_splice_direct+0x3c0/0x3c0 [ 24.372703] do_splice_to+0x10a/0x160 [ 24.376466] ? do_splice_to+0x10a/0x160 [ 24.380407] SyS_splice+0x1187/0x1610 [ 24.384173] ? compat_SyS_futex+0x288/0x380 [ 24.388460] ? compat_SyS_vmsplice+0x250/0x250 [ 24.393006] ? do_fast_syscall_32+0x156/0xf9d [ 24.397466] ? compat_SyS_vmsplice+0x250/0x250 [ 24.402013] do_fast_syscall_32+0x3ee/0xf9d [ 24.406302] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.410851] ? syscall_return_slowpath+0x2ad/0x550 [ 24.415745] ? prepare_exit_to_usermode+0x340/0x340 [ 24.420726] ? sysret32_from_system_call+0x5/0x3b [ 24.425534] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.430342] entry_SYSENTER_compat+0x54/0x63 [ 24.434717] RIP: 0023:0xf7f8bc79 [ 24.438045] RSP: 002b:00000000f7f4514c EFLAGS: 00000292 ORIG_RAX: 0000000000000139 [ 24.445718]