Warning: Permanently added '10.128.0.84' (ECDSA) to the list of known hosts. [ 45.646809] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 45.765633] audit: type=1400 audit(1580399989.060:36): avc: denied { map } for pid=7411 comm="syz-executor235" path="/root/syz-executor235450999" 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 [ 45.793513] audit: type=1400 audit(1580399989.090:37): avc: denied { create } for pid=7412 comm="syz-executor235" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 45.818433] audit: type=1400 audit(1580399989.090:38): avc: denied { write } for pid=7412 comm="syz-executor235" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 45.843551] audit: type=1400 audit(1580399989.090:39): avc: denied { read } for pid=7412 comm="syz-executor235" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 46.182597] [ 46.184478] ====================================================== [ 46.190992] WARNING: possible circular locking dependency detected [ 46.197669] 4.14.169-syzkaller #0 Not tainted [ 46.202154] ------------------------------------------------------ [ 46.208590] syz-executor235/7412 is trying to acquire lock: [ 46.214426] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 46.222785] [ 46.222785] but task is already holding lock: [ 46.229018] (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 46.238815] [ 46.238815] which lock already depends on the new lock. [ 46.238815] [ 46.247397] [ 46.247397] the existing dependency chain (in reverse order) is: [ 46.255017] [ 46.255017] -> #5 (&event->child_mutex){+.+.}: [ 46.261297] lock_acquire+0x16f/0x430 [ 46.265628] __mutex_lock+0xe8/0x1470 [ 46.270102] mutex_lock_nested+0x16/0x20 [ 46.274978] perf_event_for_each_child+0x8a/0x150 [ 46.280455] perf_ioctl+0x1d9/0xe50 [ 46.284873] do_vfs_ioctl+0x7ae/0x1060 [ 46.289393] SyS_ioctl+0x8f/0xc0 [ 46.293413] do_syscall_64+0x1e8/0x640 [ 46.297960] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.304010] [ 46.304010] -> #4 (&cpuctx_mutex){+.+.}: [ 46.309746] lock_acquire+0x16f/0x430 [ 46.314202] __mutex_lock+0xe8/0x1470 [ 46.318517] mutex_lock_nested+0x16/0x20 [ 46.323921] perf_event_init_cpu+0xc2/0x170 [ 46.329013] perf_event_init+0x2d8/0x31a [ 46.334004] start_kernel+0x3b6/0x67d [ 46.338321] x86_64_start_reservations+0x29/0x2b [ 46.344045] x86_64_start_kernel+0x77/0x7b [ 46.349064] secondary_startup_64+0xa5/0xb0 [ 46.353924] [ 46.353924] -> #3 (pmus_lock){+.+.}: [ 46.359258] lock_acquire+0x16f/0x430 [ 46.363937] __mutex_lock+0xe8/0x1470 [ 46.368310] mutex_lock_nested+0x16/0x20 [ 46.372943] perf_event_init_cpu+0x2f/0x170 [ 46.377782] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 46.383060] _cpu_up+0x228/0x530 [ 46.387034] do_cpu_up+0xa6/0x160 [ 46.391088] cpu_up+0x1b/0x20 [ 46.394707] smp_init+0x157/0x170 [ 46.398764] kernel_init_freeable+0x30b/0x532 [ 46.404035] kernel_init+0x12/0x162 [ 46.408357] ret_from_fork+0x24/0x30 [ 46.412580] [ 46.412580] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 46.419379] lock_acquire+0x16f/0x430 [ 46.423702] cpus_read_lock+0x3d/0xc0 [ 46.428262] static_key_slow_inc+0x13/0x30 [ 46.433308] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 46.439228] tracepoint_probe_register+0x2b/0x40 [ 46.444635] trace_event_reg+0x277/0x330 [ 46.449598] perf_trace_init+0x449/0xaa0 [ 46.454628] perf_tp_event_init+0x7d/0xf0 [ 46.459364] perf_try_init_event+0x164/0x200 [ 46.464661] perf_event_alloc.part.0+0xd92/0x25c0 [ 46.470364] SYSC_perf_event_open+0xad1/0x2690 [ 46.475689] SyS_perf_event_open+0x34/0x40 [ 46.480978] do_syscall_64+0x1e8/0x640 [ 46.485617] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.491512] [ 46.491512] -> #1 (tracepoints_mutex){+.+.}: [ 46.497553] lock_acquire+0x16f/0x430 [ 46.502156] __mutex_lock+0xe8/0x1470 [ 46.506709] mutex_lock_nested+0x16/0x20 [ 46.511702] tracepoint_probe_register_prio+0x36/0x6d0 [ 46.517679] tracepoint_probe_register+0x2b/0x40 [ 46.522961] trace_event_reg+0x277/0x330 [ 46.527980] perf_trace_init+0x449/0xaa0 [ 46.532713] perf_tp_event_init+0x7d/0xf0 [ 46.537491] perf_try_init_event+0x164/0x200 [ 46.542515] perf_event_alloc.part.0+0xd92/0x25c0 [ 46.548003] SYSC_perf_event_open+0xad1/0x2690 [ 46.553112] SyS_perf_event_open+0x34/0x40 [ 46.557952] do_syscall_64+0x1e8/0x640 [ 46.562373] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.568554] [ 46.568554] -> #0 (event_mutex){+.+.}: [ 46.574181] __lock_acquire+0x2cb3/0x4620 [ 46.578850] lock_acquire+0x16f/0x430 [ 46.583384] __mutex_lock+0xe8/0x1470 [ 46.588047] mutex_lock_nested+0x16/0x20 [ 46.592634] perf_trace_destroy+0x28/0x100 [ 46.597383] tp_perf_event_destroy+0x16/0x20 [ 46.602426] _free_event+0x330/0xe70 [ 46.606666] free_event+0x38/0x50 [ 46.610917] perf_event_release_kernel+0x364/0x880 [ 46.616359] perf_release+0x37/0x50 [ 46.620560] __fput+0x275/0x7a0 [ 46.624388] ____fput+0x16/0x20 [ 46.628270] task_work_run+0x114/0x190 [ 46.632787] do_exit+0xa1a/0x2cd0 [ 46.636751] do_group_exit+0x111/0x330 [ 46.641307] SyS_exit_group+0x1d/0x20 [ 46.645976] do_syscall_64+0x1e8/0x640 [ 46.650505] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.656440] [ 46.656440] other info that might help us debug this: [ 46.656440] [ 46.665310] Chain exists of: [ 46.665310] event_mutex --> &cpuctx_mutex --> &event->child_mutex [ 46.665310] [ 46.677770] Possible unsafe locking scenario: [ 46.677770] [ 46.684215] CPU0 CPU1 [ 46.689180] ---- ---- [ 46.694289] lock(&event->child_mutex); [ 46.698345] lock(&cpuctx_mutex); [ 46.704812] lock(&event->child_mutex); [ 46.711775] lock(event_mutex); [ 46.715304] [ 46.715304] *** DEADLOCK *** [ 46.715304] [ 46.721640] 2 locks held by syz-executor235/7412: [ 46.726589] #0: (&ctx->mutex){+.+.}, at: [] perf_event_release_kernel+0x1fd/0x880 [ 46.736295] #1: (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 46.746475] [ 46.746475] stack backtrace: [ 46.751522] CPU: 0 PID: 7412 Comm: syz-executor235 Not tainted 4.14.169-syzkaller #0 [ 46.759619] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.769118] Call Trace: [ 46.771703] dump_stack+0x142/0x197 [ 46.775701] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 46.781541] __lock_acquire+0x2cb3/0x4620 [ 46.785777] ? find_held_lock+0x35/0x130 [ 46.790027] ? trace_hardirqs_on+0x10/0x10 [ 46.794266] lock_acquire+0x16f/0x430 [ 46.798218] ? perf_trace_destroy+0x28/0x100 [ 46.802618] ? perf_trace_destroy+0x28/0x100 [ 46.807423] __mutex_lock+0xe8/0x1470 [ 46.811816] ? perf_trace_destroy+0x28/0x100 [ 46.816356] ? perf_trace_destroy+0x28/0x100 [ 46.820764] ? task_function_call+0xe7/0x130 [ 46.825331] ? mutex_trylock+0x1c0/0x1c0 [ 46.829668] ? save_trace+0x290/0x290 [ 46.833468] ? __mutex_lock+0x36a/0x1470 [ 46.837683] ? perf_event_release_kernel+0x1f3/0x880 [ 46.843102] ? __lock_is_held+0xb6/0x140 [ 46.847159] ? check_preemption_disabled+0x3c/0x250 [ 46.852347] mutex_lock_nested+0x16/0x20 [ 46.856641] ? mutex_lock_nested+0x16/0x20 [ 46.860917] perf_trace_destroy+0x28/0x100 [ 46.865154] tp_perf_event_destroy+0x16/0x20 [ 46.869643] ? perf_tp_event_init+0xf0/0xf0 [ 46.874440] _free_event+0x330/0xe70 [ 46.878297] free_event+0x38/0x50 [ 46.881958] perf_event_release_kernel+0x364/0x880 [ 46.887105] ? perf_event_release_kernel+0x880/0x880 [ 46.892299] perf_release+0x37/0x50 [ 46.896124] __fput+0x275/0x7a0 [ 46.899405] ____fput+0x16/0x20 [ 46.902807] task_work_run+0x114/0x190 [ 46.906821] do_exit+0xa1a/0x2cd0 [ 46.910269] ? preempt_schedule+0x4b/0x60 [ 46.914608] ? yield_to+0x700/0x730 [ 46.918370] ? mm_update_next_owner+0x5d0/0x5d0 [ 46.923276] ? preempt_schedule+0x4b/0x60 [ 46.927615] ? ___preempt_schedule+0x16/0x18 [ 46.932249] do_group_exit+0x111/0x330 [ 46.936565] SyS_exit_group+0x1d/0x20 [ 46.940476] ? do_group_exit+0x330/0x330 [ 46.944704] do_syscall_64+0x1e8/0x640 [ 46.948592] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.953680] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.959131] RIP: 0033:0x44d7c8 [ 46.962986] RSP: 002b:00007ffe984bae88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.970920] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044d7c8 [ 46.978195] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.985847] RBP: 00000000004d1450 R08: 00000000000000e7 R09: ffffffffffffffd4 [ 46.993116] R10: 00007ffe984baee0 R11: 0000000000000246 R12: 0000000000000001 [ 47.000511] R13: 00000000006e4380 R14: 0000000000000040 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