[ 30.565829] audit: type=1800 audit(1569195955.200:33): pid=6775 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 30.593474] audit: type=1800 audit(1569195955.200:34): pid=6775 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 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 31.881296] random: sshd: uninitialized urandom read (32 bytes read) [ 32.201134] audit: type=1400 audit(1569195956.840:35): avc: denied { map } for pid=6947 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.252029] random: sshd: uninitialized urandom read (32 bytes read) [ 32.783377] random: sshd: uninitialized urandom read (32 bytes read) [ 32.970894] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.50' (ECDSA) to the list of known hosts. [ 38.417397] 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 [ 38.535454] audit: type=1400 audit(1569195963.170:36): avc: denied { map } for pid=6960 comm="syz-executor097" path="/root/syz-executor097902390" dev="sda1" ino=16483 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.485804] [ 44.487483] ====================================================== [ 44.493784] WARNING: possible circular locking dependency detected [ 44.500086] 4.14.146 #0 Not tainted [ 44.503687] ------------------------------------------------------ [ 44.510095] syz-executor097/8126 is trying to acquire lock: [ 44.515865] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 44.524085] [ 44.524085] but task is already holding lock: [ 44.530551] (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 44.540416] [ 44.540416] which lock already depends on the new lock. [ 44.540416] [ 44.548719] [ 44.548719] the existing dependency chain (in reverse order) is: [ 44.556509] [ 44.556509] -> #5 (&event->child_mutex){+.+.}: [ 44.562569] lock_acquire+0x16f/0x430 [ 44.566887] __mutex_lock+0xe8/0x1470 [ 44.571190] mutex_lock_nested+0x16/0x20 [ 44.575949] perf_event_for_each_child+0x8a/0x150 [ 44.581299] perf_ioctl+0x142/0xdf0 [ 44.585427] do_vfs_ioctl+0x7ae/0x1060 [ 44.589835] SyS_ioctl+0x8f/0xc0 [ 44.593729] do_syscall_64+0x1e8/0x640 [ 44.598234] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.604028] [ 44.604028] -> #4 (&cpuctx_mutex){+.+.}: [ 44.609556] lock_acquire+0x16f/0x430 [ 44.613880] __mutex_lock+0xe8/0x1470 [ 44.618182] mutex_lock_nested+0x16/0x20 [ 44.622745] perf_event_init_cpu+0xc2/0x170 [ 44.627570] perf_event_init+0x2d8/0x31a [ 44.632135] start_kernel+0x3b6/0x6fd [ 44.636449] x86_64_start_reservations+0x29/0x2b [ 44.641704] x86_64_start_kernel+0x77/0x7b [ 44.646439] secondary_startup_64+0xa5/0xb0 [ 44.651256] [ 44.651256] -> #3 (pmus_lock){+.+.}: [ 44.656435] lock_acquire+0x16f/0x430 [ 44.660837] __mutex_lock+0xe8/0x1470 [ 44.665490] mutex_lock_nested+0x16/0x20 [ 44.670066] perf_event_init_cpu+0x2f/0x170 [ 44.674894] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 44.680072] _cpu_up+0x228/0x530 [ 44.683944] do_cpu_up+0x121/0x150 [ 44.687981] cpu_up+0x1b/0x20 [ 44.691672] smp_init+0x157/0x170 [ 44.695732] kernel_init_freeable+0x30b/0x532 [ 44.700727] kernel_init+0x12/0x162 [ 44.704851] ret_from_fork+0x24/0x30 [ 44.709159] [ 44.709159] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 44.715567] lock_acquire+0x16f/0x430 [ 44.719869] cpus_read_lock+0x3d/0xc0 [ 44.724184] static_key_slow_inc+0x13/0x30 [ 44.729007] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 44.734975] tracepoint_probe_register+0x2b/0x40 [ 44.740258] trace_event_reg+0x277/0x330 [ 44.744830] perf_trace_init+0x449/0xaa0 [ 44.749684] perf_tp_event_init+0x7d/0xf0 [ 44.754362] perf_try_init_event+0x164/0x200 [ 44.759271] perf_event_alloc.part.0+0xd90/0x25b0 [ 44.764625] SYSC_perf_event_open+0xad1/0x2690 [ 44.769709] SyS_perf_event_open+0x34/0x40 [ 44.774621] do_syscall_64+0x1e8/0x640 [ 44.779154] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.784844] [ 44.784844] -> #1 (tracepoints_mutex){+.+.}: [ 44.790749] lock_acquire+0x16f/0x430 [ 44.795156] __mutex_lock+0xe8/0x1470 [ 44.799557] mutex_lock_nested+0x16/0x20 [ 44.804124] tracepoint_probe_register_prio+0x36/0x6d0 [ 44.809904] tracepoint_probe_register+0x2b/0x40 [ 44.815160] trace_event_reg+0x277/0x330 [ 44.819731] perf_trace_init+0x449/0xaa0 [ 44.824304] perf_tp_event_init+0x7d/0xf0 [ 44.828964] perf_try_init_event+0x164/0x200 [ 44.833874] perf_event_alloc.part.0+0xd90/0x25b0 [ 44.839220] SYSC_perf_event_open+0xad1/0x2690 [ 44.844475] SyS_perf_event_open+0x34/0x40 [ 44.849301] do_syscall_64+0x1e8/0x640 [ 44.853979] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.859771] [ 44.859771] -> #0 (event_mutex){+.+.}: [ 44.865348] __lock_acquire+0x2cb3/0x4620 [ 44.870006] lock_acquire+0x16f/0x430 [ 44.874312] __mutex_lock+0xe8/0x1470 [ 44.878712] mutex_lock_nested+0x16/0x20 [ 44.883491] perf_trace_destroy+0x28/0x100 [ 44.888746] tp_perf_event_destroy+0x16/0x20 [ 44.893745] _free_event+0x330/0xe70 [ 44.898054] free_event+0x38/0x50 [ 44.902040] perf_event_release_kernel+0x364/0x880 [ 44.907563] perf_release+0x37/0x50 [ 44.911864] __fput+0x275/0x7a0 [ 44.915736] ____fput+0x16/0x20 [ 44.919524] task_work_run+0x114/0x190 [ 44.923932] do_exit+0x7df/0x2c10 [ 44.927883] do_group_exit+0x111/0x330 [ 44.932270] get_signal+0x381/0x1cd0 [ 44.936499] do_signal+0x86/0x19a0 [ 44.940541] exit_to_usermode_loop+0x15c/0x220 [ 44.945719] do_syscall_64+0x4bc/0x640 [ 44.950109] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.955794] [ 44.955794] other info that might help us debug this: [ 44.955794] [ 44.963928] Chain exists of: [ 44.963928] event_mutex --> &cpuctx_mutex --> &event->child_mutex [ 44.963928] [ 44.974661] Possible unsafe locking scenario: [ 44.974661] [ 44.980789] CPU0 CPU1 [ 44.985437] ---- ---- [ 44.990177] lock(&event->child_mutex); [ 44.994230] lock(&cpuctx_mutex); [ 45.000447] lock(&event->child_mutex); [ 45.007013] lock(event_mutex); [ 45.010457] [ 45.010457] *** DEADLOCK *** [ 45.010457] [ 45.016509] 2 locks held by syz-executor097/8126: [ 45.021357] #0: (&ctx->mutex){+.+.}, at: [] perf_event_release_kernel+0x1fd/0x880 [ 45.030705] #1: (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 45.040743] [ 45.040743] stack backtrace: [ 45.045327] CPU: 0 PID: 8126 Comm: syz-executor097 Not tainted 4.14.146 #0 [ 45.052413] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.061840] Call Trace: [ 45.064447] dump_stack+0x138/0x197 [ 45.068064] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 45.073562] __lock_acquire+0x2cb3/0x4620 [ 45.077724] ? _raw_spin_unlock_irq+0x5e/0x90 [ 45.082238] ? trace_hardirqs_on+0x10/0x10 [ 45.086667] ? alloc_perf_context+0xf0/0xf0 [ 45.091267] lock_acquire+0x16f/0x430 [ 45.095058] ? perf_trace_destroy+0x28/0x100 [ 45.099458] ? perf_trace_destroy+0x28/0x100 [ 45.103954] __mutex_lock+0xe8/0x1470 [ 45.107878] ? perf_trace_destroy+0x28/0x100 [ 45.112281] ? perf_trace_destroy+0x28/0x100 [ 45.116669] ? alloc_perf_context+0xf0/0xf0 [ 45.121502] ? mutex_trylock+0x1c0/0x1c0 [ 45.125554] ? save_trace+0x290/0x290 [ 45.129438] ? __mutex_lock+0x36a/0x1470 [ 45.133579] ? perf_event_release_kernel+0x1f3/0x880 [ 45.138667] ? __lock_is_held+0xb6/0x140 [ 45.142796] ? check_preemption_disabled+0x3c/0x250 [ 45.147814] mutex_lock_nested+0x16/0x20 [ 45.151857] ? mutex_lock_nested+0x16/0x20 [ 45.156071] perf_trace_destroy+0x28/0x100 [ 45.160318] tp_perf_event_destroy+0x16/0x20 [ 45.164806] ? perf_tp_event_init+0xf0/0xf0 [ 45.169151] _free_event+0x330/0xe70 [ 45.172959] free_event+0x38/0x50 [ 45.176433] perf_event_release_kernel+0x364/0x880 [ 45.181356] ? perf_event_release_kernel+0x880/0x880 [ 45.186484] perf_release+0x37/0x50 [ 45.190143] __fput+0x275/0x7a0 [ 45.193463] ____fput+0x16/0x20 [ 45.196838] task_work_run+0x114/0x190 [ 45.200716] do_exit+0x7df/0x2c10 [ 45.204250] ? find_held_lock+0x35/0x130 [ 45.208330] ? mm_update_next_owner+0x5d0/0x5d0 [ 45.213297] do_group_exit+0x111/0x330 [ 45.217183] get_signal+0x381/0x1cd0 [ 45.221008] ? __fd_install+0x236/0x5f0 [ 45.224975] do_signal+0x86/0x19a0 [ 45.228515] ? wait_for_completion+0x420/0x420 [ 45.233088] ? fd_install+0x4d/0x60 [ 45.236698] ? setup_sigcontext+0x7d0/0x7d0 [ 45.241001] ? SYSC_perf_event_open+0x61c/0x2690 [ 45.245745] ? trace_hardirqs_on+0x10/0x10 [ 45.249966] ? perf_event_set_output+0x460/0x460 [ 45.254768] ? SyS_futex+0x215/0x302 [ 45.258560] ? SyS_futex+0x222/0x302 [ 45.262261] ? exit_to_usermode_loop+0x3d/0x220 [ 45.266909] exit_to_usermode_loop+0x15c/0x220 [ 45.271481] do_syscall_64+0x4bc/0x640 [ 45.275439] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.280352] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.285526] RIP: 0033:0x446969 executing program executing program executing program executing program executing program executing program executing program [ 45.288700] RSP: 002b:00007f436a588db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 45.296483] RAX: fffffffffffffe00 RBX: 00000000006dbc38 RCX: 0000000000446969 [ 45.304172] RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dbc38 [ 45.311723] RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000 [ 45.319354] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc3c [ 45.326868] R13: 00007ffe655c228f R14: 00007f436a5899c0 R15: 000000000000002d executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program