[ 31.504405] audit: type=1800 audit(1574664152.666:33): pid=6823 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 [ 31.531695] audit: type=1800 audit(1574664152.666:34): pid=6823 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: [ 35.205960] random: sshd: uninitialized urandom read (32 bytes read) [ 35.445559] audit: type=1400 audit(1574664156.606:35): avc: denied { map } for pid=6994 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 [ 35.542108] random: sshd: uninitialized urandom read (32 bytes read) [ 36.132456] random: sshd: uninitialized urandom read (32 bytes read) [ 46.699916] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.73' (ECDSA) to the list of known hosts. [ 52.304098] 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 [ 52.421933] audit: type=1400 audit(1574664173.586:36): avc: denied { map } for pid=7006 comm="syz-executor036" path="/root/syz-executor036799984" 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 [ 53.550573] [ 53.552247] ====================================================== [ 53.558542] WARNING: possible circular locking dependency detected [ 53.564865] 4.14.156-syzkaller #0 Not tainted [ 53.569341] ------------------------------------------------------ [ 53.575645] syz-executor036/7212 is trying to acquire lock: [ 53.581327] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 53.589544] [ 53.589544] but task is already holding lock: [ 53.595500] (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 53.605102] [ 53.605102] which lock already depends on the new lock. [ 53.605102] [ 53.613405] [ 53.613405] the existing dependency chain (in reverse order) is: [ 53.621000] [ 53.621000] -> #5 (&event->child_mutex){+.+.}: [ 53.627060] lock_acquire+0x16f/0x430 [ 53.631361] __mutex_lock+0xe8/0x1470 [ 53.635658] mutex_lock_nested+0x16/0x20 [ 53.640215] perf_event_for_each_child+0x8a/0x150 [ 53.645554] perf_event_task_enable+0x97/0x110 [ 53.650636] SyS_prctl+0x2ff/0xc50 [ 53.654673] do_syscall_64+0x1e8/0x640 [ 53.659057] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.664741] [ 53.664741] -> #4 (&cpuctx_mutex){+.+.}: [ 53.670263] lock_acquire+0x16f/0x430 [ 53.674560] __mutex_lock+0xe8/0x1470 [ 53.678856] mutex_lock_nested+0x16/0x20 [ 53.683426] perf_event_init_cpu+0xc2/0x170 [ 53.688245] perf_event_init+0x2d8/0x31a [ 53.692804] start_kernel+0x3b6/0x6fd [ 53.697104] x86_64_start_reservations+0x29/0x2b [ 53.702360] x86_64_start_kernel+0x77/0x7b [ 53.707110] secondary_startup_64+0xa5/0xb0 [ 53.711934] [ 53.711934] -> #3 (pmus_lock){+.+.}: [ 53.717122] lock_acquire+0x16f/0x430 [ 53.721423] __mutex_lock+0xe8/0x1470 [ 53.725723] mutex_lock_nested+0x16/0x20 [ 53.730289] perf_event_init_cpu+0x2f/0x170 [ 53.735123] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 53.740288] _cpu_up+0x228/0x530 [ 53.744160] do_cpu_up+0x121/0x150 [ 53.748204] cpu_up+0x1b/0x20 [ 53.751809] smp_init+0x157/0x170 [ 53.755764] kernel_init_freeable+0x30b/0x532 [ 53.760758] kernel_init+0x12/0x162 [ 53.764882] ret_from_fork+0x24/0x30 [ 53.769091] [ 53.769091] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 53.775493] lock_acquire+0x16f/0x430 [ 53.779788] cpus_read_lock+0x3d/0xc0 [ 53.784086] static_key_slow_inc+0x13/0x30 [ 53.788817] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 53.794678] tracepoint_probe_register+0x2b/0x40 [ 53.799933] trace_event_reg+0x277/0x330 [ 53.804491] perf_trace_init+0x449/0xaa0 [ 53.809048] perf_tp_event_init+0x7d/0xf0 [ 53.813694] perf_try_init_event+0x164/0x200 [ 53.818597] perf_event_alloc.part.0+0xd90/0x25b0 [ 53.823936] SYSC_perf_event_open+0xad1/0x2690 [ 53.829015] SyS_perf_event_open+0x34/0x40 [ 53.833747] do_syscall_64+0x1e8/0x640 [ 53.838155] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.843840] [ 53.843840] -> #1 (tracepoints_mutex){+.+.}: [ 53.849708] lock_acquire+0x16f/0x430 [ 53.854006] __mutex_lock+0xe8/0x1470 [ 53.858300] mutex_lock_nested+0x16/0x20 [ 53.862860] tracepoint_probe_register_prio+0x36/0x6d0 [ 53.868634] tracepoint_probe_register+0x2b/0x40 [ 53.873887] trace_event_reg+0x277/0x330 [ 53.878447] perf_trace_init+0x449/0xaa0 [ 53.883018] perf_tp_event_init+0x7d/0xf0 [ 53.887685] perf_try_init_event+0x164/0x200 [ 53.892596] perf_event_alloc.part.0+0xd90/0x25b0 [ 53.897940] SYSC_perf_event_open+0xad1/0x2690 [ 53.903020] SyS_perf_event_open+0x34/0x40 [ 53.907754] do_syscall_64+0x1e8/0x640 [ 53.912142] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.917830] [ 53.917830] -> #0 (event_mutex){+.+.}: [ 53.923182] __lock_acquire+0x2cb3/0x4620 [ 53.927826] lock_acquire+0x16f/0x430 [ 53.932134] __mutex_lock+0xe8/0x1470 [ 53.936438] mutex_lock_nested+0x16/0x20 [ 53.941000] perf_trace_destroy+0x28/0x100 [ 53.945740] tp_perf_event_destroy+0x16/0x20 [ 53.950650] _free_event+0x330/0xe70 [ 53.954865] free_event+0x38/0x50 [ 53.958819] perf_event_release_kernel+0x364/0x880 [ 53.964249] perf_release+0x37/0x50 [ 53.968382] __fput+0x275/0x7a0 [ 53.972162] ____fput+0x16/0x20 [ 53.975941] task_work_run+0x114/0x190 [ 53.980327] do_exit+0x7df/0x2c10 [ 53.984276] do_group_exit+0x111/0x330 [ 53.988662] get_signal+0x381/0x1cd0 [ 53.992876] do_signal+0x86/0x19a0 [ 53.996923] exit_to_usermode_loop+0x15c/0x220 [ 54.002013] do_syscall_64+0x4bc/0x640 [ 54.006397] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 54.012080] [ 54.012080] other info that might help us debug this: [ 54.012080] [ 54.020197] Chain exists of: [ 54.020197] event_mutex --> &cpuctx_mutex --> &event->child_mutex [ 54.020197] [ 54.030947] Possible unsafe locking scenario: [ 54.030947] [ 54.036989] CPU0 CPU1 [ 54.041635] ---- ---- [ 54.046279] lock(&event->child_mutex); [ 54.050325] lock(&cpuctx_mutex); [ 54.056367] lock(&event->child_mutex); [ 54.062927] lock(event_mutex); [ 54.066270] [ 54.066270] *** DEADLOCK *** [ 54.066270] [ 54.072309] 2 locks held by syz-executor036/7212: [ 54.077126] #0: (&ctx->mutex){+.+.}, at: [] perf_event_release_kernel+0x1fd/0x880 [ 54.086482] #1: (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 54.096518] [ 54.096518] stack backtrace: [ 54.100995] CPU: 0 PID: 7212 Comm: syz-executor036 Not tainted 4.14.156-syzkaller #0 [ 54.108859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.118195] Call Trace: [ 54.120770] dump_stack+0x142/0x197 [ 54.124389] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 54.129734] __lock_acquire+0x2cb3/0x4620 [ 54.133880] ? event_function+0x28b/0x380 [ 54.138026] ? trace_hardirqs_on+0x10/0x10 [ 54.142257] lock_acquire+0x16f/0x430 [ 54.146043] ? perf_trace_destroy+0x28/0x100 [ 54.150435] ? perf_trace_destroy+0x28/0x100 [ 54.154831] __mutex_lock+0xe8/0x1470 [ 54.158611] ? perf_trace_destroy+0x28/0x100 [ 54.163002] ? perf_trace_destroy+0x28/0x100 [ 54.167394] ? alloc_perf_context+0xf0/0xf0 [ 54.171779] ? mutex_trylock+0x1c0/0x1c0 [ 54.175817] ? save_trace+0x290/0x290 [ 54.179592] ? __mutex_lock+0x36a/0x1470 [ 54.183629] ? perf_event_release_kernel+0x1f3/0x880 [ 54.188712] ? __lock_is_held+0xb6/0x140 [ 54.192753] ? check_preemption_disabled+0x3c/0x250 [ 54.197750] mutex_lock_nested+0x16/0x20 [ 54.201791] ? mutex_lock_nested+0x16/0x20 [ 54.206005] perf_trace_destroy+0x28/0x100 [ 54.210223] tp_perf_event_destroy+0x16/0x20 [ 54.214616] ? perf_tp_event_init+0xf0/0xf0 [ 54.218916] _free_event+0x330/0xe70 [ 54.222605] free_event+0x38/0x50 [ 54.226037] perf_event_release_kernel+0x364/0x880 [ 54.230943] ? perf_event_release_kernel+0x880/0x880 [ 54.236021] perf_release+0x37/0x50 [ 54.239624] __fput+0x275/0x7a0 [ 54.242882] ____fput+0x16/0x20 [ 54.246138] task_work_run+0x114/0x190 [ 54.250008] do_exit+0x7df/0x2c10 [ 54.253441] ? find_held_lock+0x35/0x130 [ 54.257485] ? mm_update_next_owner+0x5d0/0x5d0 [ 54.262138] do_group_exit+0x111/0x330 [ 54.266015] get_signal+0x381/0x1cd0 [ 54.269705] ? __fd_install+0x236/0x5f0 [ 54.273659] do_signal+0x86/0x19a0 [ 54.277177] ? wait_for_completion+0x420/0x420 [ 54.281737] ? fd_install+0x4d/0x60 [ 54.285341] ? setup_sigcontext+0x7d0/0x7d0 [ 54.289664] ? SYSC_perf_event_open+0x61c/0x2690 [ 54.294399] ? find_held_lock+0x35/0x130 [ 54.298440] ? check_preemption_disabled+0x3c/0x250 [ 54.303436] ? check_preemption_disabled+0x3c/0x250 [ 54.308432] ? debug_smp_processor_id+0x1c/0x20 [ 54.313082] ? perf_trace_sys_exit+0x294/0x400 [ 54.317642] ? check_preemption_disabled+0x3c/0x250 [ 54.322637] ? exit_to_usermode_loop+0x3d/0x220 [ 54.327282] exit_to_usermode_loop+0x15c/0x220 [ 54.331842] do_syscall_64+0x4bc/0x640 [ 54.335706] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.340529] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 54.345694] RIP: 0033:0x446959 executing program executing program executing program executing program [ 54.348860] RSP: 002b:00007f749f57cdb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 54.356542] RAX: fffffffffffffe00 RBX: 00000000006dbc38 RCX: 0000000000446959 [ 54.363787] RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dbc38 [ 54.371033] RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000 [ 54.378281] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc3c [ 54.385529] R13: 00007fff8af8faaf R14: 00007f749f57d9c0 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