ell server: sshd[ 30.722742] audit: type=1800 audit(1572714975.441:34): pid=6810 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.578600] random: sshd: uninitialized urandom read (32 bytes read) [ 32.900711] audit: type=1400 audit(1572714977.651:35): avc: denied { map } for pid=6983 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 [ 32.952814] random: sshd: uninitialized urandom read (32 bytes read) [ 33.550576] random: sshd: uninitialized urandom read (32 bytes read) [ 33.759483] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.232' (ECDSA) to the list of known hosts. [ 39.511973] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 39.646681] audit: type=1400 audit(1572714984.391:36): avc: denied { map } for pid=6997 comm="syz-executor692" path="/root/syz-executor692147064" dev="sda1" ino=16484 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 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 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 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 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 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 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 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 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 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 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 [ 43.852012] [ 43.853692] ====================================================== [ 43.860005] WARNING: possible circular locking dependency detected [ 43.866325] 4.14.151 #0 Not tainted [ 43.869936] ------------------------------------------------------ [ 43.876252] syz-executor692/7995 is trying to acquire lock: [ 43.881936] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 43.890171] [ 43.890171] but task is already holding lock: [ 43.896114] (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 43.905723] [ 43.905723] which lock already depends on the new lock. [ 43.905723] [ 43.914013] [ 43.914013] the existing dependency chain (in reverse order) is: [ 43.921615] [ 43.921615] -> #5 (&event->child_mutex){+.+.}: [ 43.927677] lock_acquire+0x16f/0x430 [ 43.931976] __mutex_lock+0xe8/0x1470 [ 43.936280] mutex_lock_nested+0x16/0x20 [ 43.940844] perf_event_read_value+0x7a/0x410 [ 43.945836] perf_read+0x40c/0x820 [ 43.949874] __vfs_read+0x105/0x6a0 [ 43.953995] vfs_read+0x137/0x350 [ 43.957950] SyS_read+0xfd/0x230 [ 43.961816] do_syscall_64+0x1e8/0x640 [ 43.966207] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.971899] [ 43.971899] -> #4 (&cpuctx_mutex){+.+.}: [ 43.977419] lock_acquire+0x16f/0x430 [ 43.981725] __mutex_lock+0xe8/0x1470 [ 43.986028] mutex_lock_nested+0x16/0x20 [ 43.990586] perf_event_init_cpu+0xc2/0x170 [ 43.995404] perf_event_init+0x2d8/0x31a [ 43.999962] start_kernel+0x3b6/0x6fd [ 44.004258] x86_64_start_reservations+0x29/0x2b [ 44.009521] x86_64_start_kernel+0x77/0x7b [ 44.014250] secondary_startup_64+0xa5/0xb0 [ 44.019070] [ 44.019070] -> #3 (pmus_lock){+.+.}: [ 44.024242] lock_acquire+0x16f/0x430 [ 44.028557] __mutex_lock+0xe8/0x1470 [ 44.032857] mutex_lock_nested+0x16/0x20 [ 44.037413] perf_event_init_cpu+0x2f/0x170 [ 44.042238] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 44.047404] _cpu_up+0x228/0x530 [ 44.051263] do_cpu_up+0x121/0x150 [ 44.055296] cpu_up+0x1b/0x20 [ 44.058899] smp_init+0x157/0x170 [ 44.062850] kernel_init_freeable+0x30b/0x532 [ 44.068100] kernel_init+0x12/0x162 [ 44.072227] ret_from_fork+0x24/0x30 [ 44.076434] [ 44.076434] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 44.082820] lock_acquire+0x16f/0x430 [ 44.087114] cpus_read_lock+0x3d/0xc0 [ 44.091411] static_key_slow_inc+0x13/0x30 [ 44.096141] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 44.102001] tracepoint_probe_register+0x2b/0x40 [ 44.107259] trace_event_reg+0x277/0x330 [ 44.111828] perf_trace_init+0x449/0xaa0 [ 44.116384] perf_tp_event_init+0x7d/0xf0 [ 44.121029] perf_try_init_event+0x164/0x200 [ 44.125931] perf_event_alloc.part.0+0xd90/0x25b0 [ 44.131268] SYSC_perf_event_open+0xad1/0x2690 [ 44.136362] SyS_perf_event_open+0x34/0x40 [ 44.141090] do_syscall_64+0x1e8/0x640 [ 44.145476] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.151159] [ 44.151159] -> #1 (tracepoints_mutex){+.+.}: [ 44.157034] lock_acquire+0x16f/0x430 [ 44.161341] __mutex_lock+0xe8/0x1470 [ 44.165640] mutex_lock_nested+0x16/0x20 [ 44.170197] tracepoint_probe_register_prio+0x36/0x6d0 [ 44.175999] tracepoint_probe_register+0x2b/0x40 [ 44.181249] trace_event_reg+0x277/0x330 [ 44.185803] perf_trace_init+0x449/0xaa0 [ 44.190359] perf_tp_event_init+0x7d/0xf0 [ 44.195010] perf_try_init_event+0x164/0x200 [ 44.199920] perf_event_alloc.part.0+0xd90/0x25b0 [ 44.205257] SYSC_perf_event_open+0xad1/0x2690 [ 44.210333] SyS_perf_event_open+0x34/0x40 [ 44.215067] do_syscall_64+0x1e8/0x640 [ 44.219450] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.225133] [ 44.225133] -> #0 (event_mutex){+.+.}: [ 44.230480] __lock_acquire+0x2cb3/0x4620 [ 44.235123] lock_acquire+0x16f/0x430 [ 44.239428] __mutex_lock+0xe8/0x1470 [ 44.243739] mutex_lock_nested+0x16/0x20 [ 44.248386] perf_trace_destroy+0x28/0x100 [ 44.253135] tp_perf_event_destroy+0x16/0x20 [ 44.258046] _free_event+0x330/0xe70 [ 44.262254] free_event+0x38/0x50 [ 44.266212] perf_event_release_kernel+0x364/0x880 [ 44.271638] perf_release+0x37/0x50 [ 44.275760] __fput+0x275/0x7a0 [ 44.279545] ____fput+0x16/0x20 [ 44.283320] task_work_run+0x114/0x190 [ 44.287710] do_exit+0x7df/0x2c10 [ 44.291660] do_group_exit+0x111/0x330 [ 44.296054] get_signal+0x381/0x1cd0 [ 44.300263] do_signal+0x86/0x19a0 [ 44.304302] exit_to_usermode_loop+0x15c/0x220 [ 44.309377] do_syscall_64+0x4bc/0x640 [ 44.313768] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.319459] [ 44.319459] other info that might help us debug this: [ 44.319459] [ 44.327574] Chain exists of: [ 44.327574] event_mutex --> &cpuctx_mutex --> &event->child_mutex [ 44.327574] [ 44.338305] Possible unsafe locking scenario: [ 44.338305] [ 44.344341] CPU0 CPU1 [ 44.348979] ---- ---- [ 44.353617] lock(&event->child_mutex); [ 44.357662] lock(&cpuctx_mutex); [ 44.363696] lock(&event->child_mutex); [ 44.370256] lock(event_mutex); [ 44.373596] [ 44.373596] *** DEADLOCK *** [ 44.373596] [ 44.379630] 2 locks held by syz-executor692/7995: [ 44.384455] #0: (&ctx->mutex){+.+.}, at: [] perf_event_release_kernel+0x1fd/0x880 [ 44.393816] #1: (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 44.403870] [ 44.403870] stack backtrace: [ 44.408376] CPU: 0 PID: 7995 Comm: syz-executor692 Not tainted 4.14.151 #0 [ 44.415377] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.424713] Call Trace: [ 44.427293] dump_stack+0x138/0x197 [ 44.430904] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 44.436249] __lock_acquire+0x2cb3/0x4620 [ 44.440381] ? event_function+0x28b/0x380 [ 44.444512] ? trace_hardirqs_on+0x10/0x10 [ 44.448738] lock_acquire+0x16f/0x430 [ 44.452540] ? perf_trace_destroy+0x28/0x100 [ 44.456934] ? perf_trace_destroy+0x28/0x100 [ 44.461616] __mutex_lock+0xe8/0x1470 [ 44.465410] ? perf_trace_destroy+0x28/0x100 [ 44.470072] ? perf_trace_destroy+0x28/0x100 [ 44.474460] ? alloc_perf_context+0xf0/0xf0 [ 44.478763] ? mutex_trylock+0x1c0/0x1c0 [ 44.482805] ? save_trace+0x290/0x290 [ 44.486581] ? __mutex_lock+0x36a/0x1470 [ 44.490620] ? perf_event_release_kernel+0x1f3/0x880 [ 44.495702] ? __lock_is_held+0xb6/0x140 [ 44.499743] ? check_preemption_disabled+0x3c/0x250 [ 44.504744] mutex_lock_nested+0x16/0x20 [ 44.508826] ? mutex_lock_nested+0x16/0x20 [ 44.513054] perf_trace_destroy+0x28/0x100 [ 44.517272] tp_perf_event_destroy+0x16/0x20 [ 44.521661] ? perf_tp_event_init+0xf0/0xf0 [ 44.525967] _free_event+0x330/0xe70 [ 44.529724] free_event+0x38/0x50 [ 44.533204] perf_event_release_kernel+0x364/0x880 [ 44.538121] ? perf_event_release_kernel+0x880/0x880 [ 44.543214] perf_release+0x37/0x50 [ 44.546825] __fput+0x275/0x7a0 [ 44.550102] ____fput+0x16/0x20 [ 44.553375] task_work_run+0x114/0x190 [ 44.557240] do_exit+0x7df/0x2c10 [ 44.560674] ? find_held_lock+0x35/0x130 [ 44.564713] ? mm_update_next_owner+0x5d0/0x5d0 [ 44.569360] do_group_exit+0x111/0x330 [ 44.573241] get_signal+0x381/0x1cd0 [ 44.576932] ? __fd_install+0x236/0x5f0 [ 44.580900] do_signal+0x86/0x19a0 [ 44.584424] ? wait_for_completion+0x420/0x420 [ 44.588986] ? fd_install+0x4d/0x60 [ 44.592594] ? setup_sigcontext+0x7d0/0x7d0 [ 44.596893] ? SYSC_perf_event_open+0x61c/0x2690 [ 44.601625] ? trace_hardirqs_on+0x10/0x10 [ 44.605839] ? perf_event_set_output+0x460/0x460 [ 44.610579] ? SyS_futex+0x215/0x302 [ 44.614284] ? SyS_futex+0x222/0x302 [ 44.617979] ? exit_to_usermode_loop+0x3d/0x220 [ 44.622634] exit_to_usermode_loop+0x15c/0x220 [ 44.627198] do_syscall_64+0x4bc/0x640 [ 44.631063] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.635889] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.641070] RIP: 0033:0x4483e9 [ 44.644243] RSP: 002b:00007f3abe43ccf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca executing program executing program executing program executing program executing program executing program executing program [ 44.651939] RAX: fffffffffffffe00 RBX: 00000000006ddc38 RCX: 00000000004483e9 [ 44.659214] RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006ddc38 [ 44.666487] RBP: 00000000006ddc30 R08: 0000000000000000 R09: 0000000000000000 [ 44.673871] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc3c [ 44.681129] R13: 00007ffcd1da45ef R14: 00007f3abe43d9c0 R15: 20c49ba5e353f7cf 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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