[....] Starting enhanced syslogd: rsyslogd[ 13.307588] audit: type=1400 audit(1565713564.057:4): avc: denied { syslog } for pid=1920 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.1.4' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 39.062507] [ 39.064152] ====================================================== [ 39.070549] [ INFO: possible circular locking dependency detected ] [ 39.076945] 4.4.174+ #17 Not tainted [ 39.080635] ------------------------------------------------------- [ 39.087168] syz-executor814/2081 is trying to acquire lock: [ 39.093228] (&pipe->mutex/1){+.+.+.}, at: [] pipe_lock+0x63/0x80 [ 39.101672] [ 39.101672] but task is already holding lock: [ 39.107634] (sb_writers#4){.+.+.+}, at: [] SyS_splice+0xf2d/0x13a0 [ 39.116524] [ 39.116524] which lock already depends on the new lock. [ 39.116524] [ 39.125000] [ 39.125000] the existing dependency chain (in reverse order) is: [ 39.132622] -> #5 (sb_writers#4){.+.+.+}: [ 39.137565] [] lock_acquire+0x15e/0x450 [ 39.143966] [] __sb_start_write+0x1af/0x310 [ 39.150580] [] ext4_lazyinit_thread+0x1e4/0x7b0 [ 39.157757] [] kthread+0x273/0x310 [ 39.163674] [] ret_from_fork+0x55/0x80 [ 39.170048] -> #4 (&eli->li_list_mtx){+.+...}: [ 39.175283] [] lock_acquire+0x15e/0x450 [ 39.181849] [] mutex_lock_nested+0xc1/0xb80 [ 39.188527] [] ext4_register_li_request+0x2fd/0x7d0 [ 39.195830] [] ext4_remount+0x1366/0x1b90 [ 39.202313] [] do_remount_sb2+0x41b/0x7a0 [ 39.216224] [] do_mount+0xfdb/0x2a40 [ 39.222221] [] SyS_mount+0x130/0x1d0 [ 39.228215] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 39.235429] -> #3 (&ext4_li_mtx){+.+.+.}: [ 39.240226] [] lock_acquire+0x15e/0x450 [ 39.246482] [] mutex_lock_nested+0xc1/0xb80 [ 39.253327] [] ext4_register_li_request+0x89/0x7d0 [ 39.260643] [] ext4_remount+0x1366/0x1b90 [ 39.267249] [] do_remount_sb2+0x41b/0x7a0 [ 39.273772] [] do_mount+0xfdb/0x2a40 [ 39.279765] [] SyS_mount+0x130/0x1d0 [ 39.285815] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 39.293019] -> #2 (&type->s_umount_key#34){++++++}: [ 39.299118] [] lock_acquire+0x15e/0x450 [ 39.306395] [] down_read+0x42/0x60 [ 39.312304] [] iterate_supers+0xe1/0x250 [ 39.318642] [] selinux_complete_init+0x2f/0x31 [ 39.325615] [] security_load_policy+0x69d/0x9c0 [ 39.332680] [] sel_write_load+0x175/0xf90 [ 39.339222] [] __vfs_write+0x116/0x3d0 [ 39.345467] [] vfs_write+0x182/0x4e0 [ 39.351463] [] SyS_write+0xdc/0x1c0 [ 39.357650] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 39.365010] -> #1 (sel_mutex){+.+.+.}: [ 39.369544] [] lock_acquire+0x15e/0x450 [ 39.375810] [] mutex_lock_nested+0xc1/0xb80 [ 39.382487] [] sel_commit_bools_write+0x89/0x260 [ 39.389545] [] __vfs_write+0x116/0x3d0 [ 39.395831] [] __kernel_write+0x112/0x370 [ 39.402676] [] write_pipe_buf+0x15d/0x1f0 [ 39.409108] [] __splice_from_pipe+0x37e/0x7a0 [ 39.415882] [] splice_from_pipe+0x108/0x170 [ 39.422610] [] default_file_splice_write+0x3c/0x80 [ 39.429844] [] SyS_splice+0xd71/0x13a0 [ 39.436195] [] do_fast_syscall_32+0x32d/0xa90 [ 39.443397] [] sysenter_flags_fixed+0xd/0x1a [ 39.450381] -> #0 (&pipe->mutex/1){+.+.+.}: [ 39.455539] [] __lock_acquire+0x37d6/0x4f50 [ 39.462247] [] lock_acquire+0x15e/0x450 [ 39.468522] [] mutex_lock_nested+0xc1/0xb80 [ 39.475718] [] pipe_lock+0x63/0x80 [ 39.482497] [] iter_file_splice_write+0x179/0xb30 [ 39.489624] [] SyS_splice+0xd71/0x13a0 [ 39.495895] [] do_fast_syscall_32+0x32d/0xa90 [ 39.502730] [] sysenter_flags_fixed+0xd/0x1a [ 39.509428] [ 39.509428] other info that might help us debug this: [ 39.509428] [ 39.517898] Chain exists of: &pipe->mutex/1 --> &eli->li_list_mtx --> sb_writers#4 [ 39.527204] Possible unsafe locking scenario: [ 39.527204] [ 39.533411] CPU0 CPU1 [ 39.538128] ---- ---- [ 39.542777] lock(sb_writers#4); [ 39.546700] lock(&eli->li_list_mtx); [ 39.553422] lock(sb_writers#4); [ 39.559931] lock(&pipe->mutex/1); [ 39.564102] [ 39.564102] *** DEADLOCK *** [ 39.564102] [ 39.570146] 1 lock held by syz-executor814/2081: [ 39.574880] #0: (sb_writers#4){.+.+.+}, at: [] SyS_splice+0xf2d/0x13a0 [ 39.584102] [ 39.584102] stack backtrace: [ 39.588694] CPU: 0 PID: 2081 Comm: syz-executor814 Not tainted 4.4.174+ #17 [ 39.595773] 0000000000000000 f232eeee74267ec1 ffff8800b648f840 ffffffff81aad1a1 [ 39.603793] ffffffff84057a80 ffff8801d4cc97c0 ffffffff83abcf50 ffffffff83abc020 [ 39.611933] ffffffff83ac7d20 ffff8800b648f890 ffffffff813abcda ffffffff83e1ee00 [ 39.620058] Call Trace: [ 39.622738] [] dump_stack+0xc1/0x120 [ 39.628170] [] print_circular_bug.cold+0x2f7/0x44e [ 39.634748] [] __lock_acquire+0x37d6/0x4f50 [ 39.640711] [] ? _raw_spin_unlock_irqrestore+0x45/0x70 [ 39.647745] [] ? trace_hardirqs_on+0x10/0x10 [ 39.653892] [] ? save_stack_trace+0x26/0x50 [ 39.659855] [] ? kasan_kmalloc+0xb7/0xd0 [ 39.665760] [] ? __kmalloc+0x141/0x330 [ 39.671284] [] ? iter_file_splice_write+0x15c/0xb30 [ 39.677945] [] ? SyS_splice+0xd71/0x13a0 [ 39.683700] [] ? do_fast_syscall_32+0x32d/0xa90 [ 39.690215] [] ? futex_wait+0x47d/0x600 [ 39.695848] [] lock_acquire+0x15e/0x450 [ 39.701469] [] ? pipe_lock+0x63/0x80 [ 39.706829] [] ? pipe_lock+0x63/0x80 [ 39.712748] [] mutex_lock_nested+0xc1/0xb80 [ 39.719276] [] ? pipe_lock+0x63/0x80 [ 39.726437] [] ? check_preemption_disabled+0x3c/0x200 [ 39.733455] [] ? check_preemption_disabled+0x3c/0x200 [ 39.740559] [] ? mutex_trylock+0x500/0x500 [ 39.746433] [] ? kasan_unpoison_shadow+0x35/0x50 [ 39.753151] [] ? kasan_kmalloc+0xb7/0xd0 [ 39.758851] [] pipe_lock+0x63/0x80 [ 39.764033] [] iter_file_splice_write+0x179/0xb30 [ 39.770629] [] ? trace_hardirqs_on+0x10/0x10 [ 39.776773] [] ? check_preemption_disabled+0x3c/0x200 [ 39.783941] [] ? vmsplice_to_user+0x1e0/0x1e0 [ 39.790467] [] ? check_preemption_disabled+0x3c/0x200 [ 39.797293] [] ? check_preemption_disabled+0x3c/0x200 [ 39.804244] [] ? rcu_read_lock_sched_held+0x10b/0x130 [ 39.811207] [] ? rcu_sync_lockdep_assert+0x73/0xb0 [ 39.817889] [] ? __sb_start_write+0x14f/0x310 [ 39.824193] [] ? vmsplice_to_user+0x1e0/0x1e0 [ 39.830546] [] SyS_splice+0xd71/0x13a0 [ 39.836263] [] ? compat_SyS_vmsplice+0x160/0x160 [ 39.843341] [] ? SyS_chdir+0x1e0/0x1e0 [ 39.849381] [] ? do_fast_syscall_32+0xd6/0xa90 [ 39.855591] [] ? compat_SyS_vmsplice+0x160/0x160 executing program [ 39.861974] [] do_fast_syscall_32+0x32d/0xa90 [ 39.868377] [] sysenter_flags_fixed+0xd/0x1a executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program